From 4e53faae20576ec050ce2fd351fb657339bd751f Mon Sep 17 00:00:00 2001 From: gimhan_minion Date: Mon, 20 Mar 2023 21:58:54 +0530 Subject: [PATCH] Add android device mgt jmeter script --- ...oidDeviceManagementAPIJmeterTestCase.java} | 8 +- .../AndroidDeviceManagementAPI.jmx | 9174 +++++++++++++++++ .../jmeter-scripts/DeviceMgtCoreTestPlan.jmx | 788 -- .../src/test/resources/testng.xml | 2 +- 4 files changed, 9179 insertions(+), 793 deletions(-) rename integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/{DeviceMgtCoreAPIJmeterTestCase.java => AndroidDeviceManagementAPIJmeterTestCase.java} (83%) create mode 100644 integration-test/iot-community/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPI.jmx delete mode 100644 integration-test/iot-community/src/test/resources/jmeter-scripts/DeviceMgtCoreTestPlan.jmx diff --git a/integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/DeviceMgtCoreAPIJmeterTestCase.java b/integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/AndroidDeviceManagementAPIJmeterTestCase.java similarity index 83% rename from integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/DeviceMgtCoreAPIJmeterTestCase.java rename to integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/AndroidDeviceManagementAPIJmeterTestCase.java index 4405c8a..180bfe5 100644 --- a/integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/DeviceMgtCoreAPIJmeterTestCase.java +++ b/integration-test/iot-community/src/test/java/org/wso2/iot/integration/jmeter/AndroidDeviceManagementAPIJmeterTestCase.java @@ -32,13 +32,13 @@ import java.net.URL; /** * JMeter Test cases for Device Management APIs. */ -public class DeviceMgtCoreAPIJmeterTestCase { - private static Log log = LogFactory.getLog(DeviceMgtCoreAPIJmeterTestCase.class); +public class AndroidDeviceManagementAPIJmeterTestCase { + private static Log log = LogFactory.getLog(AndroidDeviceManagementAPIJmeterTestCase.class); - @Test(description = "Testing the device-mgt core functionalities") + @Test(description = "Testing the android device management functionalities") public void permutationTest() throws AutomationFrameworkException { URL url = Thread.currentThread().getContextClassLoader().getResource( - "jmeter-scripts" + File.separator + "DeviceMgtCoreTestPlan.jmx"); + "jmeter-scripts" + File.separator + "AndroidDeviceManagementAPI.jmx"); JMeterTest script = new JMeterTest(new File(url.getPath())); JMeterTestManager manager = new JMeterTestManager(); log.info("Running permutation test using jmeter scripts"); diff --git a/integration-test/iot-community/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPI.jmx b/integration-test/iot-community/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPI.jmx new file mode 100644 index 0000000..331dfd2 --- /dev/null +++ b/integration-test/iot-community/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPI.jmx @@ -0,0 +1,9174 @@ + + + + + + false + false + + + + host + 172.17.0.1 + = + + + http_port + 9763 + = + + + https_port + 9443 + = + + + + + + + + 9999 + 100 + + false + + randAppNum + + + + + + host + localhost + = + + + https_port + 8243 + = + + + http_port + 8280 + = + + + token_ep_host + localhost + = + + + token_ep_port + 8280 + = + + + tenant_user_name + admin + Name of Tenant + = + + + domain_name + wso2.com + Name of Domain + = + + + password + admin + Password + = + + + email + abc@wso2.com + Email + = + + + firstName + firstName + First Name + = + + + lastName + lastName + Last Name + = + + + usagePlan + Demo + Usage Plan + = + + + createdDate + 2013-02-22T08:22:35+05:30 + Created Date + = + + + management_https_port + 9443 + Port for carbon management console + = + + + + + + continue + + false + 1 + + 1 + + 1342532280000 + 1342532280000 + false + + + + + + + false + rfc2109 + + + + + + + https://${host}:${management_https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/ + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org"> + <soapenv:Header/> + <soapenv:Body> + <aut:login> + <!--Optional:--> + <aut:username>admin</aut:username> + <!--Optional:--> + <aut:password>admin</aut:password> + <!--Optional:--> + <aut:remoteAddress>127.0.0.1</aut:remoteAddress> + </aut:login> + </soapenv:Body> +</soapenv:Envelope> + + urn:login + true + false + + + + + + + https://${host}:${management_https_port}/services/TenantMgtAdminService.TenantMgtAdminServiceHttpsSoap11Endpoint/ + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org"> + <soapenv:Header/> + <soapenv:Body> + <ser:getTenant> + <!--Optional:--> + <ser:tenantDomain>${domain_name}</ser:tenantDomain> + </ser:getTenant> + </soapenv:Body> +</soapenv:Envelope> + + urn:getTenant + true + false + + + + undefined + tenant_exists + //*[local-name()='active']/text() + false + false + true + tenant_exists + + + + false + true + true + false + + + + + ${tenant_exists}==false + false + + + + + + + https://${host}:${management_https_port}/services/TenantMgtAdminService.TenantMgtAdminServiceHttpsSoap11Endpoint/ + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org" xmlns:xsd="http://beans.common.stratos.carbon.wso2.org/xsd"> + <soapenv:Header/> + <soapenv:Body> + <ser:addTenant> + <!--Optional:--> + <ser:tenantInfoBean> + <!--Optional:--> + <xsd:active>1</xsd:active> + <!--Optional:--> + <xsd:admin>${tenant_user_name}</xsd:admin> + <!--Optional:--> + <xsd:adminPassword>${password}</xsd:adminPassword> + <!--Optional:--> + <xsd:createdDate>${createdDate}</xsd:createdDate> + <!--Optional:--> + <xsd:email>${email}</xsd:email> + <!--Optional:--> + <xsd:firstname>${firstName}</xsd:firstname> + <!--Optional:--> + <xsd:lastname>${lastName}</xsd:lastname> + <!--Optional:--> + <xsd:tenantDomain>${domain_name}</xsd:tenantDomain> + <!--Optional:--> + <xsd:tenantId>0</xsd:tenantId> + <!--Optional:--> + <xsd:usagePlan>${usagePlan}</xsd:usagePlan> + </ser:tenantInfoBean> + </ser:addTenant> + </soapenv:Body> +</soapenv:Envelope> + + urn:addTenant + true + false + + + + + + + + https://${host}:${management_https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/ + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org"> + <soapenv:Header/> + <soapenv:Body> + <aut:logout/> + </soapenv:Body> +</soapenv:Envelope> + + urn:logout + true + false + + + + + 202 + + Assertion.response_code + false + 1 + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + true + false + false + false + false + false + 0 + true + true + + + /home/ace/Desktop/results_multi_user_multi_tenancy.jtl + + + + + continue + + false + 1 + + 1 + 1 + 1676462131000 + 1676462131000 + false + + + + + + + false + rfc2109 + + + + + + + https://${host}:${management_https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/ + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org"> + <soapenv:Header/> + <soapenv:Body> + <aut:login> + <!--Optional:--> + <aut:username>admin@wso2.com</aut:username> + <!--Optional:--> + <aut:password>admin</aut:password> + <!--Optional:--> + <aut:remoteAddress>127.0.0.1</aut:remoteAddress> + </aut:login> + </soapenv:Body> +</soapenv:Envelope> + + urn:login + true + false + + + + + + + https://${host}:${management_https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/ + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org"> + <soapenv:Header/> + <soapenv:Body> + <aut:logout/> + </soapenv:Body> +</soapenv:Envelope> + + urn:logout + true + false + + + + + 202 + + Assertion.response_code + false + 1 + + + + + + continue + + false + 1 + + 1 + 1 + 1465464058000 + 1465464058000 + false + + + + + + 1 + + 1 + DeviceID + # + false + + + + true + + + + false + { + "applicationName":"app_${randAppNum}", + "isAllowedToAllDomains":false, + "tags":["android", "device_management"], + "isMappingAnExistingOAuthApp":false +} + = + + + + ${host} + ${https_port} + + + https + + /api-application-registration/register + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Basic YWRtaW46YWRtaW4= + + + Host + localhost:9763 + + + Content-Type + application/json + + + + + + false + clientId + "client_id":"(.+?)" + $1$ + 0 + 1 + + + + false + clientSecret + "client_secret":"(.+?)" + $1$ + 0 + 1 + + + + + + clientId,clientSecret + false + import org.apache.commons.codec.binary.Base64; + +String clientId= vars.get("clientId"); +String clientSecret = vars.get("clientSecret"); +String toEncode = clientId + ":" + clientSecret; + +byte[] encryptedId = Base64.encodeBase64(toEncode.getBytes()); +vars.put("base64encodedId",new String(encryptedId)); + + + + + + + false + admin + = + true + username + + + false + admin + = + true + password + + + false + password + = + true + grant_type + + + false + perm:android:enroll perm:android:wipe perm:android:ring perm:android:lock-devices perm:android:configure-vpn perm:android:configure-wifi perm:android:enroll perm:android:uninstall-application perm:android:manage-configuration perm:android:location perm:android:install-application perm:android:mute perm:android:change-lock-code perm:android:blacklist-applications perm:android:set-password-policy perm:android:encrypt-storage perm:android:clear-password perm:android:enterprise-wipe perm:android:info perm:android:view-configuration perm:android:upgrade-firmware perm:android:set-webclip perm:android:send-notification perm:android:disenroll perm:android:update-application perm:android:unlock-devices perm:android:control-camera perm:android:reboot perm:android:logcat appm:subscribe perm:sign-csr perm:admin:devices:view perm:roles:add perm:roles:add-users perm:roles:update perm:roles:permissions perm:roles:details perm:roles:view perm:roles:create-combined-role perm:roles:delete perm:dashboard:vulnerabilities perm:dashboard:non-compliant-count perm:dashboard:non-compliant perm:dashboard:by-groups perm:dashboard:device-counts perm:dashboard:feature-non-compliant perm:dashboard:count-overview perm:dashboard:filtered-count perm:dashboard:details perm:get-activity perm:devices:delete perm:devices:applications perm:devices:effective-policy perm:devices:compliance-data perm:devices:features perm:devices:operations perm:devices:search perm:devices:details perm:devices:update perm:devices:view perm:view-configuration perm:manage-configuration perm:policies:remove perm:policies:priorities perm:policies:deactivate perm:policies:get-policy-details perm:policies:manage perm:policies:activate perm:policies:update perm:policies:changes perm:policies:get-details perm:users:add perm:users:details perm:users:count perm:users:delete perm:users:roles perm:users:user-details perm:users:credentials perm:users:search perm:users:is-exist perm:users:update perm:users:send-invitation perm:admin-users:view perm:groups:devices perm:groups:update perm:groups:add perm:groups:device perm:groups:devices-count perm:groups:remove perm:groups:groups perm:groups:groups-view perm:groups:share perm:groups:count perm:groups:roles perm:groups:devices-remove perm:groups:devices-add perm:groups:assign perm:device-types:features perm:device-types:types perm:applications:install perm:applications:uninstall perm:admin-groups:count perm:admin-groups:view perm:notifications:mark-checked perm:notifications:view perm:admin:certificates:delete perm:admin:certificates:details perm:admin:certificates:view perm:admin:certificates:add perm:admin:certificates:verify perm:ios:enroll perm:ios:view-device perm:ios:apn perm:ios:ldap perm:ios:enterprise-app perm:ios:store-application perm:ios:remove-application perm:ios:app-list perm:ios:profile-list perm:ios:lock perm:ios:enterprise-wipe perm:ios:device-info perm:ios:restriction perm:ios:email perm:ios:cellular perm:ios:applications perm:ios:wifi perm:ios:ring perm:ios:location perm:ios:notification perm:ios:airplay perm:ios:caldav perm:ios:cal-subscription perm:ios:passcode-policy perm:ios:webclip perm:ios:vpn perm:ios:per-app-vpn perm:ios:app-to-per-app-vpn perm:ios:app-lock perm:ios:clear-passcode perm:ios:remove-profile perm:ios:get-restrictions perm:ios:wipe-data perm:admin perm:android:applications + = + true + scope + + + false + + = + true + + + + + ${host} + ${https_port} + + + https + + /token + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Basic ${base64encodedId} + + + Content-Type + application/x-www-form-urlencoded + + + + + + false + access_token + "access_token":"(.+?)" + $1$ + no_token + 1 + + + + + true + + + + false + { + "id":10${DeviceID}, + "name":"androiddevice${DeviceID}", + "type":"android", + "description":"this is an android device", + "deviceIdentifier":"d24f870f390352a4${DeviceID}", + "enrolmentInfo":{ + "id":10${DeviceID}, + "device":{ + + }, + "dateOfEnrolment":0, + "dateOfLastUpdate":0, + "ownership":"BYOD", + "status":"CREATED", + "owner":"admin" + }, + "features":[ + { + "id":10, + "code":"aaaa1111", + "name":"newfeature1", + "description":"this is the new feature 1", + "deviceType":"android", + "metadataEntries":[ + { + "id":10, + "value":{ + + } + } + ] + } + ], + "properties":[ + { + "name":"property1", + "value":"value1" + } + ], + "deviceInfo":{ + "deviceModel":"S6", + "vendor":"SAMSUNG", + "osVersion":"5.1", + "batteryLevel":1, + "internalTotalMemory":32, + "internalAvailableMemory":24, + "externalTotalMemory":64, + "externalAvailableMemory":60, + "operator":"dialog", + "connectionType":"GSM", + "mobileSignalStrength":1, + "ssid":"picassowifi", + "cpuUsage":0, + "totalRAMMemory":2, + "availableRAMMemory":1, + "pluggedIn":false, + "location":{ + "deviceId":0, + "deviceIdentifier":{ + "id":"string", + "type":"string" + }, + "latitude":0, + "longitude":0, + "street1":"string", + "street2":"string", + "city":"string", + "state":"string", + "zip":"string", + "country":"string" + }, + "deviceDetailsMap":{ + + }, + "imei":"string", + "imsi":"string" + }, + "applications":[ + { + "id":0, + "platform":"string", + "category":"string", + "name":"string", + "locationUrl":"string", + "imageUrl":"string", + "version":"string", + "type":"string", + "appProperties":{ + + }, + "applicationIdentifier":"string", + "memoryUsage":0 + } + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices + POST + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + false + 0 + = + true + offset + + + false + 1 + = + true + limit + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + [ + { + "serial": "qwe12-23fdf-2s332-53fv3-sfs33", + "pem": " +MIIEXjCCA0agAwIBAgIJAPocSteC87XUMA0GCSqGSIb3DQEBBQUAMHwxCzAJBgNV +BAYTAlNMMRAwDgYDVQQIEwdDb2xvbWJvMRAwDgYDVQQHEwdDb2xvbWJvMRIwEAYD +VQQKEwlXU08yIEluYy4xHzAdBgkqhkiG9w0BCQEWEHRlY2hvcHNAd3NvMi5jb20x +FDASBgNVBAMTC1dTTzIgUmFkaXVzMB4XDTEzMDYyNzAzMzA0NFoXDTIzMDYyNTAz +MzA0NFowfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgTB0NvbG9tYm8xEDAOBgNVBAcT +B0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEfMB0GCSqGSIb3DQEJARYQdGVj +aG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBSYWRpdXMwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQDNmhw12cF0H2UGE/XtWVt238oGxn19+n/HkM2B +cDNQgnStqI+g/K2HBtjmvVPBh17Mt+dU2BIathn06amza+LI+hHgeLUSv30jutv4 +L5zD2laAU9A/I0Wtrxu5FlsevRPSiY7buLjTbjP7IMn9vdwb+9nBQCGxVpO6AK2A +gsFJ5udnp7L+jNsHmHFt36AYZouihgD+/RGVLBAhtPoU6XFB1JoGFM+4qxklJLPh +k86WollG4cFvHXSbO1P95n6Jb/V3hfM0PvwFZswRPVnW8ngqm889C/JEk5rK4FHy +xk9MgeFRW6zA+3rVnyPdhy6/q4EerBLMfBEWpzFHyHDKMGanAgMBAAGjgeIwgd8w +HQYDVR0OBBYEFKRxtF0CWPwL7jRvA4NSIzploUgrMIGvBgNVHSMEgacwgaSAFKRx +tF0CWPwL7jRvA4NSIzploUgroYGApH4wfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgT +B0NvbG9tYm8xEDAOBgNVBAcTB0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEf +MB0GCSqGSIb3DQEJARYQdGVjaG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBS +YWRpdXOCCQD6HErXgvO11DAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IB +AQCDQV9wy8rfuFp4uByqYhnrQjzBN75VbNcgpdYocOxQPLnjWRM5qdJHELrt4FEl +rDMGd1BpP7QMAEYJUIcpDHPbs9HVCeEV6hdOrLgGxNDB0YVa2Fr5k2U8gsNIgKZo +fKxscx0w5OM71IQbuppAgIHK29DBVBVppO+zduIbVtSoBo/gcVIqVGXQXf8TFtoV +xyfGUTYdBDP4fT4p8uLASXmdaFyegQOhkjSuchVPGSJOZD6TvOjE6ZvBu9eC7sqh +oTPY56Ld0GscWJmAuj+8vmWGu0md8MnM2DE0SIYE3bo/sPp3yEIbCAnHmcveG8hn +GEL4ZNjZ+jnwSkzwBU5vh/QS", + "tenantId": 0 + } +] + = + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + POST + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + false + 0 + = + true + offset + + + false + 1 + = + true + limit + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates/qwe12-23fdf-2s332-53fv3-sfs338 + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + false + qwe12-23fdf-2s332-53fv3-sfs33 + = + true + serialNumber + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + DELETE + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "serial": "qwe12-23fdf-2s332-53fv3-sfs33", + "pem": " +MIIEXjCCA0agAwIBAgIJAPocSteC87XUMA0GCSqGSIb3DQEBBQUAMHwxCzAJBgNV +BAYTAlNMMRAwDgYDVQQIEwdDb2xvbWJvMRAwDgYDVQQHEwdDb2xvbWJvMRIwEAYD +VQQKEwlXU08yIEluYy4xHzAdBgkqhkiG9w0BCQEWEHRlY2hvcHNAd3NvMi5jb20x +FDASBgNVBAMTC1dTTzIgUmFkaXVzMB4XDTEzMDYyNzAzMzA0NFoXDTIzMDYyNTAz +MzA0NFowfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgTB0NvbG9tYm8xEDAOBgNVBAcT +B0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEfMB0GCSqGSIb3DQEJARYQdGVj +aG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBSYWRpdXMwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQDNmhw12cF0H2UGE/XtWVt238oGxn19+n/HkM2B +cDNQgnStqI+g/K2HBtjmvVPBh17Mt+dU2BIathn06amza+LI+hHgeLUSv30jutv4 +L5zD2laAU9A/I0Wtrxu5FlsevRPSiY7buLjTbjP7IMn9vdwb+9nBQCGxVpO6AK2A +gsFJ5udnp7L+jNsHmHFt36AYZouihgD+/RGVLBAhtPoU6XFB1JoGFM+4qxklJLPh +k86WollG4cFvHXSbO1P95n6Jb/V3hfM0PvwFZswRPVnW8ngqm889C/JEk5rK4FHy +xk9MgeFRW6zA+3rVnyPdhy6/q4EerBLMfBEWpzFHyHDKMGanAgMBAAGjgeIwgd8w +HQYDVR0OBBYEFKRxtF0CWPwL7jRvA4NSIzploUgrMIGvBgNVHSMEgacwgaSAFKRx +tF0CWPwL7jRvA4NSIzploUgroYGApH4wfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgT +B0NvbG9tYm8xEDAOBgNVBAcTB0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEf +MB0GCSqGSIb3DQEJARYQdGVjaG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBS +YWRpdXOCCQD6HErXgvO11DAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IB +AQCDQV9wy8rfuFp4uByqYhnrQjzBN75VbNcgpdYocOxQPLnjWRM5qdJHELrt4FEl +rDMGd1BpP7QMAEYJUIcpDHPbs9HVCeEV6hdOrLgGxNDB0YVa2Fr5k2U8gsNIgKZo +fKxscx0w5OM71IQbuppAgIHK29DBVBVppO+zduIbVtSoBo/gcVIqVGXQXf8TFtoV +xyfGUTYdBDP4fT4p8uLASXmdaFyegQOhkjSuchVPGSJOZD6TvOjE6ZvBu9eC7sqh +oTPY56Ld0GscWJmAuj+8vmWGu0md8MnM2DE0SIYE3bo/sPp3yEIbCAnHmcveG8hn +GEL4ZNjZ+jnwSkzwBU5vh/QS", + "tenantId": 0 + } + = + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates/verify/android + POST + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + invalid + + Assertion.response_data + false + 16 + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/configuration + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "type": "android", + "configuration": [ + { + "name": "notifierType", + "value": "1", + "contentType": "text" + }, + { + "name": "notifierFrequency", + "value": "500000", + "contentType": "text" + }, + { + "name": "androidEula", + "value": "This End User License Agreement is Eula.", + "contentType": "text" + } + ] + } + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/v1.0/configuration + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/configuration + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "conditions": [ + { + "key": "deviceIdentifier", + "value": "d24f870f390352a4${DeviceID}", + "operator": "=", + "state": "AND" + } + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/search-devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID} + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/applications + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/effective-policy + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/device-type/android/features + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + false + admin + = + true + owner + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/operations + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/compliance-data + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/user-devices + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/activities + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + false + activityId + "activityId":"(.+?)" + $1$ + 1 + 1 + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/activities/${activityId} + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/admin/devices + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/device-types + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/configuration + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "type": "android", + "configuration": [ + { + "name": "SampleConfiguration", + "contentType": "text", + "value": "This is a sample Configuration" + } + ] +} + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/configuration + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/configuration/license + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "id":1000${DeviceID}, + "name":"androiddevice1000${DeviceID}", + "type":"android", + "description":"this is an android device", + "deviceIdentifier":"d24f870f390352a41000${DeviceID}", + "enrolmentInfo":{ + "id":1000${DeviceID}, + "device":{ + + }, + "dateOfEnrolment":0, + "dateOfLastUpdate":0, + "ownership":"BYOD", + "status":"CREATED", + "owner":"admin" + }, + "features":[ + { + "id":10, + "code":"aaaa1111", + "name":"newfeature1", + "description":"this is the new feature 1", + "deviceType":"android", + "metadataEntries":[ + { + "id":10, + "value":{ + + } + } + ] + } + ], + "properties":[ + { + "name":"property1", + "value":"value1" + } + ], + "deviceInfo":{ + "deviceModel":"S6", + "vendor":"SAMSUNG", + "osVersion":"5.1", + "batteryLevel":1, + "internalTotalMemory":32, + "internalAvailableMemory":24, + "externalTotalMemory":64, + "externalAvailableMemory":60, + "operator":"dialog", + "connectionType":"GSM", + "mobileSignalStrength":1, + "ssid":"picassowifi", + "cpuUsage":0, + "totalRAMMemory":2, + "availableRAMMemory":1, + "pluggedIn":false, + "location":{ + "deviceId":0, + "deviceIdentifier":{ + "id":"string", + "type":"string" + }, + "latitude":0, + "longitude":0, + "street1":"string", + "street2":"string", + "city":"string", + "state":"string", + "zip":"string", + "country":"string" + }, + "deviceDetailsMap":{ + + }, + "imei":"string", + "imsi":"string" + }, + "applications":[ + { + "id":0, + "platform":"string", + "category":"string", + "name":"string", + "locationUrl":"string", + "imageUrl":"string", + "version":"string", + "type":"string", + "appProperties":{ + + }, + "applicationIdentifier":"string", + "memoryUsage":0 + } + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "id":1000${DeviceID}, + "name":"androiddevice1000${DeviceID}", + "type":"android", + "description":"this is an android device", + "deviceIdentifier":"d24f870f390352a41000${DeviceID}", + "enrolmentInfo":{ + "id":1000${DeviceID}, + "device":{ + + }, + "dateOfEnrolment":0, + "dateOfLastUpdate":0, + "ownership":"BYOD", + "status":"CREATED", + "owner":"admin" + }, + "features":[ + { + "id":10, + "code":"aaaa1111", + "name":"newfeature2", + "description":"this is the new feature 2", + "deviceType":"android", + "metadataEntries":[ + { + "id":10, + "value":{ + + } + } + ] + } + ], + "properties":[ + { + "name":"property1", + "value":"value1" + } + ], + "deviceInfo":{ + "deviceModel":"S6", + "vendor":"SAMSUNG", + "osVersion":"5.1", + "batteryLevel":1, + "internalTotalMemory":32, + "internalAvailableMemory":24, + "externalTotalMemory":64, + "externalAvailableMemory":60, + "operator":"dialog", + "connectionType":"GSM", + "mobileSignalStrength":1, + "ssid":"picassowifi", + "cpuUsage":0, + "totalRAMMemory":2, + "availableRAMMemory":1, + "pluggedIn":false, + "location":{ + "deviceId":0, + "deviceIdentifier":{ + "id":"string", + "type":"string" + }, + "latitude":0, + "longitude":0, + "street1":"string", + "street2":"string", + "city":"string", + "state":"string", + "zip":"string", + "country":"string" + }, + "deviceDetailsMap":{ + + }, + "imei":"string", + "imsi":"string" + }, + "applications":[ + { + "id":0, + "platform":"string", + "category":"string", + "name":"string", + "locationUrl":"string", + "imageUrl":"string", + "version":"string", + "type":"string", + "appProperties":{ + + }, + "applicationIdentifier":"string", + "memoryUsage":0 + } + ] +} + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID} + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [ + { + "id": 10, + "platform": "android", + "category": "Business", + "name": "Graphical", + "locationUrl": "string", + "imageUrl": "string", + "version": "1.0.0", + "type": "string", + "appProperties": {}, + "applicationIdentifier": "string", + "memoryUsage": 0 + } +] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID}/applications + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID}/status + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + Status of android device that carries the id \u0027d24f870f390352a41000${DeviceID}\u0027 is CREATED + + Assertion.response_data + false + 16 + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/applications + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"APPLICATION_LIST","type":"COMMAND","id":1,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:01:57.915","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "appIdentifier": [ + "ANGRYBIRD" + ] + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/blacklist-applications + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "operation": { + "lockCode": "0000" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/change-lock-code + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"CHANGE_LOCK_CODE","type":"PROFILE","id":2,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:14:19.718","isEnabled":true,"payLoad":"{\"lockCode\":\"0000\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/clear-password + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"CLEAR_PASSWORD","type":"COMMAND","id":3,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:18:40.233","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "serverAddress": "231.168.10.1", + "serverPort": "1701", + "sharedSecret": "YWRtaW4=", + "dnsServer": "8.8.8.8" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/configure-vpn + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "operation": { + "ssid": "string", + "password": "string" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/configure-wifi + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"WIFI","type":"PROFILE","id":4,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:24:20.315","isEnabled":true,"payLoad":"{\"ssid\":\"string\",\"password\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "enabled": false + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/control-camera + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"CAMERA","type":"COMMAND","id":5,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:28:02.864","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "encrypted": false + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/encrypt-storage + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"ENCRYPT_STORAGE","type":"COMMAND","id":6,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:31:15.288","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/enterprise-wipe + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"ENTERPRISE_WIPE","type":"COMMAND","id":7,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:42:12.406","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "appIdentifier": "string", + "type": "enterprise", + "url": "https://www.youtube.com", + "name": "youtube" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/install-application + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"INSTALL_APPLICATION","type":"PROFILE","id":8,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:55:15.452","isEnabled":true,"payLoad":"{\"appIdentifier\":\"string\",\"type\":\"string\",\"url\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/location + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"DEVICE_LOCATION","type":"COMMAND","id":9,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:59:05.927","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "message": "string", + "hardLockEnabled": false + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/lock-devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"DEVICE_LOCK","type":"PROFILE","id":10,"status":"COMPLETED","createdTimeStamp":"2016-08-03 13:53:28.008","isEnabled":true,"payLoad":"{\"message\":\"string\",\"isHardLockEnabled\":false}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/mute + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":true,"code":"DEVICE_MUTE","type":"COMMAND","id":11,"status":"COMPLETED","createdTimeStamp":"2016-08-03 13:56:54.703","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/reboot + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"REBOOT","type":"COMMAND","id":12,"status":"COMPLETED","createdTimeStamp":"2016-08-03 13:59:03.554","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/ring + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"DEVICE_RING","type":"COMMAND","id":13,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:00:54.603","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "messageText": "string", + "messageTitle": "string" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/send-notification + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"NOTIFICATION","type":"PROFILE","id":14,"status":"IN_PROGRESS","createdTimeStamp":"2016-08-03 14:02:55.003","isEnabled":true,"payLoad":"{\"messageText\":\"string\",\"messageTitle\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + [{"code":"NOTIFICATION","type":"PROFILE","id":14,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:02:55.003","isEnabled":true,"payLoad":"{\"messageText\":\"string\",\"messageTitle\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "maxFailedAttempts": 0, + "minLength": 0, + "pinHistory": 0, + "minComplexChars": 0, + "maxPINAgeInDays": 0, + "requireAlphanumeric": false, + "allowSimple": false + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/set-password-policy + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"PASSCODE_POLICY","type":"PROFILE","id":15,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:07:01.2","isEnabled":true,"payLoad":"{\"maxFailedAttempts\":0,\"minLength\":0,\"pinHistory\":0,\"minComplexChars\":0,\"maxPINAgeInDays\":0,\"requireAlphanumeric\":false,\"allowSimple\":false}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "identity": "string", + "title": "string", + "type": "string" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/set-webclip + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"WEBCLIP","type":"PROFILE","id":16,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:26:04.822","isEnabled":true,"payLoad":"{\"identity\":\"string\",\"title\":\"string\",\"type\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "appIdentifier": "string", + "type": "enterprise", + "url": "string", + "name": "string" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/uninstall-application + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"UNINSTALL_APPLICATION","type":"PROFILE","id":17,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:28:26.049","isEnabled":true,"payLoad":"{\"appIdentifier\":\"string\",\"type\":\"string\",\"url\":\"string\",\"name\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/unlock-devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":true,"code":"DEVICE_UNLOCK","type":"COMMAND","id":18,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:35:07.994","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "appIdentifier": "string", + "type": "enterprise", + "url": "https://www.youtube.com", + "name": "youtube", + "schedule": "" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/update-application + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"UPDATE_APPLICATION","type":"PROFILE","id":19,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:39:32.714","isEnabled":true,"payLoad":"{\"appIdentifier\":\"string\",\"type\":\"string\",\"url\":\"string\",\"schedule\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "schedule": "", + "server": "string" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/upgrade-firmware + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"UPGRADE_FIRMWARE","type":"PROFILE","id":20,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:43:25.406","isEnabled":true,"payLoad":"{\"schedule\":\"string\",\"server\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "pin": "string" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/wipe + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/applications + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"APPLICATION_LIST","type":"COMMAND","id":22,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:55:18.118","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/activities + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/info + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"DEVICE_INFO","type":"COMMAND","id":23,"status":"COMPLETED","createdTimeStamp":"2016-08-03 15:30:16.779","isEnabled":false, "operationResponse" : '{ "id": 101234, "name": "androiddevice1234","type": "android", "description": "this is an android device","deviceIdentifier": "d24f870f390352a4${DeviceID}","enrolmentInfo": {"id": 101234,"device": {},"dateOfEnrolment": 0,"dateOfLastUpdate": 0,"ownership": "BYOD","status": "CREATED","owner": "admin"},"features": [{"id": 10,"code": "aaaa1111","name": "newfeature1","description": "this is the new feature 1","deviceType": "android","metadataEntries": [{"id": 10,"value": {}}]}],"properties": [{"name": "DEVICE_MODEL","value": "S6"},{"name" : "VENDOR","value" : "SAMSUNG"}],"applications": [ {"id": 0,"platform": "string","category": "string","name": "string","locationUrl": "string","imageUrl": "string","version": "string","type": "string","appProperties": {},"applicationIdentifier": "string","memoryUsage": 0}]}'}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + [{"code":"WIPE_DATA","type":"PROFILE","id":21,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:45:49.198","isEnabled":true,"payLoad":"{\"pin\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + 1000 + + + + false + true + false + + + + + tenant_user_name,domain_name,password + false + import org.apache.commons.codec.binary.Base64; + +String tenant_user= vars.get("tenant_user_name") + "@" + vars.get("domain_name"); +String password= vars.get("password"); +String toEncode = tenant_user + ":" + password; + +byte[] encryptedId = Base64.encodeBase64(toEncode.getBytes()); +vars.put("encodedUserPassword","Basic " + new String(encryptedId)); + + + + true + + + + false + { + "applicationName":"test_005", + "username":"admin@wso2.com", + "grantTypes":"client_credentials password refresh_token", + "callBackUrl":"www.example.com", + "isSaasApp":true, + "tags": ["device_management", "application_management", "subscription_management", "review_management"] +} + = + + + + ${host} + 9443 + + + https + + /api-key-management/dynamic-client-registration + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + ${encodedUserPassword} + + + Host + localhost:9763 + + + Content-Type + application/json + + + + + + false + clientId + "client_id":"(.+?)" + $1$ + 0 + 1 + + + + false + clientSecret + "client_secret":"(.+?)" + $1$ + 0 + 1 + + + + + + clientId,clientSecret + false + import org.apache.commons.codec.binary.Base64; + +String clientId= vars.get("clientId"); +String clientSecret = vars.get("clientSecret"); +String toEncode = clientId + ":" + clientSecret; + +byte[] encryptedId = Base64.encodeBase64(toEncode.getBytes()); +vars.put("base64encodedId",new String(encryptedId)); + + + + + + + false + ${tenant_user_name}@${domain_name} + = + true + username + + + false + ${password} + = + true + password + + + false + password + = + true + grant_type + + + false + perm:android:enroll perm:android:wipe perm:android:ring perm:android:lock-devices perm:android:configure-vpn perm:android:configure-wifi perm:android:enroll perm:android:uninstall-application perm:android:manage-configuration perm:android:location perm:android:install-application perm:android:mute perm:android:change-lock-code perm:android:blacklist-applications perm:android:set-password-policy perm:android:encrypt-storage perm:android:clear-password perm:android:enterprise-wipe perm:android:info perm:android:view-configuration perm:android:upgrade-firmware perm:android:set-webclip perm:android:send-notification perm:android:disenroll perm:android:update-application perm:android:unlock-devices perm:android:control-camera perm:android:reboot perm:android:logcat appm:subscribe perm:sign-csr perm:admin:devices:view perm:roles:add perm:roles:add-users perm:roles:update perm:roles:permissions perm:roles:details perm:roles:view perm:roles:create-combined-role perm:roles:delete perm:dashboard:vulnerabilities perm:dashboard:non-compliant-count perm:dashboard:non-compliant perm:dashboard:by-groups perm:dashboard:device-counts perm:dashboard:feature-non-compliant perm:dashboard:count-overview perm:dashboard:filtered-count perm:dashboard:details perm:get-activity perm:devices:delete perm:devices:applications perm:devices:effective-policy perm:devices:compliance-data perm:devices:features perm:devices:operations perm:devices:search perm:devices:details perm:devices:update perm:devices:view perm:view-configuration perm:manage-configuration perm:policies:remove perm:policies:priorities perm:policies:deactivate perm:policies:get-policy-details perm:policies:manage perm:policies:activate perm:policies:update perm:policies:changes perm:policies:get-details perm:users:add perm:users:details perm:users:count perm:users:delete perm:users:roles perm:users:user-details perm:users:credentials perm:users:search perm:users:is-exist perm:users:update perm:users:send-invitation perm:admin-users:view perm:groups:devices perm:groups:update perm:groups:add perm:groups:device perm:groups:devices-count perm:groups:remove perm:groups:groups perm:groups:groups-view perm:groups:share perm:groups:count perm:groups:roles perm:groups:devices-remove perm:groups:devices-add perm:groups:assign perm:device-types:features perm:device-types:types perm:applications:install perm:applications:uninstall perm:admin-groups:count perm:admin-groups:view perm:notifications:mark-checked perm:notifications:view perm:admin:certificates:delete perm:admin:certificates:details perm:admin:certificates:view perm:admin:certificates:add perm:admin:certificates:verify perm:ios:enroll perm:ios:view-device perm:ios:apn perm:ios:ldap perm:ios:enterprise-app perm:ios:store-application perm:ios:remove-application perm:ios:app-list perm:ios:profile-list perm:ios:lock perm:ios:enterprise-wipe perm:ios:device-info perm:ios:restriction perm:ios:email perm:ios:cellular perm:ios:applications perm:ios:wifi perm:ios:ring perm:ios:location perm:ios:notification perm:ios:airplay perm:ios:caldav perm:ios:cal-subscription perm:ios:passcode-policy perm:ios:webclip perm:ios:vpn perm:ios:per-app-vpn perm:ios:app-to-per-app-vpn perm:ios:app-lock perm:ios:clear-passcode perm:ios:remove-profile perm:ios:get-restrictions perm:ios:wipe-data perm:admin perm:android:applications + = + true + scope + + + false + + = + true + + + + + ${host} + ${https_port} + + + https + + /token + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Basic ${base64encodedId} + + + Content-Type + application/x-www-form-urlencoded + + + + + + false + access_token + "access_token":"(.+?)" + $1$ + no_token + 1 + + + + + false + true + false + + + + true + + + + false + { + "id":10${DeviceID}, + "name":"androiddevice${DeviceID}", + "type":"android", + "description":"this is an android device", + "deviceIdentifier":"d24f870f390352a4${DeviceID}", + "enrolmentInfo":{ + "id":10${DeviceID}, + "device":{ + + }, + "dateOfEnrolment":0, + "dateOfLastUpdate":0, + "ownership":"BYOD", + "status":"CREATED", + "owner":"admin" + }, + "features":[ + { + "id":10, + "code":"aaaa1111", + "name":"newfeature1", + "description":"this is the new feature 1", + "deviceType":"android", + "metadataEntries":[ + { + "id":10, + "value":{ + + } + } + ] + } + ], + "properties":[ + { + "name":"property1", + "value":"value1" + } + ], + "deviceInfo":{ + "deviceModel":"S6", + "vendor":"SAMSUNG", + "osVersion":"5.1", + "batteryLevel":1, + "internalTotalMemory":32, + "internalAvailableMemory":24, + "externalTotalMemory":64, + "externalAvailableMemory":60, + "operator":"dialog", + "connectionType":"GSM", + "mobileSignalStrength":1, + "ssid":"picassowifi", + "cpuUsage":0, + "totalRAMMemory":2, + "availableRAMMemory":1, + "pluggedIn":false, + "location":{ + "deviceId":0, + "deviceIdentifier":{ + "id":"string", + "type":"string" + }, + "latitude":0, + "longitude":0, + "street1":"string", + "street2":"string", + "city":"string", + "state":"string", + "zip":"string", + "country":"string" + }, + "deviceDetailsMap":{ + + }, + "imei":"string", + "imsi":"string" + }, + "applications":[ + { + "id":0, + "platform":"string", + "category":"string", + "name":"string", + "locationUrl":"string", + "imageUrl":"string", + "version":"string", + "type":"string", + "appProperties":{ + + }, + "applicationIdentifier":"string", + "memoryUsage":0 + } + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices + POST + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + false + 0 + = + true + offset + + + false + 1 + = + true + limit + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + [ + { + "serial": "qwe12-23fdf-2s332-53fv3-sfs33", + "pem": " +MIIEXjCCA0agAwIBAgIJAPocSteC87XUMA0GCSqGSIb3DQEBBQUAMHwxCzAJBgNV +BAYTAlNMMRAwDgYDVQQIEwdDb2xvbWJvMRAwDgYDVQQHEwdDb2xvbWJvMRIwEAYD +VQQKEwlXU08yIEluYy4xHzAdBgkqhkiG9w0BCQEWEHRlY2hvcHNAd3NvMi5jb20x +FDASBgNVBAMTC1dTTzIgUmFkaXVzMB4XDTEzMDYyNzAzMzA0NFoXDTIzMDYyNTAz +MzA0NFowfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgTB0NvbG9tYm8xEDAOBgNVBAcT +B0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEfMB0GCSqGSIb3DQEJARYQdGVj +aG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBSYWRpdXMwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQDNmhw12cF0H2UGE/XtWVt238oGxn19+n/HkM2B +cDNQgnStqI+g/K2HBtjmvVPBh17Mt+dU2BIathn06amza+LI+hHgeLUSv30jutv4 +L5zD2laAU9A/I0Wtrxu5FlsevRPSiY7buLjTbjP7IMn9vdwb+9nBQCGxVpO6AK2A +gsFJ5udnp7L+jNsHmHFt36AYZouihgD+/RGVLBAhtPoU6XFB1JoGFM+4qxklJLPh +k86WollG4cFvHXSbO1P95n6Jb/V3hfM0PvwFZswRPVnW8ngqm889C/JEk5rK4FHy +xk9MgeFRW6zA+3rVnyPdhy6/q4EerBLMfBEWpzFHyHDKMGanAgMBAAGjgeIwgd8w +HQYDVR0OBBYEFKRxtF0CWPwL7jRvA4NSIzploUgrMIGvBgNVHSMEgacwgaSAFKRx +tF0CWPwL7jRvA4NSIzploUgroYGApH4wfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgT +B0NvbG9tYm8xEDAOBgNVBAcTB0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEf +MB0GCSqGSIb3DQEJARYQdGVjaG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBS +YWRpdXOCCQD6HErXgvO11DAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IB +AQCDQV9wy8rfuFp4uByqYhnrQjzBN75VbNcgpdYocOxQPLnjWRM5qdJHELrt4FEl +rDMGd1BpP7QMAEYJUIcpDHPbs9HVCeEV6hdOrLgGxNDB0YVa2Fr5k2U8gsNIgKZo +fKxscx0w5OM71IQbuppAgIHK29DBVBVppO+zduIbVtSoBo/gcVIqVGXQXf8TFtoV +xyfGUTYdBDP4fT4p8uLASXmdaFyegQOhkjSuchVPGSJOZD6TvOjE6ZvBu9eC7sqh +oTPY56Ld0GscWJmAuj+8vmWGu0md8MnM2DE0SIYE3bo/sPp3yEIbCAnHmcveG8hn +GEL4ZNjZ+jnwSkzwBU5vh/QS", + "tenantId": 0 + } +] + = + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + POST + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + false + 0 + = + true + offset + + + false + 1 + = + true + limit + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates/qwe12-23fdf-2s332-53fv3-sfs33 + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "serial": "qwe12-23fdf-2s332-53fv3-sfs33", + "pem": " +MIIEXjCCA0agAwIBAgIJAPocSteC87XUMA0GCSqGSIb3DQEBBQUAMHwxCzAJBgNV +BAYTAlNMMRAwDgYDVQQIEwdDb2xvbWJvMRAwDgYDVQQHEwdDb2xvbWJvMRIwEAYD +VQQKEwlXU08yIEluYy4xHzAdBgkqhkiG9w0BCQEWEHRlY2hvcHNAd3NvMi5jb20x +FDASBgNVBAMTC1dTTzIgUmFkaXVzMB4XDTEzMDYyNzAzMzA0NFoXDTIzMDYyNTAz +MzA0NFowfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgTB0NvbG9tYm8xEDAOBgNVBAcT +B0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEfMB0GCSqGSIb3DQEJARYQdGVj +aG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBSYWRpdXMwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQDNmhw12cF0H2UGE/XtWVt238oGxn19+n/HkM2B +cDNQgnStqI+g/K2HBtjmvVPBh17Mt+dU2BIathn06amza+LI+hHgeLUSv30jutv4 +L5zD2laAU9A/I0Wtrxu5FlsevRPSiY7buLjTbjP7IMn9vdwb+9nBQCGxVpO6AK2A +gsFJ5udnp7L+jNsHmHFt36AYZouihgD+/RGVLBAhtPoU6XFB1JoGFM+4qxklJLPh +k86WollG4cFvHXSbO1P95n6Jb/V3hfM0PvwFZswRPVnW8ngqm889C/JEk5rK4FHy +xk9MgeFRW6zA+3rVnyPdhy6/q4EerBLMfBEWpzFHyHDKMGanAgMBAAGjgeIwgd8w +HQYDVR0OBBYEFKRxtF0CWPwL7jRvA4NSIzploUgrMIGvBgNVHSMEgacwgaSAFKRx +tF0CWPwL7jRvA4NSIzploUgroYGApH4wfDELMAkGA1UEBhMCU0wxEDAOBgNVBAgT +B0NvbG9tYm8xEDAOBgNVBAcTB0NvbG9tYm8xEjAQBgNVBAoTCVdTTzIgSW5jLjEf +MB0GCSqGSIb3DQEJARYQdGVjaG9wc0B3c28yLmNvbTEUMBIGA1UEAxMLV1NPMiBS +YWRpdXOCCQD6HErXgvO11DAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IB +AQCDQV9wy8rfuFp4uByqYhnrQjzBN75VbNcgpdYocOxQPLnjWRM5qdJHELrt4FEl +rDMGd1BpP7QMAEYJUIcpDHPbs9HVCeEV6hdOrLgGxNDB0YVa2Fr5k2U8gsNIgKZo +fKxscx0w5OM71IQbuppAgIHK29DBVBVppO+zduIbVtSoBo/gcVIqVGXQXf8TFtoV +xyfGUTYdBDP4fT4p8uLASXmdaFyegQOhkjSuchVPGSJOZD6TvOjE6ZvBu9eC7sqh +oTPY56Ld0GscWJmAuj+8vmWGu0md8MnM2DE0SIYE3bo/sPp3yEIbCAnHmcveG8hn +GEL4ZNjZ+jnwSkzwBU5vh/QS", + "tenantId": 0 + } + = + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates/verify/android + POST + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + invalid + + Assertion.response_data + false + 16 + + + + + + + + false + qwe12-23fdf-2s332-53fv3-sfs33 + = + true + serialNumber + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + DELETE + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/certificate-mgt/v1.0/admin/certificates + GET + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/configuration + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "type": "android", + "configuration": [ + { + "name": "notifierType", + "value": "1", + "contentType": "text" + }, + { + "name": "notifierFrequency", + "value": "500000", + "contentType": "text" + }, + { + "name": "androidEula", + "value": "This End User License Agreement is Eula.", + "contentType": "text" + } + ] + } + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/v1.0/configuration + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/configuration + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "conditions": [ + { + "key": "deviceIdentifier", + "value": "d24f870f390352a4${DeviceID}", + "operator": "=", + "state": "AND" + } + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/search-devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID} + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/applications + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/effective-policy + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/device-type/android/features + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + false + admin + = + true + owner + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/operations + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/android/d24f870f390352a4${DeviceID}/compliance-data + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/devices/user-devices + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/activities + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + false + activityId + "activityId":"(.+?)" + $1$ + 1 + 1 + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/activities/${activityId} + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/admin/devices + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + 401 + + Assertion.response_code + true + 8 + + + + + "Current logged in user is not authorized to perform this operation" + + Assertion.response_data + true + 16 + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/device-types + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/configuration + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "type": "android", + "configuration": [ + { + "name": "SampleConfiguration", + "contentType": "text", + "value": "This is a sample Configuration" + } + ] +} + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/configuration + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/configuration/license + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "id":1000${DeviceID}, + "name":"androiddevice1000${DeviceID}", + "type":"android", + "description":"this is an android device", + "deviceIdentifier":"d24f870f390352a41000${DeviceID}", + "enrolmentInfo":{ + "id":1000${DeviceID}, + "device":{ + + }, + "dateOfEnrolment":0, + "dateOfLastUpdate":0, + "ownership":"BYOD", + "status":"CREATED", + "owner":"admin" + }, + "features":[ + { + "id":10, + "code":"aaaa1111", + "name":"newfeature1", + "description":"this is the new feature 1", + "deviceType":"android", + "metadataEntries":[ + { + "id":10, + "value":{ + + } + } + ] + } + ], + "properties":[ + { + "name":"property1", + "value":"value1" + } + ], + "deviceInfo":{ + "deviceModel":"S6", + "vendor":"SAMSUNG", + "osVersion":"5.1", + "batteryLevel":1, + "internalTotalMemory":32, + "internalAvailableMemory":24, + "externalTotalMemory":64, + "externalAvailableMemory":60, + "operator":"dialog", + "connectionType":"GSM", + "mobileSignalStrength":1, + "ssid":"picassowifi", + "cpuUsage":0, + "totalRAMMemory":2, + "availableRAMMemory":1, + "pluggedIn":false, + "location":{ + "deviceId":0, + "deviceIdentifier":{ + "id":"string", + "type":"string" + }, + "latitude":0, + "longitude":0, + "street1":"string", + "street2":"string", + "city":"string", + "state":"string", + "zip":"string", + "country":"string" + }, + "deviceDetailsMap":{ + + }, + "imei":"string", + "imsi":"string" + }, + "applications":[ + { + "id":0, + "platform":"string", + "category":"string", + "name":"string", + "locationUrl":"string", + "imageUrl":"string", + "version":"string", + "type":"string", + "appProperties":{ + + }, + "applicationIdentifier":"string", + "memoryUsage":0 + } + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "id":1000${DeviceID}, + "name":"androiddevice1000${DeviceID}", + "type":"android", + "description":"this is an android device", + "deviceIdentifier":"d24f870f390352a41000${DeviceID}", + "enrolmentInfo":{ + "id":1000${DeviceID}, + "device":{ + + }, + "dateOfEnrolment":0, + "dateOfLastUpdate":0, + "ownership":"BYOD", + "status":"CREATED", + "owner":"admin" + }, + "features":[ + { + "id":10, + "code":"aaaa1111", + "name":"newfeature2", + "description":"this is the new feature 2", + "deviceType":"android", + "metadataEntries":[ + { + "id":10, + "value":{ + + } + } + ] + } + ], + "properties":[ + { + "name":"property1", + "value":"value1" + } + ], + "deviceInfo":{ + "deviceModel":"S6", + "vendor":"SAMSUNG", + "osVersion":"5.1", + "batteryLevel":1, + "internalTotalMemory":32, + "internalAvailableMemory":24, + "externalTotalMemory":64, + "externalAvailableMemory":60, + "operator":"dialog", + "connectionType":"GSM", + "mobileSignalStrength":1, + "ssid":"picassowifi", + "cpuUsage":0, + "totalRAMMemory":2, + "availableRAMMemory":1, + "pluggedIn":false, + "location":{ + "deviceId":0, + "deviceIdentifier":{ + "id":"string", + "type":"string" + }, + "latitude":0, + "longitude":0, + "street1":"string", + "street2":"string", + "city":"string", + "state":"string", + "zip":"string", + "country":"string" + }, + "deviceDetailsMap":{ + + }, + "imei":"string", + "imsi":"string" + }, + "applications":[ + { + "id":0, + "platform":"string", + "category":"string", + "name":"string", + "locationUrl":"string", + "imageUrl":"string", + "version":"string", + "type":"string", + "appProperties":{ + + }, + "applicationIdentifier":"string", + "memoryUsage":0 + } + ] +} + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID} + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [ + { + "id": 10, + "platform": "android", + "category": "Business", + "name": "Graphical", + "locationUrl": "string", + "imageUrl": "string", + "version": "1.0.0", + "type": "string", + "appProperties": {}, + "applicationIdentifier": "string", + "memoryUsage": 0 + } +] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID}/applications + PUT + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID}/status + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/applications + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"APPLICATION_LIST","type":"COMMAND","id":1,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:01:57.915","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "appIdentifier": [ + "ANGRYBIRD" + ] + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/blacklist-applications + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "operation": { + "lockCode": "0000" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/change-lock-code + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"CHANGE_LOCK_CODE","type":"PROFILE","id":2,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:14:19.718","isEnabled":true,"payLoad":"{\"lockCode\":\"0000\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/clear-password + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"CLEAR_PASSWORD","type":"COMMAND","id":3,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:18:40.233","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "serverAddress": "231.168.10.1", + "serverPort": "1701", + "sharedSecret": "YWRtaW4=", + "dnsServer": "8.8.8.8" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/configure-vpn + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + { + "operation": { + "ssid": "string", + "password": "string" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/configure-wifi + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"WIFI","type":"PROFILE","id":4,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:24:20.315","isEnabled":true,"payLoad":"{\"ssid\":\"string\",\"password\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "enabled": false + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/control-camera + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"CAMERA","type":"COMMAND","id":5,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:28:02.864","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "encrypted": false + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/encrypt-storage + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"ENCRYPT_STORAGE","type":"COMMAND","id":6,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:31:15.288","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/enterprise-wipe + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"ENTERPRISE_WIPE","type":"COMMAND","id":7,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:42:12.406","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "appIdentifier": "string", + "type": "enterprise", + "url": "https://www.youtube.com", + "name": "youtube" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/install-application + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"INSTALL_APPLICATION","type":"PROFILE","id":8,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:55:15.452","isEnabled":true,"payLoad":"{\"appIdentifier\":\"string\",\"type\":\"string\",\"url\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/location + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"DEVICE_LOCATION","type":"COMMAND","id":9,"status":"COMPLETED","createdTimeStamp":"2016-08-03 12:59:05.927","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "message": "string", + "hardLockEnabled": false + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/lock-devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"DEVICE_LOCK","type":"PROFILE","id":10,"status":"COMPLETED","createdTimeStamp":"2016-08-03 13:53:28.008","isEnabled":true,"payLoad":"{\"message\":\"string\",\"isHardLockEnabled\":false}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/mute + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":true,"code":"DEVICE_MUTE","type":"COMMAND","id":11,"status":"COMPLETED","createdTimeStamp":"2016-08-03 13:56:54.703","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/reboot + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"REBOOT","type":"COMMAND","id":12,"status":"COMPLETED","createdTimeStamp":"2016-08-03 13:59:03.554","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/ring + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"DEVICE_RING","type":"COMMAND","id":13,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:00:54.603","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "messageText": "string", + "messageTitle": "string" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/send-notification + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"NOTIFICATION","type":"PROFILE","id":14,"status":"IN_PROGRESS","createdTimeStamp":"2016-08-03 14:02:55.003","isEnabled":true,"payLoad":"{\"messageText\":\"string\",\"messageTitle\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + [{"code":"NOTIFICATION","type":"PROFILE","id":14,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:02:55.003","isEnabled":true,"payLoad":"{\"messageText\":\"string\",\"messageTitle\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "maxFailedAttempts": 0, + "minLength": 0, + "pinHistory": 0, + "minComplexChars": 0, + "maxPINAgeInDays": 0, + "requireAlphanumeric": false, + "allowSimple": false + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/set-password-policy + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"PASSCODE_POLICY","type":"PROFILE","id":15,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:07:01.2","isEnabled":true,"payLoad":"{\"maxFailedAttempts\":0,\"minLength\":0,\"pinHistory\":0,\"minComplexChars\":0,\"maxPINAgeInDays\":0,\"requireAlphanumeric\":false,\"allowSimple\":false}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "identity": "string", + "title": "string", + "type": "string" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/set-webclip + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"WEBCLIP","type":"PROFILE","id":16,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:26:04.822","isEnabled":true,"payLoad":"{\"identity\":\"string\",\"title\":\"string\",\"type\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "appIdentifier": "string", + "type": "enterprise", + "url": "string", + "name": "string" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/uninstall-application + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"UNINSTALL_APPLICATION","type":"PROFILE","id":17,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:28:26.049","isEnabled":true,"payLoad":"{\"appIdentifier\":\"string\",\"type\":\"string\",\"url\":\"string\",\"name\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/unlock-devices + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":true,"code":"DEVICE_UNLOCK","type":"COMMAND","id":18,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:35:07.994","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "appIdentifier": "string", + "type": "enterprise", + "url": "https://www.youtube.com", + "name": "youtube", + "schedule": "" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/update-application + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"UPDATE_APPLICATION","type":"PROFILE","id":19,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:39:32.714","isEnabled":true,"payLoad":"{\"appIdentifier\":\"string\",\"type\":\"string\",\"url\":\"string\",\"schedule\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ], + "operation": { + "schedule": "", + "server": "string" + } +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/upgrade-firmware + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"code":"UPGRADE_FIRMWARE","type":"PROFILE","id":20,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:43:25.406","isEnabled":true,"payLoad":"{\"schedule\":\"string\",\"server\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + { + "operation": { + "pin": "string" + }, + "deviceIDs": [ + "d24f870f390352a4${DeviceID}" + ] +} + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/wipe + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/applications + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"APPLICATION_LIST","type":"COMMAND","id":22,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:55:18.118","isEnabled":false}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/v1.0/activities + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + ["d24f870f390352a4${DeviceID}"] + = + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/admin/devices/info + POST + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + true + + + + false + [{"enabled":false,"code":"DEVICE_INFO","type":"COMMAND","id":23,"status":"COMPLETED","createdTimeStamp":"2016-08-03 15:30:16.779","isEnabled":false, "operationResponse" : '{ "id": 101234, "name": "androiddevice1234","type": "android", "description": "this is an android device","deviceIdentifier": "d24f870f390352a4${DeviceID}","enrolmentInfo": {"id": 101234,"device": {},"dateOfEnrolment": 0,"dateOfLastUpdate": 0,"ownership": "BYOD","status": "CREATED","owner": "admin"},"features": [{"id": 10,"code": "aaaa1111","name": "newfeature1","description": "this is the new feature 1","deviceType": "android","metadataEntries": [{"id": 10,"value": {}}]}],"properties": [{"name": "DEVICE_MODEL","value": "S6"},{"name" : "VENDOR","value" : "SAMSUNG"}],"applications": [ {"id": 0,"platform": "string","category": "string","name": "string","locationUrl": "string","imageUrl": "string","version": "string","type": "string","appProperties": {},"applicationIdentifier": "string","memoryUsage": 0}]}'}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + true + + + + false + [{"code":"WIPE_DATA","type":"PROFILE","id":21,"status":"COMPLETED","createdTimeStamp":"2016-08-03 14:45:49.198","isEnabled":true,"payLoad":"{\"pin\":\"string\"}"}] + = + + + + ${host} + ${https_port} + + + https + UTF-8 + /api/device-mgt/android/v1.0/devices/d24f870f390352a4${DeviceID}/pending-operations + PUT + false + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID} + DELETE + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + Android device that carries id \u0027d24f870f390352a41000${DeviceID}\u0027 is successfully dis-enrolled + + Assertion.response_data + false + 16 + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices/d24f870f390352a41000${DeviceID}/status + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + Status of android device that carries the id \u0027d24f870f390352a41000${DeviceID}\u0027 is REMOVED + + Assertion.response_data + false + 16 + + + + + + + + ${host} + ${https_port} + + + https + + /api/device-mgt/android/v1.0/devices/d24f870f390352sssa4${DeviceID}/status + GET + true + false + true + false + HttpClient4 + false + + + + + + + Authorization + Bearer ${access_token} + + + Content-Type + application/json + + + Accept + application/json + + + + + + + No Android device is found upon the id \u0027d24f870f390352sssa4${DeviceID}\u0027 + + Assertion.response_data + true + 16 + + + + + 404 + + Assertion.response_code + false + 8 + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + Results + false + false + false + false + true + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + + diff --git a/integration-test/iot-community/src/test/resources/jmeter-scripts/DeviceMgtCoreTestPlan.jmx b/integration-test/iot-community/src/test/resources/jmeter-scripts/DeviceMgtCoreTestPlan.jmx deleted file mode 100644 index b6bdd88..0000000 --- a/integration-test/iot-community/src/test/resources/jmeter-scripts/DeviceMgtCoreTestPlan.jmx +++ /dev/null @@ -1,788 +0,0 @@ - - - - - - false - true - - - - ServerHost - localhost - = - - - GatewayHost - localhost - = - - - GatewayPort - 8243 - = - - - ServerPort - 9443 - = - - - user - admin - = - - - password - admin - = - - - - - - - - continue - - false - 1 - - 1 - 1 - 1644164770000 - 1644164770000 - false - 60 - 60 - true - - - - false - - - - true - - - - false - { - "applicationName": "admin", - "tags": ["device_management", "transport_management"] -} - = - - - - ${GatewayHost} - ${GatewayPort} - https - - /api-application-registration/register - POST - true - false - true - false - - - - - - - - - https://${GatewayHost}:${GatewayPort}/api-application-registration/register - admin - admin - - - - - false - - - - - - content-type - application/json - - - - - - false - ClientId - "client_id":"(.+?)"} - $1$ - - - expires_in - - - - false - ClientSecret - {"client_secret":"(.+?)" - $1$ - - - - - - - - - - - false - grant_type - password - = - true - application/x-www-form-urlencoded - - - false - default perm:app:review:view perm:app:review:update perm:app:publisher:view perm:app:publisher:update perm:app:store:view perm:app:subscription:install perm:app:subscription:uninstall perm:admin:app:review:update perm:admin:app:review:view perm:admin:app:publisher:update perm:admin:app:review:update perm:admin:app:subscription:view perm:device-types:types perm:enterprise:modify perm:enterprise:view perm:android-work:customer perm:android-work:admin perm:application-command:modify perm:sign-csr perm:admin:devices:view perm:admin:topics:view perm:roles:add perm:roles:add-users perm:roles:update perm:roles:permissions perm:roles:details perm:roles:view perm:roles:create-combined-role perm:roles:delete perm:dashboard:vulnerabilities perm:dashboard:non-compliant-count perm:dashboard:non-compliant perm:dashboard:by-groups perm:dashboard:device-counts perm:dashboard:feature-non-compliant perm:dashboard:count-overview perm:dashboard:filtered-count perm:dashboard:details perm:get-activity perm:devices:delete perm:devices:applications perm:devices:effective-policy perm:devices:compliance-data perm:devices:features perm:devices:operations perm:devices:search perm:devices:details perm:devices:update perm:devices:view perm:view-configuration perm:manage-configuration perm:policies:remove perm:policies:priorities perm:policies:deactivate perm:policies:get-policy-details perm:policies:manage perm:policies:activate perm:policies:update perm:policies:changes perm:policies:get-details perm:users:add perm:users:details perm:users:count perm:users:delete perm:users:roles perm:users:user-details perm:users:credentials perm:users:search perm:users:is-exist perm:users:update perm:users:send-invitation perm:admin-users:view perm:admin:devices:update-enrollment perm:groups:devices perm:groups:update perm:groups:add perm:groups:device perm:groups:devices-count perm:groups:remove perm:groups:groups perm:groups:groups-view perm:groups:share perm:groups:count perm:groups:roles perm:groups:devices-remove perm:groups:devices-add perm:groups:assign perm:device-types:configs perm:device-types:features perm:device-types:types perm:applications:install perm:applications:uninstall perm:admin-groups:count perm:admin-groups:view perm:admin-groups:add perm:notifications:mark-checked perm:notifications:view perm:admin:certificates:delete perm:admin:certificates:details perm:admin:certificates:view perm:admin:certificates:add perm:admin:certificates:verify perm:admin perm:devicetype:deployment perm:admin:device-type perm:admin:device-type:view perm:admin:device-type:configs perm:device:enroll perm:geo-service:analytics-view perm:geo-service:alerts-manage appm:read perm:devices:permanent-delete perm:android:manage-configuration perm:android:view-configuration perm:user:permission-view perm:ios:view-configuration perm:ios:manage-configuration perm:ios:dep-view perm:ios:dep-add perm:windows:view-configuration perm:windows:manage-configuration perm:android:lock-devices perm:android:unlock-devices perm:android:location perm:android:clear-password perm:android:control-camera perm:android:enterprise-wipe perm:android:wipe perm:android:ring perm:android:applications perm:android:reboot perm:android:change-LockTask perm:android:mute perm:android:configure-display-message perm:android:send-app-restrictions perm:android:file-transfer perm:android:set-webclip perm:android:set-password-policy perm:android:change-lock-code perm:android:upgrade-firmware perm:android:send-notification perm:geo-service:geo-fence perm:metadata:view perm:metadata:create perm:metadata:update perm:sms-handler:view-configuration perm:com-module:admin:configure perm:com-module:admin:enrol perm:com-module:admin:status-update perm:com-module:view perm:rmr:admin:add-schedule perm:rmr:admin:assign-meter perm:rmr:admin:attach-com perm:rmr:admin:billing-registers-retrieve perm:rmr:admin:status-retrieve perm:rmr:admin:delete-schedule perm:rmr:admin:detach-com perm:rmr:admin:detach-meter perm:rmr:admin:enrol perm:rmr:admin:load-profile-retrieve perm:rmr:admin:remote-disconnection perm:rmr:admin:replace-meter perm:rmr:admin:self-test perm:rmr:admin:time-sync perm:rmr:admin:update-meter-mode perm:rmr:admin:update-meter-state perm:rmr:admin:update-schedule perm:rmr:admin:view-meter-reading perm:rmr:admin:view-schedule perm:rmr:device:assign perm:rmr:device:enrol perm:rmr:device:install perm:rmr:device:unassign perm:rmr:device:validate perm:rmr:device:view perm:rmr:sms perm:sim:admin:enrol perm:sim:admin:permanent-delete perm:sim:admin:update perm:sim:view perm:power-meter-dlms:event-mgt perm:rmr:admin:upload-credentials perm:rmr:admin:remote-configure perm:rmr:view-configuration perm:rmr:manage-configuration perm:com-module:types-view perm:com-module:signal-view perm:com-module:admin:attach-sim perm:com-module:admin:detach-sim perm:rmr:device:report-event perm:meter-allocation:view perm:meter-allocation:create perm:meter-allocation:cancel perm:meter-allocation:first-review perm:meter-allocation:second-review perm:meter-allocation:assign perm:meter-allocation:dispatch perm:meter-allocation:receive perm:meter-request:admin:update perm:rmr:admin:update-customer-assign perm:rmr:device:view-install-data perm:rmr:self-test perm:rmr:user:branches perm:meter-return:view perm:meter-return:create perm:meter-return:assign-meters perm:meter-return:cancel perm:meter-return:assign perm:meter-return:dispatch perm:meter-return:receive perm:rmr:admin:branch-overview perm:rmr:admin:branch-assignment perm:rmr:admin:reachability-overview perm:rmr:admin:signal-reception perm:rmr:admin:customer-overview perm:rmr:admin:customer-locations perm:rmr:admin:system-dashboard perm:rmr:admin:meter-inventory perm:rmr:admin:meter-reachability-report perm:sim:types:view perm:rmr:device:types:view perm:com-allocation:view perm:com-allocation:create perm:com-allocation:cancel perm:com-allocation:first-review perm:com-allocation:second-review perm:com-allocation:reject perm:com-allocation:assign perm:com-allocation:dispatch perm:com-allocation:receive perm:com-allocation:add-device perm:com-return-request:view perm:com-return-request:create perm:com-return-request:cancel perm:com-return-request:assign perm:com-return-request:dispatch perm:com-return-request:receive perm:field-test-request:view perm:field-test-request:create perm:field-test-request:cancel perm:field-test-request:assign perm:field-test-request:dispatch perm:field-test-request:complete perm:load-profile-request:view perm:load-profile-request:create perm:load-profile-request:cancel perm:load-profile-request:execute perm:readout-request:view perm:readout-request:create perm:readout-request:cancel perm:readout-request:execute perm:disconnection-request:view perm:disconnection-request:create perm:disconnection-request:cancel perm:disconnection-request:execute perm:disconnection-request:first-review perm:disconnection-request:reject perm:disconnection-request:assign perm:reconnection-request:view perm:reconnection-request:create perm:reconnection-request:cancel perm:reconnection-request:execute perm:reconnection-request:first-review perm:reconnection-request:reject perm:reconnection-request:assign perm:rmr:admin:meter-user perm:rmr:admin:delete-credential perm:meter-return:create-without-devices perm:com-return-request:assign-com perm:com-return-request:create-without-devices perm:rmr:admin:remote-reconnection perm:rmr:admin:reports:view-daily perm:rmr:admin:reports:view-weekly perm:rmr:admin:reports:view-monthly perm:sim:communication:activate perm:sim:communication:deactivate perm:rmr:admin:meter-operations-view perm:rmr:admin:billing-registers-retrieve-individual perm:rmr:admin:self-test-individual perm:rmr:admin:load-profile-retrieve-individual perm:rmr:admin:test-history perm:rmr:admin:reachability-overview-include-branch perm:rmr:admin:meter-reachability-report-include-branch perm:meter-allocation:branch-cancel perm:com-allocation:branch-cancel perm:rmr:admin:assign-branch perm:rmr:admin:detach-branch perm:com-module:admin:assign-branch perm:com-module:admin:detach-branch perm:rmr:admin:replace-com perm:rmr:admin:replace-sim perm:rmr:admin:device:view - = - true - scope - application/x-www-form-urlencoded - - - false - admin - = - true - username - application/x-www-form-urlencoded - - - false - admin - = - true - password - application/x-www-form-urlencoded - - - - ${GatewayHost} - ${GatewayPort} - https - - /token - POST - true - false - true - false - - - - - - - - - https://${GatewayHost}:${GatewayPort}/token - ${ClientId} - ${ClientSecret} - - - - - false - - - - - - content-type - application/x-www-form-urlencoded - - - - - - false - Token - {"access_token":"(.+?)" - $1$ - - - - - - - false - expires_in - "expires_in":(.+?)} - $1$ - - - expires_in - - - - true - - - var expires_in = vars.get("expires_in") * 1000; -log.info("zzzzzzzzzzzzzzz Expire in: " + expires_in); -expires_in += Date.now(); -vars.put("exp", expires_in); -log.info("zzzzzzzzzzzzzzz Expire on: " + expires_in); -var token = vars.get("Token"); -log.info("zzzzzzzzzzzzzzz Token: " + token); -props.put("Token", token); - javascript - - - - - - - continue - - false - 1 - - 1 - 1 - 1644164949000 - 1644164949000 - false - - - true - - - - - - vars.put("Token", props.get("Token")); - javascript - true - - - - false - false - - - - true - - - - false - { - "id": 0, - "name": "string", - "type": "string", - "description": "string", - "deviceIdentifier": "string", - "enrolmentInfo": { - "id": 0, - "dateOfEnrolment": 0, - "dateOfLastUpdate": 0, - "lastBilledDate": 0, - "ownership": "BYOD", - "status": "CREATED", - "owner": "string", - "transferred": false - }, - "features": [ - { - "id": 0, - "code": "string", - "name": "string", - "description": "string", - "type": "string", - "hidden": false, - "deviceType": "string", - "metadataEntries": [ - { - "id": 0, - "name": "string", - "value": {} - } - ] - } - ], - "properties": [ - { - "name": "string", - "value": "string" - } - ], - "deviceInfo": { - "deviceModel": "string", - "vendor": "string", - "osVersion": "string", - "osBuildDate": "string", - "batteryLevel": 0, - "internalTotalMemory": 0, - "internalAvailableMemory": 0, - "externalTotalMemory": 0, - "externalAvailableMemory": 0, - "operator": "string", - "connectionType": "string", - "mobileSignalStrength": 0, - "ssid": "string", - "cpuUsage": 0, - "totalRAMMemory": 0, - "availableRAMMemory": 0, - "pluggedIn": false, - "updatedTime": "2023-02-15T09:56:04.735Z", - "location": { - "deviceId": 0, - "deviceIdentifier": { - "id": "string", - "type": "string" - }, - "latitude": 0, - "longitude": 0, - "street1": "string", - "street2": "string", - "city": "string", - "state": "string", - "zip": "string", - "country": "string", - "updatedTime": "2023-02-15T09:56:04.735Z", - "altitude": 0, - "speed": 0, - "bearing": 0, - "distance": 0 - }, - "deviceDetailsMap": { - "additionalProp1": "string", - "additionalProp2": "string", - "additionalProp3": "string" - } - }, - "applications": [ - { - "id": 0, - "platform": "string", - "category": "string", - "name": "string", - "locationUrl": "string", - "imageUrl": "string", - "version": "string", - "type": "string", - "appProperties": { - "additionalProp1": {}, - "additionalProp2": {}, - "additionalProp3": {} - }, - "applicationIdentifier": "string", - "memoryUsage": 0, - "hourlyUsage": 0, - "dailyUsage": 0, - "applicationEvents": [ - { - "eventData": "string", - "timestamp": 0 - } - ], - "active": false - } - ], - "cost": 0, - "daysUsed": 0, - "deviceStatusInfo": [ - { - "status": "CREATED", - "updateTime": "2023-02-15T09:56:04.736Z", - "enrolmentId": 0, - "deviceId": 0, - "changedBy": "string" - } - ], - "historySnapshot": { - "fullSnapshot": { - "locationHistorySnapshots": [ - [ - { - "deviceId": 0, - "deviceIdentifier": { - "id": "string", - "type": "string" - }, - "latitude": 0, - "longitude": 0, - "street1": "string", - "street2": "string", - "city": "string", - "state": "string", - "zip": "string", - "country": "string", - "updatedTime": "2023-02-15T09:56:04.736Z", - "altitude": 0, - "speed": 0, - "bearing": 0, - "distance": 0, - "geoHash": "string", - "tenantId": 0, - "owner": "string" - } - ] - ] - }, - "pathSnapshot": [ - {} - ] - } -} - = - - - - ${GatewayHost} - ${GatewayPort} - https - - /api/device-mgt//v1.0/device/agent/enroll - POST - true - false - true - false - - - - - - - - - Authorization - Bearer ${Token} - - - Content-Type - application/json - - - - - - - 200 - - - - - Assertion.response_code - false - 8 - - - - - - - - ${GatewayHost} - ${GatewayPort} - https - - /api/device-mgt/v1.0/devices - GET - true - false - true - false - - - - - - - - - Authorization - Bearer ${Token} - - - - - - - 200 - - - - Assertion.response_code - false - 8 - - - - - - - - ${GatewayHost} - ${GatewayPort} - https - - /api/device-mgt/v1.0//devices/type/any/id/{id} - GET - true - false - true - false - - - - - - - - - Authorization - Bearer ${Token} - - - - - - - 200 - - - - Assertion.response_code - false - 8 - - - - - - - - ${GatewayHost} - ${GatewayPort} - https - - /api/device-mgt/v1.0//devices/type/any/id/{id} - GET - true - false - true - false - - - - - - - - - Authorization - Bearer ${Token} - - - - - - - 200 - - - - Assertion.response_code - false - 8 - - - - - true - - - - false - { - "properties": { - "additionalProp1": "string", - "additionalProp2": "string", - "additionalProp3": "string" - } -} - = - - - - ${GatewayHost} - ${GatewayPort} - https - - /api/device-mgt//v1.0/devices/query-devices - POST - true - false - true - false - - - - - - - - - Authorization - Bearer ${Token} - - - Content-Type - application/json - - - - - - - 200 - - - - - Assertion.response_code - false - 8 - - - - - true - - - - false - { - "conditions": [ - { - "key": "string", - "value": "string", - "operator": "string", - "state": "AND" - } - ] -} - = - - - - ${GatewayHost} - ${GatewayPort} - https - - /api/device-mgt//v1.0/devices/query-devices - POST - true - false - true - false - - - - - - - - - Authorization - Bearer ${Token} - - - Content-Type - application/json - - - - - - - 200 - - - - - Assertion.response_code - false - 8 - - - - - - - continue - - false - 1 - - 1 - 1 - false - - - true - 1669634319000 - 1669634319000 - - - - - - vars.put("Token", props.get("Token")); - javascript - true - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - true - false - false - false - false - false - 0 - true - - - - - - - - diff --git a/integration-test/iot-community/src/test/resources/testng.xml b/integration-test/iot-community/src/test/resources/testng.xml index 5cde643..569dec6 100644 --- a/integration-test/iot-community/src/test/resources/testng.xml +++ b/integration-test/iot-community/src/test/resources/testng.xml @@ -31,7 +31,7 @@ - +