class_docstr: Tests ingress flower.
class_docstr_tok: ["Tests","ingress","flower","."]
code: def test_can_ingress_hosts_be_templated(self):
      docs = render_chart(
          values={
              "testValues": {
                  "scalar": "aa",
                  "list": ["bb", "cc"],
                  "dict": {
                      "key": "dd",
                  },
              },
              "flower": {"enabled": True},
              "ingress": {
                  "flower": {
                      "enabled": True,
                      "hosts": [
                          {
                              "name": "*.{{ .Release.Namespace }}.example.com"
                          },
                          {
                              "name": "{{ .Values.testValues.scalar }}.example.com"
                          },
                          {
                              "name": "{{ index .Values.testValues.list 1 }}.example.com"
                          },
                          {
                              "name": "{{ .Values.testValues.dict.key }}.example.com"
                          },
                      ],
                  },
              },
          },
          show_only=["templates/flower/flower-ingress.yaml"],
          namespace="airflow",
      )
  
      assert [
          "*.airflow.example.com",
          "aa.example.com",
          "cc.example.com",
          "dd.example.com",
      ] == jmespath.search("spec.rules[*].host", docs[0])
  
file_path: airflow/helm_tests/webserver/test_ingress_flower.py
imports: from __future__ import annotations
  import itertools
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 12 for calling the TestIngressFlower obj's underlying member method code with example usage: obj.test_can_ingress_hosts_be_templated() without return types