class_docstr: Tests ingress flower.
class_docstr_tok: ["Tests","ingress","flower","."]
code: def test_should_ingress_deprecated_host_and_top_level_tls_still_work(
      self,
  ):
      docs = render_chart(
          values={
              "flower": {"enabled": True},
              "ingress": {
                  "flower": {
                      "enabled": True,
                      "tls": {
                          "enabled": True,
                          "secretName": "supersecret",
                      },
                      "host": "old-host",
                  },
              },
          },
          show_only=["templates/flower/flower-ingress.yaml"],
      )
      assert (
          ["old-host"]
          == jmespath.search("spec.rules[*].host", docs[0])
          == list(
              itertools.chain.from_iterable(
                  jmespath.search("spec.tls[*].hosts", 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 7 for calling the TestIngressFlower obj's underlying member method code with example usage: obj.test_should_ingress_deprecated_host_and_top_level_tls_still_work() without return types