# 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": {
|
||||||
"ownership": "BYOD",
|
"id": 101234,
|
||||||
"status": "ACTIVE",
|
"device": {
|
||||||
"owner": "admin"
|
|
||||||
},
|
},
|
||||||
"properties": [
|
"dateOfEnrolment": 0,
|
||||||
{
|
"dateOfLastUpdate": 0,
|
||||||
"name": "IMEI",
|
"ownership": "BYOD",
|
||||||
"value": "123123123"
|
"status": "CREATED",
|
||||||
},
|
"owner": "admin"
|
||||||
{
|
|
||||||
"name": "IMSI",
|
|
||||||
"value": "123123123"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"PUT": {
|
"features": [
|
||||||
"name": "milan123",
|
{
|
||||||
"type": "android",
|
"id": 10,
|
||||||
"description": "updatedDescription",
|
"code": "aaaa1111",
|
||||||
"deviceIdentifier": "1234",
|
"name": "newfeature1",
|
||||||
"enrolmentInfo": {
|
"description": "this is the new feature 1",
|
||||||
"ownership": "BYOD",
|
"deviceType": "android",
|
||||||
"status": "ACTIVE",
|
"metadataEntries": [
|
||||||
"owner": "admin",
|
{
|
||||||
"dateOfEnrolment": "1445438864650"
|
"id": 10,
|
||||||
|
"value": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"name": "property1",
|
||||||
|
"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"
|
||||||
},
|
},
|
||||||
"properties": [
|
"deviceDetailsMap": {
|
||||||
{
|
},
|
||||||
"name": "IMEI",
|
"imei": "string",
|
||||||
"value": "123123123"
|
"imsi": "string"
|
||||||
|
},
|
||||||
|
"applications": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"platform": "string",
|
||||||
|
"category": "string",
|
||||||
|
"name": "string",
|
||||||
|
"locationUrl": "string",
|
||||||
|
"imageUrl": "string",
|
||||||
|
"version": "string",
|
||||||
|
"type": "string",
|
||||||
|
"appProperties": {
|
||||||
},
|
},
|
||||||
{
|
"applicationIdentifier": "string",
|
||||||
"name": "IMSI",
|
"memoryUsage": 0
|
||||||
"value": "123123123"
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -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