class_docstr: Tests statsd.
class_docstr_tok: ["Tests","statsd","."]
code: def test_should_create_statsd_default(self):
      docs = render_chart(
          show_only=["templates/statsd/statsd-deployment.yaml"]
      )
  
      assert "release-name-statsd" == jmespath.search(
          "metadata.name", docs[0]
      )
  
      assert "statsd" == jmespath.search(
          "spec.template.spec.containers[0].name", docs[0]
      )
  
      assert {
          "name": "config",
          "configMap": {"name": "release-name-statsd"},
      } in jmespath.search("spec.template.spec.volumes", docs[0])
  
      assert {
          "name": "config",
          "mountPath": "/etc/statsd-exporter/mappings.yml",
          "subPath": "mappings.yml",
      } in jmespath.search(
          "spec.template.spec.containers[0].volumeMounts", docs[0]
      )
  
      default_args = [
          "--statsd.mapping-config=/etc/statsd-exporter/mappings.yml"
      ]
      assert default_args == jmespath.search(
          "spec.template.spec.containers[0].args", docs[0]
      )
  
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 1 for calling the TestStatsd obj's underlying member method code with example usage: obj.test_should_create_statsd_default() without return types