@parameterized.expand([({'enabled': False}, {'emptyDir': {}}), ({'enabled': True}, {'persistentVolumeClaim': {'claimName': 'RELEASE-NAME-logs'}}), ({'enabled': True, 'existingClaim': 'test-claim'}, {'persistentVolumeClaim': {'claimName': 'test-claim'}})])
def test_logs_persistence_changes_volume(self, log_persistence_values, expected):
    docs = render_chart(values={'logs': {'persistence': log_persistence_values}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ({'name': 'logs', **expected} in jmespath.search('spec.volumes', docs[0]))
@parameterized.expand([({'enabled': False}, {'emptyDir': {}}), ({'enabled': True}, {'persistentVolumeClaim': {'claimName': 'RELEASE-NAME-logs'}}), ({'enabled': True, 'existingClaim': 'test-claim'}, {'persistentVolumeClaim': {'claimName': 'test-claim'}})])
def test_logs_persistence_changes_volume(self, log_persistence_values, expected):
    docs = render_chart(values={'logs': {'persistence': log_persistence_values}}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert ({'name': 'logs', **expected} in jmespath.search('spec.volumes', docs[0]))