class_docstr: Tests kerberos.
class_docstr_tok: ["Tests","kerberos","."]
code: def test_kerberos_sidecar_resources(self):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {
                  "kerberosSidecar": {
                      "enabled": True,
                      "resources": {
                          "requests": {
                              "cpu": "200m",
                              "memory": "200Mi",
                          },
                          "limits": {
                              "cpu": "201m",
                              "memory": "201Mi",
                          },
                      },
                  },
              },
          },
          show_only=["templates/workers/worker-deployment.yaml"],
      )
  
      assert (
          jmespath.search(
              "spec.template.spec.containers[2].resources.requests.cpu",
              docs[0],
          )
          == "200m"
      )
      assert (
          jmespath.search(
              "spec.template.spec.containers[2].resources.requests.memory",
              docs[0],
          )
          == "200Mi"
      )
      assert (
          jmespath.search(
              "spec.template.spec.containers[2].resources.limits.cpu",
              docs[0],
          )
          == "201m"
      )
      assert (
          jmespath.search(
              "spec.template.spec.containers[2].resources.limits.memory",
              docs[0],
          )
          == "201Mi"
      )
  
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 3 for calling the TestKerberos obj's underlying member method code with example usage: obj.test_kerberos_sidecar_resources() without return types