class_docstr: Tests PgBouncer exporter.
class_docstr_tok: ["Tests","PgBouncer","exporter","."]
code: def test_unused_secret_key(self):
      docs = render_chart(
          "test-pgbouncer-stats",
          values={
              "pgbouncer": {
                  "enabled": True,
                  "metricsExporterSidecar": {
                      "statsSecretKey": "unused",
                  },
              },
          },
          show_only=["templates/pgbouncer/pgbouncer-deployment.yaml"],
      )
  
      assert {
          "name": "test-pgbouncer-stats-pgbouncer-stats",
          "key": "connection",
      } == jmespath.search(
          "spec.template.spec.containers[1].env[0].valueFrom.secretKeyRef",
          docs[0],
      )
  
imports: from __future__ import annotations
  import base64
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 8 for calling the TestPgbouncerExporter obj's underlying member method code with example usage: obj.test_unused_secret_key() without return types