class_docstr: Tests basic helm chart tests.
class_docstr_tok: ["Tests","basic","helm","chart","tests","."]
code: def test_chart_is_consistent_with_official_airflow_image(self):
      def get_k8s_objs_with_image(
          obj: list[Any] | dict[str, Any]
      ) -> list[dict[str, Any]]:
          """Retrieve all the k8s objects that have an "image" key inside k8s obj or list of k8s obj."""
          out = []
          if isinstance(obj, list):
              for item in obj:
                  out += get_k8s_objs_with_image(item)
          if isinstance(obj, dict):
              if "image" in obj:
                  out += [obj]
              # include sub objs, just in case
              for val in obj.values():
                  out += get_k8s_objs_with_image(val)
          return out
  
      image_repo = "test-airflow-repo/airflow"
      k8s_objects = render_chart(
          "test-basic", {"defaultAirflowRepository": image_repo}
      )
  
      objs_with_image = get_k8s_objs_with_image(k8s_objects)
      for obj in objs_with_image:
          image: str = obj["image"]
          if image.startswith(image_repo):
              # Make sure that a command is not specified
              assert "command" not in obj
  
imports: from __future__ import annotations
  import base64
  import warnings
  from subprocess import CalledProcessError
  from typing import Any
  from unittest import mock
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 12 for calling the TestBaseChartTest obj's underlying member method code with example usage: obj.test_chart_is_consistent_with_official_airflow_image() and returns: out