def test_should_set_the_dags_volume_claim_correctly_when_using_an_existing_claim(self):
    docs = render_chart(values={'dags': {'persistence': {'enabled': True, 'existingClaim': 'test-claim'}}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ({'name': 'dags', 'persistentVolumeClaim': {'claimName': 'test-claim'}} in jmespath.search('spec.volumes', docs[0]))
def test_should_set_the_dags_volume_claim_correctly_when_using_an_existing_claim(self):
    docs = render_chart(values={'dags': {'persistence': {'enabled': True, 'existingClaim': 'test-claim'}}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ({'name': 'dags', 'persistentVolumeClaim': {'claimName': 'test-claim'}} in jmespath.search('spec.volumes', docs[0]))