Skip to content

Commit eda732b

Browse files
committed
add more jrf tests in Operator
1 parent 397bb1a commit eda732b

File tree

12 files changed

+850
-44
lines changed

12 files changed

+850
-44
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class BaseTest {
6464
private static int waitTimePod = 5;
6565
private static String leaseId = "";
6666
private static String branchName = "";
67-
private static String appLocationInPod = "/u01/oracle/apps";
67+
protected static String appLocationInPod = "/u01/oracle/apps";
6868
private static String appLocationOnHost;
6969
private static Properties appProps;
7070

@@ -339,13 +339,24 @@ public void testWSLoadBalancing(Domain domain) throws Exception {
339339
logger.info("Done - testWSLoadBalancing");
340340
}
341341

342+
/**
343+
* use default cluster service port 8011
344+
*
345+
* @param operator
346+
* @param domain
347+
* @throws Exception
348+
*/
349+
public void testDomainLifecyle(Operator operator, Domain domain) throws Exception {
350+
testDomainLifecyle(operator, domain, 8011);
351+
}
352+
342353
/**
343354
* Restarting the domain should not have any impact on Operator managing the domain, web app load
344355
* balancing and node port service
345356
*
346357
* @throws Exception
347358
*/
348-
public void testDomainLifecyle(Operator operator, Domain domain) throws Exception {
359+
public void testDomainLifecyle(Operator operator, Domain domain, int port) throws Exception {
349360
logger.info("Inside testDomainLifecyle");
350361
domain.destroy();
351362
domain.create();
@@ -362,7 +373,7 @@ public void testDomainLifecyle(Operator operator, Domain domain) throws Exceptio
362373
// intermittent failure, see OWLS-73416
363374
// testWSLoadBalancing(domain);
364375
domain.verifyAdminServerExternalService(getUsername(), getPassword());
365-
domain.verifyHasClusterServiceChannelPort("TCP", 8011, TESTWEBAPP + "/");
376+
domain.verifyHasClusterServiceChannelPort("TCP", port, TESTWEBAPP + "/");
366377
logger.info("Done - testDomainLifecyle");
367378
}
368379

0 commit comments

Comments
 (0)