Skip to content

Commit 63d27b0

Browse files
committed
Move chart tests to top level of kubernetes directory
1 parent 6cdb13d commit 63d27b0

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

kubernetes/charts/pom.xml renamed to kubernetes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<version>1.0</version>
1212
</parent>
1313

14-
<artifactId>helm-charts-test</artifactId>
14+
<artifactId>installation-tests</artifactId>
1515

1616
<description>Oracle Weblogic Server Kubernetes Operator</description>
1717
<name>helm-chart-tests</name>

kubernetes/charts/src/test/java/oracle/kubernetes/operator/helm/ProcessedChart.java renamed to kubernetes/src/test/java/oracle/kubernetes/operator/helm/ProcessedChart.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private Process getProcess() throws Exception {
110110
}
111111

112112
private Process processChart(String chartName, UpdateValues updateValues) throws Exception {
113-
File chartsDir = getChartsDir(chartName);
113+
File chartsDir = getChartDir(chartName);
114114
File baseValuesFile = new File(chartsDir, "values.yaml");
115115
Map<String, String> values = new Yaml().load(new FileReader(baseValuesFile));
116116

@@ -134,8 +134,16 @@ private Path createUpdatedValuesFile(UpdateValues updateValues, Map<String, Stri
134134
return valuesFile;
135135
}
136136

137-
private File getChartsDir(String chartName) throws URISyntaxException {
138-
return new File(getTargetDir(getClass()).getParentFile(), chartName);
137+
private File getChartDir(String chartName) throws URISyntaxException {
138+
return new File(getChartsParentDir(), chartName);
139+
}
140+
141+
private File getChartsParentDir() throws URISyntaxException {
142+
return new File(getModuleDir(), "charts");
143+
}
144+
145+
private File getModuleDir() throws URISyntaxException {
146+
return getTargetDir(getClass()).getParentFile();
139147
}
140148

141149
private File getTargetDir(Class<?> aClass) throws URISyntaxException {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<module>operator</module>
1414
<module>swagger</module>
1515
<module>integration-tests</module>
16-
<module>kubernetes/charts</module>
16+
<module>kubernetes</module>
1717
</modules>
1818

1919
<scm>

0 commit comments

Comments
 (0)