From a1ca2f6a43baa66ddc870deb16463b7c2a1a8839 Mon Sep 17 00:00:00 2001 From: madhawap Date: Wed, 26 Jul 2017 10:12:55 +0530 Subject: [PATCH] Modifications to QSG executor --- .../org/wso2/iot/integration/samples/MobileQSGTestCase.java | 2 +- .../src/main/java/org/wso2/mdm/qsg/QSGExecutor.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/samples/MobileQSGTestCase.java b/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/samples/MobileQSGTestCase.java index 0d2a1040..c653fd34 100644 --- a/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/samples/MobileQSGTestCase.java +++ b/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/samples/MobileQSGTestCase.java @@ -86,7 +86,7 @@ public class MobileQSGTestCase extends TestBase { Constants.APPLICATION_JSON, accessTokenString); HttpResponse response = appManagerRestClient.get(Constants.QSGManagement.GET_MOBILE_APPS_ENDPONT); Assert.assertEquals(response.getResponseCode(), HttpStatus.SC_OK); - Assert.assertTrue(response.getData().contains("Con-App-Android"), + Assert.assertTrue(response.getData().contains("WSO2Con-Android"), "Con-App-Android addition through script is not successful"); } diff --git a/modules/scripts/mobile-qsg/src/main/java/org/wso2/mdm/qsg/QSGExecutor.java b/modules/scripts/mobile-qsg/src/main/java/org/wso2/mdm/qsg/QSGExecutor.java index a4925c67..58a993df 100644 --- a/modules/scripts/mobile-qsg/src/main/java/org/wso2/mdm/qsg/QSGExecutor.java +++ b/modules/scripts/mobile-qsg/src/main/java/org/wso2/mdm/qsg/QSGExecutor.java @@ -132,7 +132,7 @@ public class QSGExecutor { System.out.println("Create the android application "); //Create application entry in publisher - status = AppOperations.addApplication("Con-App-Android", application, true); + status = AppOperations.addApplication("WSO2Con-Android", application, true); if (!status) { System.out.println("Unable to create the android mobile application. Terminating the IoTS QSG now."); System.exit(0); @@ -160,7 +160,7 @@ public class QSGExecutor { System.out.println("Create the iOS application "); //Create application entry in publisher - status = AppOperations.addApplication("WSO2Con", iOSApplication, true); + status = AppOperations.addApplication("WSO2Con-iOS", iOSApplication, true); if (!status) { System.out.println("Unable to create the iOS mobile application. Terminating the IoTS QSG now."); System.exit(0);