aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java')
-rw-r--r--src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java b/src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java
index 79ea56a..2dbb6c1 100644
--- a/src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java
+++ b/src/test/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReaderTest.java
@@ -36,13 +36,12 @@ import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import org.junit.jupiter.params.ParameterizedTest;
-import org.junit.jupiter.params.provider.ValueSource;
import org.onap.sdc.helmvalidator.helm.versions.exception.ApiVersionNotFoundException;
import org.onap.sdc.helmvalidator.helm.versions.exception.ReadFileException;
class ApiVersionsReaderTest {
+ private static final String API_VERSION_V2= "v2";
private static final String TEST_RESOURCES_TMP = "src/test/resources/tmp";
private static final Path TEST_CHART_PATH = Path.of(TEST_RESOURCES_TMP).resolve(Path.of("Chart.yaml"));
@@ -55,14 +54,13 @@ class ApiVersionsReaderTest {
apiVersionsReader = new ApiVersionsReader();
}
- @ParameterizedTest
- @ValueSource(strings = {"v1", "v2"})
- void shouldCorrectlyReadApiVersionFromTar(String apiVersion) throws IOException {
- prepareTestTar(apiVersion);
+ @Test
+ void shouldCorrectlyReadApiVersionFromTar() throws IOException {
+ prepareTestTar(API_VERSION_V2);
String helmVersion = apiVersionsReader.readVersion(TEST_TAR_PATH.toString());
- assertThat(helmVersion).isEqualTo(apiVersion);
+ assertThat(helmVersion).isEqualTo(API_VERSION_V2);
}
@Test