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 d7bc3f59..0d2a1040 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,8 +86,8 @@ 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("NFC"), - "NFC app addition through script is not successful"); + Assert.assertTrue(response.getData().contains("Con-App-Android"), + "Con-App-Android addition through script is not successful"); } @Test(description = "This test case tests the policy creation through qsg script", dependsOnMethods = {"executeQSGScript"}) diff --git a/modules/scripts/mobile-qsg/resources/apps/android/con-app.apk b/modules/scripts/mobile-qsg/resources/apps/android/con-app.apk new file mode 100644 index 00000000..dbb2a8b7 Binary files /dev/null and b/modules/scripts/mobile-qsg/resources/apps/android/con-app.apk differ diff --git a/modules/scripts/mobile-qsg/resources/apps/android/nfc-app.apk b/modules/scripts/mobile-qsg/resources/apps/android/nfc-app.apk deleted file mode 100644 index 088eaeeb..00000000 Binary files a/modules/scripts/mobile-qsg/resources/apps/android/nfc-app.apk and /dev/null differ 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 9fc1a9fe..a4925c67 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 @@ -116,7 +116,7 @@ public class QSGExecutor { System.out.println("Upload the android application "); //Upload the android application - MobileApplication application = AppOperations.uploadApplication(Constants.DeviceType.ANDROID, "nfc-app.apk", + MobileApplication application = AppOperations.uploadApplication(Constants.DeviceType.ANDROID, "con-app.apk", "application/vnd.android.package-archive"); if (application == null) { System.out.println("Unable to upload the sample android application. Terminating the IoTS QSG now."); @@ -132,7 +132,7 @@ public class QSGExecutor { System.out.println("Create the android application "); //Create application entry in publisher - status = AppOperations.addApplication("NFC", application, true); + status = AppOperations.addApplication("Con-App-Android", application, true); if (!status) { System.out.println("Unable to create the android mobile application. Terminating the IoTS QSG now."); System.exit(0);