class_docstr: Tests statsd.
class_docstr_tok: ["Tests","statsd","."]
code: def test_statsd_configmap_when_exist_override_mappings(self):
      override_mapping = {
          "match": "airflow.pool.queued_slots.*",
          "name": "airflow_pool_queued_slots",
          "labels": {"pool": "$1"},
      }
      docs = render_chart(
          values={
              "statsd": {
                  "enabled": True,
                  "overrideMappings": [override_mapping],
              }
          },
          show_only=["templates/configmaps/statsd-configmap.yaml"],
      )
  
      mappings_yml = jmespath.search('data."mappings.yml"', docs[0])
      mappings_yml_obj = yaml.safe_load(mappings_yml)
  
      assert 1 == len(mappings_yml_obj["mappings"])
      assert (
          "airflow_pool_queued_slots"
          == mappings_yml_obj["mappings"][0]["name"]
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  import yaml
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 13 for calling the TestStatsd obj's underlying member method code with example usage: obj.test_statsd_configmap_when_exist_override_mappings() without return types