Skip to content

Commit 0ce82b6

Browse files
committed
Adding debugging code
1 parent d8147eb commit 0ce82b6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class SitConfig extends BaseTest {
4444
private static String mysqlYamlFile = "";
4545
private static String domainYaml;
4646
private static String JDBC_RES_SCRIPT;
47-
private static String oldSecret = "test-secrets";
48-
private static String newSecret = "test-secrets-new";
47+
private static final String oldSecret = "test-secrets";
48+
private static final String newSecret = "test-secrets-new";
4949

5050
/**
5151
* This method gets called only once before any of the test methods are executed. It does the
@@ -577,6 +577,7 @@ private void transferTests() throws Exception {
577577
"runSitConfigTests.sh",
578578
ADMINPODNAME,
579579
domain.getDomainNs());
580+
TestUtils.exec("kubectl get all --all-namespaces", true);
580581
}
581582

582583
/**

integration-tests/src/test/resources/sitconfig/scripts/runSitConfigTests.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,20 @@
1515

1616
source $ORACLE_HOME/wlserver/server/bin/setWLSEnv.sh
1717
javac -d . SitConfigTests.java
18+
19+
domaindir="notexisting"
20+
if [ -d "/shared/domains/customsitconfigdomain/optconfig" ]
21+
then
22+
domaindir="/shared/domains/customsitconfigdomain/optconfig"
23+
else
24+
domaindir="/u01/oracle/user_projects/domains/customsitconfigdomain/optconfig"
25+
fi
26+
27+
cat $domaindir/introspector-situational-config.xml
28+
cat $domaindir/custom-situational-config.xml
29+
cat $domaindir/jms/*
30+
cat $domaindir/jdbc/*
31+
cat $domaindir/diagnostics/*
32+
1833
java -ea -cp $ORACLE_HOME:$CLASSPATH oracle.kubernetes.operator.SitConfigTests $@
1934

0 commit comments

Comments
 (0)