Merge pull request #1185 from inoshperera/master

changing app to con app
merge-requests/1/head
Madhawa Perera 7 years ago committed by GitHub
commit d86f395804

@ -86,8 +86,8 @@ public class MobileQSGTestCase extends TestBase {
Constants.APPLICATION_JSON, accessTokenString); Constants.APPLICATION_JSON, accessTokenString);
HttpResponse response = appManagerRestClient.get(Constants.QSGManagement.GET_MOBILE_APPS_ENDPONT); HttpResponse response = appManagerRestClient.get(Constants.QSGManagement.GET_MOBILE_APPS_ENDPONT);
Assert.assertEquals(response.getResponseCode(), HttpStatus.SC_OK); Assert.assertEquals(response.getResponseCode(), HttpStatus.SC_OK);
Assert.assertTrue(response.getData().contains("NFC"), Assert.assertTrue(response.getData().contains("Con-App-Android"),
"NFC app addition through script is not successful"); "Con-App-Android addition through script is not successful");
} }
@Test(description = "This test case tests the policy creation through qsg script", dependsOnMethods = {"executeQSGScript"}) @Test(description = "This test case tests the policy creation through qsg script", dependsOnMethods = {"executeQSGScript"})

@ -116,7 +116,7 @@ public class QSGExecutor {
System.out.println("Upload the android application "); System.out.println("Upload the android application ");
//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"); "application/vnd.android.package-archive");
if (application == null) { if (application == null) {
System.out.println("Unable to upload the sample android application. Terminating the IoTS QSG now."); 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 "); System.out.println("Create the android application ");
//Create application entry in publisher //Create application entry in publisher
status = AppOperations.addApplication("NFC", application, true); status = AppOperations.addApplication("Con-App-Android", application, true);
if (!status) { if (!status) {
System.out.println("Unable to create the android mobile application. Terminating the IoTS QSG now."); System.out.println("Unable to create the android mobile application. Terminating the IoTS QSG now.");
System.exit(0); System.exit(0);

Loading…
Cancel
Save