Skip to content

Commit 0a33c08

Browse files
committed
changes for Ryan's review feedback
1 parent e12676d commit 0a33c08

File tree

3 files changed

+7
-39
lines changed

3 files changed

+7
-39
lines changed

integration-tests/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ Basic Use Cases described above are verified in all the domain configurations. A
7878
| Two Operators using same target domains namespace | create chart using target domains namespace as already running first operator, verify that deployment fails with expected error |
7979
| Operator Helm Chart using not preexisted target domains namespace | create chart using not preexisted target domains namespace as already running first operator, verify that deployment fails with expected error |
8080

81-
Situational Configuration Override Usecases
81+
Configuration Overrides Usecases
8282

8383
| Override | Usecase |
8484
| --- | --- |
85-
| Domain override | Override the admin server properties connect-timeout, max-message-size, restart-max, JMXCore and Serverlifecycle debug flags. Also T3Channel public address using Kubernetes secret. The override is verified by JMX client connecting to the serverConfig MBean tree and the values are checked against the expected values. The test client connects to the overridden T3 public address and port to connect to the MBean servers |
86-
| JDBC Resource Override | Override JDBC connection pool properties; initialCapacity, maxCapacity, test-connections-on-reserve, connection-harvest-max-count, inactive-connection-timeout-seconds. Override the jdbc driver parameters like data source url, db user and password using kubernetes secret. The test verifies the overridden functionality datasource url, user/pass by getting the data source connection and verifies the db name it is connected to. |
85+
| Domain override | Override the administration server properties connect-timeout, max-message-size, restart-max, JMXCore and Serverlifecycle debug flags. Also T3Channel public address using Kubernetes secret. The override is verified by JMX client connecting to the serverConfig MBean tree and the values are checked against the expected values. The test client connects to the overridden T3 public address and port to connect to the MBean servers |
86+
| JDBC Resource Override | Override JDBC connection pool properties; initialCapacity, maxCapacity, test-connections-on-reserve, connection-harvest-max-count, inactive-connection-timeout-seconds. Override the JDBC driver parameters like data source URL, DB user and password using kubernetes secret. The test verifies the overridden functionality datasource URL, user/pass by getting the data source connection and verifies the DB name it is connected to. |
8787
| JMS Resource Override | Override UniformDistributedTopic Delivery Failure Parameters, Redelivery limit and Expiration policy. The JMX test client verifies the serverConfig MBean tree for the expected deliver failure parameters, redelivery limit and expiration policy. |
8888
| WLDF Resource Override | Override instrumentation monitors and harvesters in a diagnostics module. The test client verifies the new instrumentation monitors / harvesters set by getting the WLDF resource from serverConfig tree with expected values. |
8989

integration-tests/src/test/resources/sitconfig/configoverrides/config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<d:domain xmlns:d="http://xmlns.oracle.com/weblogic/domain" xmlns:f="http://xmlns.oracle.com/weblogic/domain-fragment" xmlns:s="http://xmlns.oracle.com/weblogic/situational-config" >
33
<d:server>
44
<d:name>admin-server</d:name>
5-
<d:connect-timeout f:combine-mode="add">12</d:connect-timeout>
6-
<d:restart-max f:combine-mode="add">22</d:restart-max>
5+
<d:connect-timeout f:combine-mode="add">120</d:connect-timeout>
6+
<d:restart-max f:combine-mode="add">5</d:restart-max>
77
<d:max-message-size f:combine-mode="add">78787878</d:max-message-size>
88
<d:server-debug f:combine-mode="add">
99
<d:debug-server-life-cycle f:combine-mode="add">true</d:debug-server-life-cycle>

integration-tests/src/test/resources/sitconfig/java/SitConfigTests.java

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public static void main(String args[]) throws Exception {
6969
String testName = args[4];
7070

7171
SitConfigTests test = new SitConfigTests(adminHost, adminPort, adminUser, adminPassword);
72-
// SitConfigTests test = new SitConfigTests("slc11vjg", "30051", "weblogic", "welcome1");
7372

7473
ServerRuntimeMBean runtimeMBean = test.runtimeServiceMBean.getServerRuntime();
7574
println("Sitconfig State:" + runtimeMBean.isInSitConfigState());
@@ -78,8 +77,8 @@ public static void main(String args[]) throws Exception {
7877
test.verifyDebugFlagJMXCore(true);
7978
test.verifyDebugFlagServerLifeCycle(true);
8079
test.verifyMaxMessageSize(78787878);
81-
test.verifyConnectTimeout(12);
82-
test.verifyRestartMax(22);
80+
test.verifyConnectTimeout(120);
81+
test.verifyRestartMax(5);
8382
test.verifyT3ChannelPublicAddress(adminHost);
8483
test.verifyT3ChannelPublicPort(30091);
8584
}
@@ -302,24 +301,13 @@ public void testSystemResourcesJDBCAttributeChange(String jdbcResourceName) {
302301
: "Didn't get the expected value "
303302
+ inactiveConnectionTimeoutSeconds
304303
+ " for inactiveConnectionTimeoutSeconds";
305-
// testMaxPoolSize(resourceName, jcpb.getMaxCapacity());
306304

307305
// Assert the jdbc driver param properties
308306
JDBCDriverParamsBean jdbcDriverParams = jdbcDataSourceBean.getJDBCDriverParams();
309307
println("Data Source URL:" + jdbcDriverParams.getUrl());
310308
assert dsUrl.equals(jdbcDriverParams.getUrl())
311309
: "Didn't get the expected url for datasource " + dsUrl;
312310

313-
// println("jdbcDriverParams.getPasswordEncrypted()" +
314-
// jdbcDriverParams.getPasswordEncrypted()[0]);
315-
// Assert datasource user property
316-
/*
317-
JDBCPropertiesBean properties = jdbcDriverParams.getProperties();
318-
JDBCPropertyBean[] properties1 = properties.getProperties();
319-
for (JDBCPropertyBean jDBCPropertyBean : properties1) {
320-
println(jDBCPropertyBean.getName());
321-
}
322-
*/
323311
// Assert datasource is working with overiridden value
324312
DataSource dataSource = getDataSource("jdbc/" + jdbcResourceName);
325313

@@ -333,26 +321,6 @@ public void testSystemResourcesJDBCAttributeChange(String jdbcResourceName) {
333321
println("HOST_NAME:" + rs.getString("HOST_NAME"));
334322
assert dbHostName.equals(rs.getString("HOST_NAME"));
335323
}
336-
/*
337-
ResultSetMetaData meta = rs.getMetaData();
338-
int colCount = meta.getColumnCount();
339-
println(colCount + "");
340-
for (int col = 1; col <= colCount; col++) {
341-
System.out.print(meta.getColumnName(col) + " ");
342-
}
343-
println("");
344-
while (rs.next()) {
345-
println("INSTANCE_NAME:" + rs.getString("INSTANCE_NAME"));
346-
println("HOST_NAME:" + rs.getString("HOST_NAME"));
347-
for (int col = 1; col <= colCount; col++) {
348-
Object value = rs.getObject(col);
349-
if (value != null) {
350-
System.out.print("@" + value.toString() + "@ ");
351-
}
352-
}
353-
println("");
354-
}
355-
*/
356324
} catch (SQLException ex) {
357325
Logger.getLogger(SitConfigTests.class.getName()).log(Level.SEVERE, null, ex);
358326
}

0 commit comments

Comments
 (0)