class_docstr: Tests PgBouncer config.
class_docstr_tok: ["Tests","PgBouncer","config","."]
code: def test_ssl_config(self):
      values = {
          "pgbouncer": {
              "enabled": True,
              "ssl": {
                  "ca": "someca",
                  "cert": "somecert",
                  "key": "somekey",
              },
          }
      }
      ini = self._get_pgbouncer_ini(values)
  
      assert "server_tls_ca_file = /etc/pgbouncer/root.crt" in ini
      assert "server_tls_cert_file = /etc/pgbouncer/server.crt" in ini
      assert "server_tls_key_file = /etc/pgbouncer/server.key" in ini
  
      docs = render_chart(
          values=values,
          show_only=[
              "templates/secrets/pgbouncer-certificates-secret.yaml"
          ],
      )
  
      for key, expected in [
          ("root.crt", "someca"),
          ("server.crt", "somecert"),
          ("server.key", "somekey"),
      ]:
          encoded = jmespath.search(f'data."{key}"', docs[0])
          value = base64.b64decode(encoded).decode()
          assert expected == value
  
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 10 for calling the TestPgbouncerConfig obj's underlying member method code with example usage: obj.test_ssl_config() without return types