Skip to content

Commit abb0571

Browse files
committed
Merge branch 'sample-fmw' into 'main'
Sample fmw fix See merge request weblogic-cloud/weblogic-kubernetes-operator!5061
2 parents 52238b2 + c15cb65 commit abb0571

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/TestConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public interface TestConstants {
114114
String DB_PREBUILT_IMAGE_NAME_DEFAULT = "test-images/database/express";
115115
String DB_IMAGE_TAG_DEFAULT = "19.3.0.0";
116116
public static final String DB_IMAGE_TAG_DEFAULT_12C = "12.2.0.1-slim";
117-
public static final String DB_PDB_ID_DEFAULT_19C = "orclpdb1";
117+
public static final String DB_PDB_ID_DEFAULT_19C = "devpdb";
118118
public static final String DB_PDB_ID_DEFAULT_12C = "devpdb.k8s";
119119

120120
// repository to push the domain images created during test execution

integration-tests/src/test/java/oracle/weblogic/kubernetes/extensions/InitializationTasks.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020, 2024, Oracle and/or its affiliates.
1+
// Copyright (c) 2020, 2025, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes.extensions;
@@ -35,7 +35,6 @@
3535
import oracle.weblogic.kubernetes.logging.LoggingFacade;
3636
import oracle.weblogic.kubernetes.utils.ExecCommand;
3737
import oracle.weblogic.kubernetes.utils.ExecResult;
38-
import oracle.weblogic.kubernetes.utils.PortInuseEventWatcher;
3938
import org.awaitility.core.ConditionFactory;
4039
import org.junit.jupiter.api.extension.BeforeAllCallback;
4140
import org.junit.jupiter.api.extension.ExtensionContext;
@@ -147,8 +146,6 @@ public class InitializationTasks implements BeforeAllCallback, ExtensionContext.
147146
.and().with().pollInterval(10, SECONDS)
148147
.atMost(30, MINUTES).await();
149148

150-
PortInuseEventWatcher portInuseEventWatcher;
151-
152149
@Override
153150
public void beforeAll(ExtensionContext context) {
154151
LoggingFacade logger = getLogger();
@@ -162,8 +159,6 @@ public void beforeAll(ExtensionContext context) {
162159
*/
163160
if (!started.getAndSet(true)) {
164161
try {
165-
portInuseEventWatcher = new PortInuseEventWatcher();
166-
portInuseEventWatcher.start();
167162
// clean up the download directory so that we always get the latest
168163
// versions of the WDT and WIT tools in every run of the test suite.
169164
try {
@@ -450,7 +445,6 @@ public void close() {
450445
for (Handler handler : logger.getUnderlyingLogger().getHandlers()) {
451446
handler.close();
452447
}
453-
portInuseEventWatcher.interrupt();
454448
}
455449

456450
private String getOcirToken() {

kubernetes/samples/scripts/create-oracle-db-service/start-db-service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pullsecret="docker-store"
3333
namespace="default"
3434
pdbid="devpdb.k8s"
3535

36-
while getopts ":a:p:i:s:n:h:l:" opt; do
36+
while getopts ":a:p:i:s:n:h:" opt; do
3737
case $opt in
3838
a) syssecret="${OPTARG}"
3939
;;

operator/integration-tests/domain-on-pv/dpv-sample-wrapper/create-secrets.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if [ "$WDT_DOMAIN_TYPE" = "JRF" ]; then
5151
-d $DOMAIN_UID -n $DOMAIN_NAMESPACE \
5252
-l rcu_prefix=FMW${CUSTOM_DOMAIN_NAME} \
5353
-l rcu_schema_password=Oradoc_db1 \
54-
-l rcu_db_conn_string=oracle-db.${DB_NAMESPACE}.svc.cluster.local:1521/${DB_PDB_ID}
54+
-l rcu_db_conn_string=oracle-db.${DB_NAMESPACE}.svc.cluster.local:1521/${DB_PDB_ID} \
55+
-l dba_password=Oradoc_db1
5556
echo "@@ Info: Creating OPSS wallet password secret (ignored unless domain type is JRF)"
5657
$WORKDIR/domain-on-pv/utils/create-secret.sh $DRY_RUN -s ${DOMAIN_UID}-opss-wallet-password-secret \
5758
-d $DOMAIN_UID -n $DOMAIN_NAMESPACE \

operator/integration-tests/domain-on-pv/run-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ if [ "$DO_DB" = "true" ]; then
277277

278278
doCommand "\$DBSAMPLEDIR/stop-db-service.sh -n \$DB_NAMESPACE"
279279
if [ ! -z "$DB_IMAGE_PULL_SECRET" ]; then
280-
doCommand "\$DBSAMPLEDIR/start-db-service.sh -n \$DB_NAMESPACE -i \$DB_IMAGE_NAME:\$DB_IMAGE_TAG -p \$DB_NODE_PORT -l \$DB_PDB_ID -s \$DB_IMAGE_PULL_SECRET"
280+
doCommand "\$DBSAMPLEDIR/start-db-service.sh -n \$DB_NAMESPACE -i \$DB_IMAGE_NAME:\$DB_IMAGE_TAG -p \$DB_NODE_PORT -s \$DB_IMAGE_PULL_SECRET"
281281
else
282-
doCommand "\$DBSAMPLEDIR/start-db-service.sh -n \$DB_NAMESPACE -i \$DB_IMAGE_NAME:\$DB_IMAGE_TAG -p \$DB_NODE_PORT -l \$DB_PDB_ID"
282+
doCommand "\$DBSAMPLEDIR/start-db-service.sh -n \$DB_NAMESPACE -i \$DB_IMAGE_NAME:\$DB_IMAGE_TAG -p \$DB_NODE_PORT"
283283
fi
284284
fi
285285

0 commit comments

Comments
 (0)