Skip to content

Commit 37b17fb

Browse files
committed
increase timeout
1 parent 326d725 commit 37b17fb

File tree

2 files changed

+10
-1
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator/utils
  • src/integration-tests/bash

2 files changed

+10
-1
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,15 @@ protected void createPV() throws Exception {
868868
BaseTest.getPvRoot() + "/acceptance_test_pv/persistentVolume-" + domainUid);
869869

870870
pvMap.values().removeIf(Objects::isNull);
871+
872+
String cmd =
873+
BaseTest.getProjectRoot()
874+
+ "/src/integration-tests/bash/krun.sh -m "
875+
+ BaseTest.getPvRoot()
876+
+ ":/scratch -c \"ls -ltr /scratch\"";
877+
logger.info("Check PVROOT by running " + cmd);
878+
ExecResult result = TestUtils.exec(cmd);
879+
871880
// k8s job mounts PVROOT /scratch/<usr>/wl_k8s_test_results to /scratch, create PV/PVC
872881
new PersistentVolume("/scratch/acceptance_test_pv/persistentVolume-" + domainUid, pvMap);
873882
}

src/integration-tests/bash/cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ if [ "${DELETE_FILES:-true}" = "true" ]; then
351351

352352
echo @@ Launching run to delete all pv contents. This runs in the k8s cluster, /sharedparent mounts PV_ROOT.
353353
# $SCRIPTPATH/job.sh "rm -fr /scratch/acceptance_test_pv"
354-
$SCRIPTPATH/krun.sh -i openjdk:11-oracle -m "${PV_ROOT}:/sharedparent" -c 'rm -fr /sharedparent/acceptance_test_pv'
354+
$SCRIPTPATH/krun.sh -i openjdk:11-oracle -t 300 -m "${PV_ROOT}:/sharedparent" -c 'rm -fr /sharedparent/acceptance_test_pv'
355355
[ "$?" = "0" ] || SUCCESS="1"
356356
echo @@ SUCCESS=$SUCCESS
357357

0 commit comments

Comments
 (0)