Skip to content

Commit db44fb1

Browse files
address review comments
1 parent 22d0ba5 commit db44fb1

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

integration-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ The tests accepts optional env var overrides:
204204
| RESULT_ROOT | The root directory to use for the tests temporary files. See "Directory Configuration and Structure" for defaults and a detailed description of test directories. |
205205
| PV_ROOT | The root directory on the kubernetes cluster used for persistent volumes. See "Directory Configuration and Structure" for defaults and a detailed description of test directories. |
206206
| QUICKTEST | When set to "true", limits testing to a subset of the tests. |
207-
| YAMLSTYLEINGRESS | When set to "true", LB's ingress will be created by kubectl yaml file. |
207+
| INGRESSPERDOMAIN | The defult value is true. If you want to test creating LB by kubectl yaml for multiple domains, set it to false. |
208208
| WERCKER | Set to true if invoking from Wercker, set to false or "" if running stand-alone or from Jenkins. Default is "". |
209209
| JENKINS | Set to true if invoking from Jenkins, set to false or "" if running stand-alone or from Wercker. Default is "". |
210210
| NODEPORT_HOST | DNS name of a Kubernetes worker node. Default is the local host's hostname. |

integration-tests/src/test/java/oracle/kubernetes/operator/ITOperator.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public class ITOperator extends BaseTest {
5454
private static boolean QUICKTEST;
5555
private static boolean SMOKETEST;
5656
private static boolean JENKINS;
57-
private static boolean YAMLSTYLEINGRESS;
57+
private static boolean INGRESSPERDOMAIN = true;
5858

5959
// Set QUICKTEST env var to true to run a small subset of tests.
6060
// Set SMOKETEST env var to true to run an even smaller subset
6161
// of tests, plus leave domain1 up and running when the test completes.
62-
// set YAMLSTYLEINGRESS to true to create LB's ingress by kubectl yaml file
62+
// set INGRESSPERDOMAIN to false to create LB's ingress by kubectl yaml file
6363
static {
6464
QUICKTEST =
6565
System.getenv("QUICKTEST") != null && System.getenv("QUICKTEST").equalsIgnoreCase("true");
@@ -69,9 +69,9 @@ public class ITOperator extends BaseTest {
6969
if (System.getenv("JENKINS") != null) {
7070
JENKINS = new Boolean(System.getenv("JENKINS")).booleanValue();
7171
}
72-
YAMLSTYLEINGRESS =
73-
System.getenv("YAMLSTYLEINGRESS") != null
74-
&& System.getenv("YAMLSTYLEINGRESS").equalsIgnoreCase("true");
72+
INGRESSPERDOMAIN =
73+
System.getenv("INGRESSPERDOMAIN") != null
74+
&& System.getenv("INGRESSPERDOMAIN").equalsIgnoreCase("false");
7575
}
7676

7777
/**
@@ -236,7 +236,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
236236
wlstDomainMap.put("domainUID", "domain1onpvwlst");
237237
wlstDomainMap.put("adminNodePort", new Integer("30702"));
238238
wlstDomainMap.put("t3ChannelPort", new Integer("30031"));
239-
if (YAMLSTYLEINGRESS) {
239+
if (!INGRESSPERDOMAIN) {
240240
wlstDomainMap.put("ingressPerDomain", new Boolean("false"));
241241
logger.info(
242242
"domain1onpvwlst ingressPerDomain is set to: "
@@ -257,7 +257,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
257257
wdtDomainMap.put("adminNodePort", new Integer("30703"));
258258
wdtDomainMap.put("t3ChannelPort", new Integer("30041"));
259259
// wdtDomainMap.put("clusterType", "Configured");
260-
if (YAMLSTYLEINGRESS) {
260+
if (!INGRESSPERDOMAIN) {
261261
wdtDomainMap.put("ingressPerDomain", new Boolean("false"));
262262
logger.info(
263263
"domain2onpvwdt ingressPerDomain is set to: "

integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,6 @@ private void callCreateDomainScript(String outputDir) throws Exception {
804804

805805
private void createLoadBalancer() throws Exception {
806806
Map<String, Object> lbMap = new HashMap<String, Object>();
807-
// lbMap.put("name", "traefik-hostrouting-" + domainUid);
808807
lbMap.put("domainUID", domainUid);
809808
lbMap.put("namespace", domainNS);
810809
lbMap.put("host", domainUid + ".org");

integration-tests/src/test/java/oracle/kubernetes/operator/utils/LoadBalancer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ private void upgradeTraefikNamespace() throws Exception {
100100

101101
String chartDir = BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/charts";
102102

103-
// StringBuffer cmd = new StringBuffer("cd ");
104-
// cmd.append(chartDir).append(" && helm upgrade ");
105103
StringBuffer cmd = new StringBuffer("helm upgrade ");
106104
cmd.append("--reuse-values ")
107105
.append("--set ")

0 commit comments

Comments
 (0)