class_docstr: Tests PgBouncer exporter.
class_docstr_tok: ["Tests","PgBouncer","exporter","."]
code: def test_exporter_secret_with_overrides(self):
      connection = self._get_connection(
          {
              "pgbouncer": {
                  "enabled": True,
                  "metricsExporterSidecar": {"sslmode": "require"},
              },
              "data": {
                  "metadataConnection": {
                      "user": "username@123123",
                      "pass": "password@!@#$^&*()",
                      "host": "somehost",
                      "port": 7777,
                      "db": "somedb",
                  },
              },
              "ports": {"pgbouncer": 1111},
          }
      )
      assert (
          "postgresql://username%40123123:password%40%21%40%23$%5E&%2A%28%29@127.0.0.1:1111"
          "/pgbouncer?sslmode=require" == connection
      )
  
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 4 for calling the TestPgbouncerExporter obj's underlying member method code with example usage: obj.test_exporter_secret_with_overrides() without return types