File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import java .util .Map ;
8
8
import oracle .kubernetes .operator .utils .Domain ;
9
+ import oracle .kubernetes .operator .utils .ExecResult ;
9
10
import oracle .kubernetes .operator .utils .Operator ;
10
11
import oracle .kubernetes .operator .utils .Operator .RESTCertType ;
11
12
import oracle .kubernetes .operator .utils .TestUtils ;
@@ -253,10 +254,20 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
253
254
domain = TestUtils .createDomain (DOMAIN_ADMINONLY_YAML );
254
255
domain .verifyDomainCreated ();
255
256
} 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
+
256
264
if (domain != null ) {
257
265
// create domain on existing dir
258
266
domain .destroy ();
259
267
}
268
+ result =
269
+ TestUtils .exec ("ls -ltr " + domainDir + " && ls -ltr " + domainStoragePath + "/domains/" );
270
+ logger .info ("ls -ltr " + result .stdout () + " err " + result .stderr ());
260
271
}
261
272
262
273
domain .createDomainOnExistingDirectory ();
Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ public void createDomainOnExistingDirectory() throws Exception {
641
641
logger .info ("making sure the domain directory exists" );
642
642
ExecResult result =
643
643
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 () );
645
645
if (domainDir != null && !(new File (domainDir ).exists ())) {
646
646
throw new RuntimeException (
647
647
"FAIL: the domain directory " + domainDir + " does not exist, exiting!" );
You can’t perform that action at this time.
0 commit comments