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