Skip to content

Commit d934994

Browse files
committed
adding app status debug
1 parent 640f683 commit d934994

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
import time as systime
5+
46
connect(sys.argv[1],sys.argv[2],sys.argv[3])
5-
deploy(sys.argv[4],sys.argv[5],sys.argv[6],upload='false',remote='false')
7+
deploy(sys.argv[4],sys.argv[5],sys.argv[6],upload='false',remote='false')
8+
systime.sleep(30)
9+
10+
cd ('AppDeployments')
11+
myapps=cmo.getAppDeployments()
12+
13+
for appName in myapps:
14+
domainConfig()
15+
cd ('/AppDeployments/'+appName.getName()+'/Targets')
16+
mytargets = ls(returnMap='true')
17+
domainRuntime()
18+
cd('AppRuntimeStateRuntime')
19+
cd('AppRuntimeStateRuntime')
20+
for targetinst in mytargets:
21+
curstate4=cmo.getCurrentState(appName.getName(),targetinst)
22+
print '-----------', curstate4, '-----------', appName.getName()

integration-tests/src/test/resources/statedump.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ function state_dump {
7979
fi
8080
else
8181

82-
$SCRIPTPATH/krun.sh -t 300 -d ${RESULT_DIR} -i ${IMAGE_TO_USE_IN_KRUN} -m "${PV_ROOT}:/sharedparent" -c 'jar cf /sharedparent/pvarchive.jar /sharedparent/acceptance_test_pv' 2>&1 | tee ${outfile}
82+
$SCRIPTPATH/krun.sh -t 300 -d ${RESULT_DIR} -m "${PV_ROOT}:/sharedparent" -c 'jar cf /sharedparent/pvarchive.jar /sharedparent/acceptance_test_pv' 2>&1 | tee ${outfile}
8383
if [ "$?" = "0" ]; then
84-
$SCRIPTPATH/krun.sh -t 300 -d ${RESULT_DIR} -i ${IMAGE_TO_USE_IN_KRUN} -m "${PV_ROOT}:/sharedparent" -c 'base64 /sharedparent/pvarchive.jar' > $RESULT_DIR/pvarchive.b64 2>&1
84+
$SCRIPTPATH/krun.sh -t 300 -d ${RESULT_DIR} -m "${PV_ROOT}:/sharedparent" -c 'base64 /sharedparent/pvarchive.jar' > $RESULT_DIR/pvarchive.b64 2>&1
8585
if [ "$?" = "0" ]; then
8686
base64 -di $RESULT_DIR/pvarchive.b64 > $ARCHIVE
8787
if [ "$?" = "0" ]; then

0 commit comments

Comments
 (0)