def test_should_set_username_and_pass_env_variables(self):
    docs = render_chart(values={'dags': {'gitSync': {'enabled': True, 'credentialsSecret': 'user-pass-secret', 'sshKeySecret': None}}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ({'name': 'GIT_SYNC_USERNAME', 'valueFrom': {'secretKeyRef': {'name': 'user-pass-secret', 'key': 'GIT_SYNC_USERNAME'}}} in jmespath.search('spec.initContainers[0].env', docs[0]))
    assert ({'name': 'GIT_SYNC_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'user-pass-secret', 'key': 'GIT_SYNC_PASSWORD'}}} in jmespath.search('spec.initContainers[0].env', docs[0]))
def test_should_set_username_and_pass_env_variables(self):
    docs = render_chart(values={'dags': {'gitSync': {'enabled': True, 'credentialsSecret': 'user-pass-secret', 'sshKeySecret': None}}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ({'name': 'GIT_SYNC_USERNAME', 'valueFrom': {'secretKeyRef': {'name': 'user-pass-secret', 'key': 'GIT_SYNC_USERNAME'}}} in jmespath.search('spec.initContainers[0].env', docs[0]))
    assert ({'name': 'GIT_SYNC_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'user-pass-secret', 'key': 'GIT_SYNC_PASSWORD'}}} in jmespath.search('spec.initContainers[0].env', docs[0]))