class_docstr: Tests kerberos.
class_docstr_tok: ["Tests","kerberos","."]
code: def test_kerberos_envs_available_in_worker_with_persistence(self):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {
                  "kerberosSidecar": {"enabled": True},
                  "persistence": {
                      "enabled": True,
                  },
              },
              "kerberos": {
                  "enabled": True,
                  "configPath": "/etc/krb5.conf",
                  "ccacheMountPath": "/var/kerberos-ccache",
                  "ccacheFileName": "ccache",
              },
          },
          show_only=["templates/workers/worker-deployment.yaml"],
      )
  
      assert {
          "name": "KRB5_CONFIG",
          "value": "/etc/krb5.conf",
      } in jmespath.search(
          "spec.template.spec.containers[0].env", docs[0]
      )
      assert {
          "name": "KRB5CCNAME",
          "value": "/var/kerberos-ccache/ccache",
      } in jmespath.search(
          "spec.template.spec.containers[0].env", docs[0]
      )
  
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 2 for calling the TestKerberos obj's underlying member method code with example usage: obj.test_kerberos_envs_available_in_worker_with_persistence() without return types