class_docstr: Tests basic helm chart tests.
class_docstr_tok: ["Tests","basic","helm","chart","tests","."]
code: def test_postgres_connection_url_name_override(self):
      # nameoverride provided
      doc = render_chart(
          "my-release",
          show_only=[
              "templates/secrets/metadata-connection-secret.yaml"
          ],
          values={"postgresql": {"nameOverride": "overrideName"}},
      )[0]
  
      assert "postgresql://postgres:postgres@overrideName:5432/postgres?sslmode=disable" == base64.b64decode(
          doc["data"]["connection"]
      ).decode(
          "utf-8"
      )
  
imports: from __future__ import annotations
  import base64
  import warnings
  from subprocess import CalledProcessError
  from typing import Any
  from unittest import mock
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 20 for calling the TestBaseChartTest obj's underlying member method code with example usage: obj.test_postgres_connection_url_name_override() without return types