use of org.wso2.carbon.automation.test.utils.http.client.HttpResponse in project product-iots by wso2.
the class AndroidOperation method testWipeData.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android wipe data operation.")
public void testWipeData() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.WIPE_DATA_ENDPOINT, Constants.AndroidOperations.WIPE_DATA_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.carbon.automation.test.utils.http.client.HttpResponse in project product-iots by wso2.
the class AndroidOperation method testUpdateApplication.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android app update operation")
public void testUpdateApplication() throws FileNotFoundException, MalformedURLException, AutomationFrameworkException {
JsonObject installApplicationPayload = PayloadGenerator.getJsonPayload(Constants.AndroidOperations.OPERATION_PAYLOAD_FILE_NAME, Constants.AndroidOperations.INSTALL_APPS_OPERATION);
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.UPDATE_APPS_ENDPOINT, installApplicationPayload.toString());
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.carbon.automation.test.utils.http.client.HttpResponse in project product-iots by wso2.
the class AndroidOperation method testPasswordPolicy.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android password policy operation.")
public void testPasswordPolicy() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.PASSWORD_POLICY_ENDPOINT, Constants.AndroidOperations.PASSWORD_POLICY_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.carbon.automation.test.utils.http.client.HttpResponse in project product-iots by wso2.
the class AndroidOperation method testClearPassword.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android device clear password " + "operation.")
public void testClearPassword() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.CLEAR_PASSWORD_ENDPOINT, Constants.AndroidOperations.CLEAR_PASSWORD_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.carbon.automation.test.utils.http.client.HttpResponse in project product-iots by wso2.
the class AndroidOperation method testEncrypt.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android encrypt operation.")
public void testEncrypt() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.ENCRYPT_ENDPOINT, Constants.AndroidOperations.ENCRYPT_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
Aggregations