Skip to content

Commit d98d459

Browse files
committed
Merge remote-tracking branch 'origin/develop' into introspect-status
2 parents c295463 + 1b4e345 commit d98d459

28 files changed

+1260
-132
lines changed

integration-tests/USECASES.MD

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,20 @@ Configuration Overrides Usecases
127127
| Replace/Append Configuration with config file written in non yml format via exporter console| Try to replace/append monitoring exporter configuration with config file written in non yml format, verify configuration has not changed |
128128
| Replace/Append Configuration with corrupted yml file via exporter console| Try to replace/append monitoring exporter configuration with config file written in corrupted yml format, verify configuration has not changed |
129129
| Replace/Append Configuration with dublicated values in the config file via exporter console| Try to replace/append monitoring exporter configuration with dublicated values in the config file, verify configuration has not changed |
130-
| Replace/Append Configuration with invalid credentials via exporter console| Try to replace/append monitoring exporter configuration with varios combos for invalid credentials, verify configuration has not changed and `401 Unauthorized` exception was thrown |
130+
| End to end test to demonstrate how to setup and run WebLogic Monitoring Exporter with operator and WebLogic domain| This is fully automated version of the sample, provided in the https://github.com/oracle/weblogic-monitoring-exporter/tree/alert/samples/kubernetes/end2end |
131+
132+
131133

132134
| Logging with Elastic Stack | Use Case |
133135
| --- | --- |
134136
| Search log level | Use Elasticsearch Count API to query logs of level=INFO and verify that total number of logs for level=INFO is not zero and failed count is zero |
135137
| Search Operator log | Use Elasticsearch Search APIs to query Operator log info and verify that log hits for type=weblogic-operator are not empty |
136138
| Search Weblogic log | Use Elasticsearch Search APIs to query Weblogic log info and verify that log hits for Weblogic servers are not empty |
139+
140+
| Operator Upgrade | Use Case |
141+
| --- | --- |
142+
| 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 |
143+
| 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 |
144+
| 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 |
145+
| 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 |
146+
| 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: 10 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;
@@ -47,6 +46,7 @@ public class BaseTest {
4746
public static final String DOMAIN_SAMPLE_DEFAULTS_YAML = "domainsampledefaults.yaml";
4847
public static final String DOMAININIMAGE_WLST_YAML = "domaininimagewlst.yaml";
4948
public static final String DOMAININIMAGE_WDT_YAML = "domaininimagewdt.yaml";
49+
public static final String DOMAINONSHARINGPV_WLST_YAML = "domainonsharingpvwlst.yaml";
5050

5151
// property file used to configure constants for integration tests
5252
public static final String APP_PROPS_FILE = "OperatorIT.properties";
@@ -73,6 +73,7 @@ public class BaseTest {
7373
private static String weblogicImageTag;
7474
private static String weblogicImageName;
7575
private static String weblogicImageServer;
76+
private static String domainApiVersion;
7677

7778
// Set QUICKTEST env var to true to run a small subset of tests.
7879
// Set SMOKETEST env var to true to run an even smaller subset of tests
@@ -120,6 +121,10 @@ public static void initialize(String appPropsFile) throws Exception {
120121
System.getenv("OCR_SERVER") != null
121122
? System.getenv("OCR_SERVER")
122123
: appProps.getProperty("OCR_SERVER");
124+
domainApiVersion =
125+
System.getenv("DOMAIN_API_VERSION") != null
126+
? System.getenv("DOMAIN_API_VERSION")
127+
: appProps.getProperty("DOMAIN_API_VERSION");
123128
maxIterationsPod =
124129
new Integer(appProps.getProperty("maxIterationsPod", "" + maxIterationsPod)).intValue();
125130
waitTimePod = new Integer(appProps.getProperty("waitTimePod", "" + waitTimePod)).intValue();
@@ -270,6 +275,10 @@ public static String getWeblogicImageServer() {
270275
return weblogicImageServer;
271276
}
272277

278+
public static String getDomainApiVersion() {
279+
return domainApiVersion;
280+
}
281+
273282
public static ExecResult cleanup() throws Exception {
274283
String cmd =
275284
"export RESULT_ROOT="

0 commit comments

Comments
 (0)