class_docstr: Tests PgBouncer.
class_docstr_tok: ["Tests","PgBouncer","."]
code: def test_should_add_global_volume_and_global_volume_mount(self):
      docs = render_chart(
          values={
              "pgbouncer": {
                  "enabled": True,
              },
              "volumes": [
                  {
                      "name": "pgbouncer-client-certificates",
                      "secret": {
                          "secretName": "pgbouncer-client-tls-certificate"
                      },
                  }
              ],
              "volumeMounts": [
                  {
                      "name": "pgbouncer-client-certificates",
                      "mountPath": "/etc/pgbouncer/certs",
                  }
              ],
          },
          show_only=["templates/pgbouncer/pgbouncer-deployment.yaml"],
      )
  
      assert "pgbouncer-client-certificates" in jmespath.search(
          "spec.template.spec.volumes[*].name", docs[0]
      )
      assert "pgbouncer-client-certificates" in jmespath.search(
          "spec.template.spec.containers[0].volumeMounts[*].name",
          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 18 for calling the TestPgbouncer obj's underlying member method code with example usage: obj.test_should_add_global_volume_and_global_volume_mount() without return types