class_docstr: Tests extra configmaps and secrets.
class_docstr_tok: ["Tests","extra","configmaps","and","secrets","."]
code: def test_extra_configmaps_secrets_additional_labels(
      self, chart_labels, local_labels
  ):
      k8s_objects = render_chart(
          name=RELEASE_NAME,
          values={
              "labels": chart_labels,
              "extraSecrets": {
                  "{{ .Release.Name }}-extra-secret-1": {
                      "labels": local_labels,
                      "stringData": "data: secretData",
                  }
              },
              "extraConfigMaps": {
                  "{{ .Release.Name }}-extra-configmap-1": {
                      "labels": local_labels,
                      "data": "data: configData",
                  }
              },
          },
          show_only=[
              "templates/configmaps/extra-configmaps.yaml",
              "templates/secrets/extra-secrets.yaml",
          ],
      )
      common_labels = {
          "release": RELEASE_NAME,
          "heritage": "Helm",
          "chart": mock.ANY,
      }
      for k8s_object in k8s_objects:
          assert k8s_object["metadata"]["labels"] == {
              **common_labels,
              **chart_labels,
              **local_labels,
          }
  
file_path: airflow/helm_tests/security/test_extra_configmaps_secrets.py
imports: from __future__ import annotations
  import textwrap
  from base64 import b64encode
  from unittest import mock
  import pytest
  import yaml
  from tests.charts.helm_template_generator import prepare_k8s_lookup_dict, render_chart
label_desc: Use image node_id 4 for calling the TestExtraConfigMapsSecrets obj's underlying member method code with example usage: obj.test_extra_configmaps_secrets_additional_labels(chart_labels, local_labels) without return types