# Conflicts: # modules/integration/tests-integration-old/src/test/java/org/wso2/mdm/integration/common/MDMHttpClient.java # modules/integration/tests-integration-old/src/test/java/org/wso2/mdm/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java # modules/integration/tests-integration/src/test/resources/automation.xml # modules/integration/tests-integration/src/test/resources/testng.xmlmerge-requests/1/head
commit
5d41fe313b
@ -1,45 +1,92 @@
|
|||||||
{
|
{
|
||||||
"POST": {
|
"id": 101234,
|
||||||
"name": "milan",
|
"name": "androiddevice1234",
|
||||||
"type": "android",
|
"type": "android",
|
||||||
"description": "milan123",
|
"description": "this is an android device",
|
||||||
"deviceIdentifier": "1234",
|
"deviceIdentifier": "d24f870f390352a41234",
|
||||||
"enrolmentInfo": {
|
"enrolmentInfo": {
|
||||||
|
"id": 101234,
|
||||||
|
"device": {
|
||||||
|
},
|
||||||
|
"dateOfEnrolment": 0,
|
||||||
|
"dateOfLastUpdate": 0,
|
||||||
"ownership": "BYOD",
|
"ownership": "BYOD",
|
||||||
"status": "ACTIVE",
|
"status": "CREATED",
|
||||||
"owner": "admin"
|
"owner": "admin"
|
||||||
},
|
},
|
||||||
"properties": [
|
"features": [
|
||||||
{
|
{
|
||||||
"name": "IMEI",
|
"id": 10,
|
||||||
"value": "123123123"
|
"code": "aaaa1111",
|
||||||
},
|
"name": "newfeature1",
|
||||||
|
"description": "this is the new feature 1",
|
||||||
|
"deviceType": "android",
|
||||||
|
"metadataEntries": [
|
||||||
{
|
{
|
||||||
"name": "IMSI",
|
"id": 10,
|
||||||
"value": "123123123"
|
"value": {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"PUT": {
|
],
|
||||||
"name": "milan123",
|
|
||||||
"type": "android",
|
|
||||||
"description": "updatedDescription",
|
|
||||||
"deviceIdentifier": "1234",
|
|
||||||
"enrolmentInfo": {
|
|
||||||
"ownership": "BYOD",
|
|
||||||
"status": "ACTIVE",
|
|
||||||
"owner": "admin",
|
|
||||||
"dateOfEnrolment": "1445438864650"
|
|
||||||
},
|
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"name": "IMEI",
|
"name": "property1",
|
||||||
"value": "123123123"
|
"value": "value1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"deviceInfo": {
|
||||||
|
"deviceModel": "S8",
|
||||||
|
"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": [
|
||||||
{
|
{
|
||||||
"name": "IMSI",
|
"id": 0,
|
||||||
"value": "123123123"
|
"platform": "string",
|
||||||
|
"category": "string",
|
||||||
|
"name": "string",
|
||||||
|
"locationUrl": "string",
|
||||||
|
"imageUrl": "string",
|
||||||
|
"version": "string",
|
||||||
|
"type": "string",
|
||||||
|
"appProperties": {
|
||||||
|
},
|
||||||
|
"applicationIdentifier": "string",
|
||||||
|
"memoryUsage": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
|
@ -1,18 +1,4 @@
|
|||||||
{
|
{
|
||||||
"POST": {
|
"responseCode": "OK",
|
||||||
"responseCode": "Created",
|
"responseMessage": "Android device, which carries the id \u0027d24f870f390352a41\u0027 has successfully been enrolled"
|
||||||
"responseMessage": "Device enrollment succeeded."
|
|
||||||
},
|
|
||||||
"PUT": {
|
|
||||||
"responseCode": "Accepted",
|
|
||||||
"responseMessage": "Device enrollment has updated successfully"
|
|
||||||
},
|
|
||||||
"GET": {
|
|
||||||
"responseCode": "Accepted",
|
|
||||||
"responseMessage": "Device has already enrolled"
|
|
||||||
},
|
|
||||||
"DELETE": {
|
|
||||||
"responseCode": "Accepted",
|
|
||||||
"responseMessage": "Device has removed successfully"
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package org.wso2.iot.integration.util;
|
||||||
|
|
||||||
|
public class ServerRestart {
|
||||||
|
}
|
Loading…
Reference in new issue