Skip to content

Commit f3417a2

Browse files
committed
update voyager-java-integ-test
1 parent 90c9b2f commit f3417a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

integration-tests/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +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+
| LB_TYPE | The default value is "TRAEFIK". Set to "VOYAGER" if you want to use it as LB. |
207208
| INGRESSPERDOMAIN | The defult value is true. If you want to test creating LB by kubectl yaml for multiple domains, set it to false. |
208209
| WERCKER | Set to true if invoking from Wercker, set to false or "" if running stand-alone or from Jenkins. Default is "". |
209210
| JENKINS | Set to true if invoking from Jenkins, set to false or "" if running stand-alone or from Wercker. Default is "". |

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ public class ITOperator extends BaseTest {
5656
private static boolean JENKINS;
5757
private static boolean INGRESSPERDOMAIN = true;
5858
private static boolean VOYAGER;
59+
private static String LB_TYPE;
5960

6061
// Set QUICKTEST env var to true to run a small subset of tests.
6162
// Set SMOKETEST env var to true to run an even smaller subset
6263
// of tests, plus leave domain1 up and running when the test completes.
6364
// set INGRESSPERDOMAIN to false to create LB's ingress by kubectl yaml file
64-
// set VOYAGER to true to use it as loadBalancer
65+
// set LB_TYPE to "VOYAGER" to use it as loadBalancer
6566
static {
6667
QUICKTEST =
6768
System.getenv("QUICKTEST") != null && System.getenv("QUICKTEST").equalsIgnoreCase("true");
@@ -74,7 +75,8 @@ public class ITOperator extends BaseTest {
7475
if (System.getenv("INGRESSPERDOMAIN") != null) {
7576
INGRESSPERDOMAIN = new Boolean(System.getenv("INGRESSPERDOMAIN")).booleanValue();
7677
}
77-
VOYAGER = System.getenv("VOYAGER") != null && System.getenv("VOYAGER").equalsIgnoreCase("true");
78+
VOYAGER =
79+
System.getenv("LB_TYPE") != null && System.getenv("LB_TYPE").equalsIgnoreCase("VOYAGER");
7880
}
7981

8082
/**

0 commit comments

Comments
 (0)