Skip to content

Commit 12f1a92

Browse files
author
Sankar Periyathambi Neelakandan
committed
changes for Vanaja's comments
1 parent bf39215 commit 12f1a92

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

integration-tests/USECASES.MD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ Configuration Overrides Usecases
137137

138138
| Operator Upgrade | Use Case |
139139
| --- | --- |
140-
| Upgrade 2.0 operator to develop | Upgrade the 2.0 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows v4 |
141-
| Upgrade 2.0.1 operator to develop | Upgrade the 2.0.1 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows v4 |
142-
| Upgrade 2.1 operator to develop | Upgrade the 2.1 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows v4 |
143-
| Upgrade 2.2.0 operator to develop | Upgrade the 2.2.0 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows v4 |
144-
| Upgrade 2.2.1 operator to develop | Upgrade the 2.2.1 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows v4 |
140+
| Upgrade 2.0 operator to develop | Upgrade the 2.0 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows latest version |
141+
| Upgrade 2.0.1 operator to develop | Upgrade the 2.0.1 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows latest version |
142+
| Upgrade 2.1 operator to develop | Upgrade the 2.1 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows latest version |
143+
| Upgrade 2.2.0 operator to develop | Upgrade the 2.2.0 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows latest version |
144+
| Upgrade 2.2.1 operator to develop | Upgrade the 2.2.1 operator running a Weblogic domain to develop version of the Operator and verify apiVersion of the domain CRD shows latest version |

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.util.logging.SimpleFormatter;
1515
import javax.jms.Connection;
1616
import javax.jms.ConnectionFactory;
17-
1817
import oracle.kubernetes.operator.utils.Domain;
1918
import oracle.kubernetes.operator.utils.ExecCommand;
2019
import oracle.kubernetes.operator.utils.ExecResult;
@@ -73,6 +72,7 @@ public class BaseTest {
7372
private static String weblogicImageTag;
7473
private static String weblogicImageName;
7574
private static String weblogicImageServer;
75+
private static String domainApiVersion;
7676

7777
// Set QUICKTEST env var to true to run a small subset of tests.
7878
// Set SMOKETEST env var to true to run an even smaller subset of tests
@@ -120,6 +120,10 @@ public static void initialize(String appPropsFile) throws Exception {
120120
System.getenv("OCR_SERVER") != null
121121
? System.getenv("OCR_SERVER")
122122
: appProps.getProperty("OCR_SERVER");
123+
domainApiVersion =
124+
System.getenv("DOMAIN_API_VERSION") != null
125+
? System.getenv("DOMAIN_API_VERSION")
126+
: appProps.getProperty("DOMAIN_API_VERSION");
123127
maxIterationsPod =
124128
new Integer(appProps.getProperty("maxIterationsPod", "" + maxIterationsPod)).intValue();
125129
waitTimePod = new Integer(appProps.getProperty("waitTimePod", "" + waitTimePod)).intValue();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class ItOperatorUpgrade extends BaseTest {
3131

3232
private static final String OP_BASE_REL = "2.0";
3333
private static final String OP_TARGET_RELEASE = "weblogic-kubernetes-operator:latest";
34-
private static final String DOM_TARGET_RELEASE_VERSION = "weblogic.oracle/v4";
34+
private static String DOM_TARGET_RELEASE_VERSION = "";
3535
private static String OP_NS = "";
3636
private static String OP_DEP_NAME = "";
3737
private static String OP_SA = "";
@@ -54,6 +54,7 @@ private void setupOperatorAndDomain(String operatorGitRelease, String operatorRe
5454
throws Exception {
5555
logger.log(Level.INFO, "+++++++++++++++Beginning Test Setup+++++++++++++++++++++");
5656
initialize(APP_PROPS_FILE);
57+
DOM_TARGET_RELEASE_VERSION = domainApiVersion;
5758
opUpgradeTmpDir = BaseTest.getResultDir() + "/operatorupgrade";
5859
TestUtils.exec("rm -rf " + Paths.get(opUpgradeTmpDir).toString());
5960
Files.createDirectories(Paths.get(opUpgradeTmpDir));

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ public void callHelmInstall() throws Exception {
326326
.append(" --set \"imagePullPolicy=")
327327
.append(imagePullPolicy)
328328
.append("\" --wait --timeout 60");
329-
TestUtils.exec("cat " + generatedInputYamlFile);
330329
logger.info("Running " + cmd);
331330
ExecResult result = ExecCommand.exec(cmd.toString());
332331
if (result.exitValue() != 0) {

integration-tests/src/test/resources/OperatorIT.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ waitTimePod=10
1010
weblogicImageTag = 12.2.1.3
1111
weblogicImageName = container-registry.oracle.com/middleware/weblogic
1212
OCR_SERVER="container-registry.oracle.com"
13+
DOMAIN_API_VERSION = "weblogic.oracle/v4"

0 commit comments

Comments
 (0)