def test_should_create_valid_volume_mount_and_volume(self):
    docs = render_chart(values={'workers': {'extraVolumes': [{'name': 'test-volume', 'emptyDir': {}}], 'extraVolumeMounts': [{'name': 'test-volume', 'mountPath': '/opt/test'}]}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ('test-volume' == jmespath.search('spec.volumes[2].name', docs[0]))
    assert ('test-volume' == jmespath.search('spec.containers[0].volumeMounts[2].name', docs[0]))
def test_should_create_valid_volume_mount_and_volume(self):
    docs = render_chart(values={'workers': {'extraVolumes': [{'name': 'test-volume', 'emptyDir': {}}], 'extraVolumeMounts': [{'name': 'test-volume', 'mountPath': '/opt/test'}]}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ('test-volume' == jmespath.search('spec.volumes[2].name', docs[0]))
    assert ('test-volume' == jmespath.search('spec.containers[0].volumeMounts[2].name', docs[0]))