Skip to content

Commit 57ebe98

Browse files
committed
adding debug
1 parent 1bbe629 commit 57ebe98

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import java.util.Map;
88
import oracle.kubernetes.operator.utils.Domain;
9+
import oracle.kubernetes.operator.utils.ExecResult;
910
import oracle.kubernetes.operator.utils.Operator;
1011
import oracle.kubernetes.operator.utils.Operator.RESTCertType;
1112
import oracle.kubernetes.operator.utils.TestUtils;
@@ -253,10 +254,20 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
253254
domain = TestUtils.createDomain(DOMAIN_ADMINONLY_YAML);
254255
domain.verifyDomainCreated();
255256
} finally {
257+
Map<String, Object> domainMap = domain.getDomainMap();
258+
String domainStoragePath = domainMap.get("weblogicDomainStoragePath").toString();
259+
String domainDir = domainStoragePath + "/domains/" + domainMap.get("domainUID").toString();
260+
ExecResult result =
261+
TestUtils.exec("ls -ltr " + domainDir + " && ls -ltr " + domainStoragePath + "/domains/");
262+
logger.info("ls -ltr " + result.stdout() + " err " + result.stderr());
263+
256264
if (domain != null) {
257265
// create domain on existing dir
258266
domain.destroy();
259267
}
268+
result =
269+
TestUtils.exec("ls -ltr " + domainDir + " && ls -ltr " + domainStoragePath + "/domains/");
270+
logger.info("ls -ltr " + result.stdout() + " err " + result.stderr());
260271
}
261272

262273
domain.createDomainOnExistingDirectory();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ public void createDomainOnExistingDirectory() throws Exception {
641641
logger.info("making sure the domain directory exists");
642642
ExecResult result =
643643
TestUtils.exec("ls -ltr " + domainDir + " && ls -ltr " + domainStoragePath + "/domains/");
644-
logger.info("ls -ltr " + result.stdout());
644+
logger.info("ls -ltr " + result.stdout() + " err " + result.stderr());
645645
if (domainDir != null && !(new File(domainDir).exists())) {
646646
throw new RuntimeException(
647647
"FAIL: the domain directory " + domainDir + " does not exist, exiting!");

0 commit comments

Comments
 (0)