class_docstr: Tests PgBouncer config.
class_docstr_tok: ["Tests","PgBouncer","config","."]
code: def test_databases_override(self):
      values = {
          "pgbouncer": {
              "enabled": True,
              "metadataPoolSize": 12,
              "resultBackendPoolSize": 7,
              "extraIniMetadata": "reserve_pool = 5",
              "extraIniResultBackend": "reserve_pool = 3",
          },
          "data": {
              "metadataConnection": {
                  "host": "meta_host",
                  "db": "meta_db",
                  "port": 1111,
              },
              "resultBackendConnection": {
                  "protocol": "postgresql",
                  "host": "rb_host",
                  "user": "someuser",
                  "pass": "someuser",
                  "db": "rb_db",
                  "port": 2222,
                  "sslmode": "disabled",
              },
          },
      }
      ini = self._get_pgbouncer_ini(values)
  
      assert (
          "release-name-metadata = host=meta_host dbname=meta_db port=1111 pool_size=12 reserve_pool = 5"
          in ini
      )
      assert (
          "release-name-result-backend = host=rb_host dbname=rb_db port=2222 pool_size=7 reserve_pool = 3"
          in ini
      )
  
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 TestPgbouncerConfig obj's underlying member method code with example usage: obj.test_databases_override() without return types