Skip to content

Commit fb0c617

Browse files
committed
reset ITOperator.props, corrected indented lines, cleaned commented out lines
1 parent 0dc511f commit fb0c617

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,16 +1257,6 @@ public static void buildDeployWebServiceAppInPod(
12571257
String domainNS = domain.getDomainNS();
12581258
int managedServerPort = ((Integer) (domain.getDomainMap()).get("managedServerPort")).intValue();
12591259
String wsServiceName = (args.length == 0) ? BaseTest.TESTWSSERVICE : args[0];
1260-
/*
1261-
String clusterURL =
1262-
domain.getDomainUid()
1263-
+ "-cluster-"
1264-
+ domain.getClusterName()
1265-
+ "."
1266-
+ domainNS
1267-
+ ".svc.cluster.local:"
1268-
+ managedServerPort;
1269-
*/
12701260
String clusterURL =
12711261
retrieveClusterIP(domain.getDomainUid(), domain.getClusterName(), domainNS)
12721262
+ ":"

integration-tests/src/test/resources/OperatorIT.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ baseDir=/scratch
55
#wls admin user
66
username=weblogic
77
password=welcome1
8-
maxIterationsPod=50
8+
maxIterationsPod=25
99
waitTimePod=10

integration-tests/src/test/resources/apps/buildDeployWSAndWSClientAppInPod.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ echo -e "curl --noproxy '*' --silent --user ${USER}:${PASSWORD} -H X-Requested-
5656
curl --noproxy '*' --silent --user ${USER}:${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F "model={ name: '${APP_NAME}', targets: [ { identity: [ clusters, '${DEPLOY_TARGET}' ] } ] }" -F "sourcePath=@${ARCHIVE_FILE_WS}" -H "Prefer:respond-async" -X POST http://${HOST}:${PORT}/management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD}/deployWS.out
5757
sleep 10
5858
grep -q "STATE_RUNNING" ${APP_DIR_INPOD}/deployWS.out
59-
cres=$?
60-
[[ $cres != 0 ]] && echo "[FAIL] Unable to deploy wsapp ..."
61-
[[ $cres == 0 ]] && echo "[SUCCESS] wsapp is deployed ..."
59+
cres=$?
60+
[[ $cres != 0 ]] && echo "[FAIL] Unable to deploy wsapp ..." && exit -1
61+
[[ $cres == 0 ]] && echo "[SUCCESS] wsapp is deployed ..."
6262

6363
echo "Deploy ${APP_NAME}Servlet using curl:"
6464
echo -e "curl --noproxy '*' --silent --user ${USER}:${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F \"model={ name: '${APP_NAME}servlet', targets: [ { identity: [ clusters, '${DEPLOY_TARGET}' ] } ] }\" -F \"sourcePath=@${ARCHIVE_FILE_SERVLET}\" -H \"Prefer:respond-async\" -X POST http://${HOST}:${PORT}/management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD}/deployWSServlet.out\n"
6565
curl --noproxy '*' --silent --user ${USER}:${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F "model={ name: '${APP_NAME}servlet', targets: [ { identity: [ clusters, '${DEPLOY_TARGET}' ] } ] }" -F "sourcePath=@${ARCHIVE_FILE_SERVLET}" -H "Prefer:respond-async" -X POST http://${HOST}:${PORT}/management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD}/deployWSServlet.out
6666
sleep 10
6767
grep -q "STATE_RUNNING" ${APP_DIR_INPOD}/deployWSServlet.out
68-
cres=$?
69-
[[ $cres != 0 ]] && echo "[FAIL] Unable to deploy wsclientapp ..."
70-
[[ $cres == 0 ]] && echo "[SUCCESS] wsclientapp is deployed ..."
68+
cres=$?
69+
[[ $cres != 0 ]] && echo "[FAIL] Unable to deploy wsclientapp ..." exit -1
70+
[[ $cres == 0 ]] && echo "[SUCCESS] wsclientapp is deployed ..."
7171

7272

7373
rm -rf ${APP_DIR_INPOD}/buildfiles
7474

75-
exit 0
75+
exit 0

0 commit comments

Comments
 (0)