diff --git a/modules/distribution/src/core/bin/analytics.sh b/modules/distribution/src/core/bin/analytics.sh index 04b66792..6b924b76 100755 --- a/modules/distribution/src/core/bin/analytics.sh +++ b/modules/distribution/src/core/bin/analytics.sh @@ -61,10 +61,6 @@ ANALYTICS_INIT_SCRIPT="$CARBON_HOME/wso2/analytics/bin/wso2server.sh" # If the daemon is not there, then exit. -sh $ANALYTICS_INIT_SCRIPT $* & +$ANALYTICS_INIT_SCRIPT $* +exit; -trap "sh $ANALYTICS_INIT_SCRIPT stop; exit;" INT TERM -while : -do - sleep 60 -done diff --git a/modules/distribution/src/core/bin/broker.sh b/modules/distribution/src/core/bin/broker.sh index ea94ffc4..b3f1a715 100755 --- a/modules/distribution/src/core/bin/broker.sh +++ b/modules/distribution/src/core/bin/broker.sh @@ -61,10 +61,5 @@ BROKER_INIT_SCRIPT="$CARBON_HOME/wso2/broker/bin/wso2server.sh" # If the daemon is not there, then exit. -sh $BROKER_INIT_SCRIPT $* & - -trap "sh $BROKER_INIT_SCRIPT stop; exit;" INT TERM -while : -do - sleep 60 -done +$BROKER_INIT_SCRIPT $* +exit; diff --git a/modules/distribution/src/core/bin/iot-server.sh b/modules/distribution/src/core/bin/iot-server.sh index c57597e4..a3ef3be0 100755 --- a/modules/distribution/src/core/bin/iot-server.sh +++ b/modules/distribution/src/core/bin/iot-server.sh @@ -181,7 +181,7 @@ elif [ "$CMD" = "start" ]; then fi export CARBON_HOME=$CARBON_HOME # using nohup sh to avoid erros in solaris OS.TODO - nohup sh $CARBON_HOME/bin/wso2server.sh $args > /dev/null 2>&1 & + nohup sh $CARBON_HOME/bin/iot-server.sh $args > /dev/null 2>&1 & exit 0 elif [ "$CMD" = "stop" ]; then export CARBON_HOME=$CARBON_HOME @@ -200,7 +200,7 @@ elif [ "$CMD" = "restart" ]; then done # using nohup sh to avoid erros in solaris OS.TODO - nohup sh $CARBON_HOME/bin/wso2server.sh $args > /dev/null 2>&1 & + nohup sh $CARBON_HOME/bin/iot-server.sh $args > /dev/null 2>&1 & exit 0 elif [ "$CMD" = "test" ]; then JAVACMD="exec "$JAVACMD"" diff --git a/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java b/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java index 1e729462..3f5ea20f 100644 --- a/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java +++ b/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java @@ -60,8 +60,7 @@ public class MobileDeviceManagementWithNoDevices extends TestBase { TimeUnit.SECONDS.sleep(5); long WAIT_TIME = 40000; if (System.currentTimeMillis() - startTime > WAIT_TIME) { - Assert.fail("Required APIs are not deployed after waiting for " + WAIT_TIME + " ms time-out has " - + "happened"); + Assert.fail("Required APIs are not deployed after waiting for " + WAIT_TIME + " time-out has happened"); } } } diff --git a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx index 34738b5d..36b5ede2 100644 --- a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx +++ b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx @@ -1,5 +1,5 @@ - + @@ -10206,7 +10206,15 @@ vars.put("base64encodedId",new String(encryptedId)); - + + + false + 100 + = + true + limit + + ${host} ${https_port}