class_docstr: Tests redis.
code: def test_redis_by_chart_password_secret_name(self, executor):
      expected_broker_url_secret_name = (
          "test-redis-broker-url-secret-name"
      )
      k8s_objects = render_chart(
          RELEASE_NAME_REDIS,
          {
              "executor": executor,
              "networkPolicies": {"enabled": True},
              "data": {
                  "brokerUrlSecretName": expected_broker_url_secret_name
              },
              "redis": {
                  "enabled": True,
                  "passwordSecretName": "test-redis-password-secret-name",
              },
          },
      )
      k8s_obj_by_key = prepare_k8s_lookup_dict(k8s_objects)
  
      created_redis_objects = SET_POSSIBLE_REDIS_OBJECT_KEYS & set(
          k8s_obj_by_key.keys()
      )
      assert created_redis_objects == SET_POSSIBLE_REDIS_OBJECT_KEYS - {
          REDIS_OBJECTS["SECRET_PASSWORD"],
          REDIS_OBJECTS["SECRET_BROKER_URL"],
      }
  
      self.assert_password_and_broker_url_secrets(
          k8s_obj_by_key,
          expected_password_match=None,
          expected_broker_url_match=None,
      )
  
      self.assert_broker_url_env(
          k8s_obj_by_key, expected_broker_url_secret_name
      )
  
imports: from __future__ import annotations
  import re
  from base64 import b64decode
  from subprocess import CalledProcessError
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import prepare_k8s_lookup_dict, render_chart
label_desc: Use image node_id 9 for calling the TestRedis obj's underlying member method code with example usage: obj.test_redis_by_chart_password_secret_name(executor) without return types