class_docstr: Tests kerberos.
class_docstr_tok: ["Tests","kerberos","."]
code: def test_kerberos_not_mentioned_in_render_if_disabled(self):
      # the name is deliberately shorter as we look for "kerberos" in the rendered chart
      k8s_objects = render_chart(
          name="no-krbros", values={"kerberos": {"enabled": False}}
      )
      # ignore airflow config map
      k8s_objects_to_consider = [
          obj
          for obj in k8s_objects
          if obj["metadata"]["name"] != "no-krbros-config"
      ]
      k8s_objects_to_consider_str = json.dumps(k8s_objects_to_consider)
      assert k8s_objects_to_consider_str.count("kerberos") == 1
  
file_path: airflow/helm_tests/security/test_kerberos.py
imports: from __future__ import annotations
  import json
  import jmespath
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 1 for calling the TestKerberos obj's underlying member method code with example usage: obj.test_kerberos_not_mentioned_in_render_if_disabled() without return types