class_docstr: Tests result backend connection secret.
class_docstr_tok: ["Tests","result","backend","connection","secret","."]
code: def test_should_default_to_custom_metadata_db_connection_in_old_version(
      self, version
  ):
      values = {
          "data": {
              "metadataConnection": {**self.non_chart_database_values}
          },
      }
      connection = self._get_connection(
          self._get_values_with_version(values=values, version=version)
      )
      self._assert_for_old_version(
          version,
          value=connection,
          expected_value="db+postgresql://someuser:somepass@somehost:7777/somedb?sslmode=allow",
      )
  
file_path: airflow/helm_tests/security/test_result_backend_connection_secret.py
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 TestResultBackendConnectionSecret obj's underlying member method code with example usage: obj.test_should_default_to_custom_metadata_db_connection_in_old_version(version) without return types