From df47e56a97e4f15d90a6a085ebd0918fd227c30f Mon Sep 17 00:00:00 2001 From: lasantha Date: Tue, 25 Jul 2017 17:24:36 +0530 Subject: [PATCH] enhancing app publishing test cases with role restriction --- .../jmeter-scripts/AppManagerTest.jmx | 576 +++++++++++++++++- 1 file changed, 575 insertions(+), 1 deletion(-) diff --git a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx index 1710b70a..06077374 100644 --- a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx +++ b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AppManagerTest.jmx @@ -1,5 +1,5 @@ - + @@ -1752,6 +1752,580 @@ vars.put("encoded", encoded); + + + + + ${script-path}test.apk + file + application/vnd.android.package-archive,.apk + + + + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/mobileapp/upload + POST + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + false + response + (?s)(^.*) + $1$ + + 1 + + + + + "package" : "com.apkpure.aegon", "version" : "1.1.10" + + Assertion.response_data + false + 16 + + + + + + + + ${script-path}image.png + bannerFile + image/png + + + ${script-path}image.png + screenshot1File + image/png + + + ${script-path}image.png + iconFile + image/png + + + + + + + true + ${response} + = + true + appmeta + + + false + 1WSO2Mobile + = + true + provider + + + false + enterprise + = + true + markettype + + + false + android + = + true + platform + + + false + ${mobile-app} + = + true + name + + + false + ${mobile-app} + = + true + displayName + + + false + ${mobile-app} + = + true + description + + + false + 1.1.10 + = + true + version + + + false + business + = + true + category + + + false + mobileapp + = + true + mobileapp + + + true + admin + = + true + visibility + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/asset/mobileapp + POST + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + + "ok" : "true", "message" : "Asset created." + + Assertion.response_data + false + 16 + + + + false + id + "id" : "(.*)" + $1$ + + + + + + + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/asset/mobileapp/${id} + GET + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + + "overview_visibility" : "admin" + + Assertion.response_data + false + 2 + + + + + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/mobile/delete/${id} + DELETE + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + + + + + ${script-path}test.apk + file + application/vnd.android.package-archive,.apk + + + + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/mobileapp/upload + POST + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + false + response + (?s)(^.*) + $1$ + + 1 + + + + + "package" : "com.apkpure.aegon", "version" : "1.1.10" + + Assertion.response_data + false + 16 + + + + + + + + ${script-path}image.png + bannerFile + image/png + + + ${script-path}image.png + screenshot1File + image/png + + + ${script-path}image.png + iconFile + image/png + + + + + + + true + ${response} + = + true + appmeta + + + false + 1WSO2Mobile + = + true + provider + + + false + enterprise + = + true + markettype + + + false + android + = + true + platform + + + false + ${mobile-app} + = + true + name + + + false + ${mobile-app} + = + true + displayName + + + false + ${mobile-app} + = + true + description + + + false + 1.1.10 + = + true + version + + + false + business + = + true + category + + + false + mobileapp + = + true + mobileapp + + + true + + = + true + visibility + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/asset/mobileapp + POST + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + + "ok" : "true", "message" : "Asset created." + + Assertion.response_data + false + 16 + + + + false + id + "id" : "(.*)" + $1$ + + + + + + + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/asset/mobileapp/${id} + GET + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + + + + "overview_visibility" : "admin" + + Assertion.response_data + false + 6 + + + + + + + + ${server} + ${port} + + + https + UTF-8 + publisher/api/mobile/delete/${id} + DELETE + true + false + true + true + false + + + + + + + X-CSRF-Token + ${X-CSRF-Token} + + + X-Requested-With + XmlHttpRequest + + + + +