class_docstr: Tests PgBouncer.
class_docstr_tok: ["Tests","PgBouncer","."]
code: def test_metrics_exporter_resources(self):
      docs = render_chart(
          values={
              "pgbouncer": {
                  "enabled": True,
                  "metricsExporterSidecar": {
                      "resources": {
                          "requests": {"memory": "2Gi", "cpu": "1"},
                          "limits": {"memory": "3Gi", "cpu": "2"},
                      }
                  },
              }
          },
          show_only=["templates/pgbouncer/pgbouncer-deployment.yaml"],
      )
  
      assert {
          "limits": {
              "cpu": "2",
              "memory": "3Gi",
          },
          "requests": {
              "cpu": "1",
              "memory": "2Gi",
          },
      } == jmespath.search(
          "spec.template.spec.containers[1].resources", 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 13 for calling the TestPgbouncer obj's underlying member method code with example usage: obj.test_metrics_exporter_resources() without return types