aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-01-13 10:14:31 +0200
committerFilipp Lepalaan <f@0x00.co>2013-01-13 10:14:31 +0200
commitd8736a288d475900d0c19a96084740c3de07dd8a (patch)
tree68e1b50e6013ca1f0b6b6f08a00a3d6c41811640 /tests
parent7a46310b44d772a25ff775da4ea0b344ab7e1d0e (diff)
downloadgsxlib-d8736a288d475900d0c19a96084740c3de07dd8a.tar.gz
gsxlib-d8736a288d475900d0c19a96084740c3de07dd8a.tar.bz2
gsxlib-d8736a288d475900d0c19a96084740c3de07dd8a.zip
Added tests
Diffstat (limited to 'tests')
-rw-r--r--tests/acknowledge_communication.json5
-rw-r--r--tests/create_app_order.json18
-rw-r--r--tests/create_carryin_repair.json36
-rw-r--r--tests/create_cnd_repair.json21
-rw-r--r--tests/create_escalation.json11
-rw-r--r--tests/create_srf_order.json9
-rw-r--r--tests/create_stocking_order.json8
-rw-r--r--tests/create_whole_unit_exchange.json32
-rw-r--r--tests/fetch_communication_articles.json7
-rw-r--r--tests/fetch_communication_content.json4
-rw-r--r--tests/fetch_ios_activation.json3
-rw-r--r--tests/parts_lookup.json3
-rw-r--r--tests/parts_pending_return.json3
-rw-r--r--tests/parts_return_update.json12
-rw-r--r--tests/pending_app_orders.json4
-rw-r--r--tests/register_bulk_return.json13
-rw-r--r--tests/repair_lookup.json19
-rw-r--r--tests/return_label.json4
-rw-r--r--tests/return_report.json4
-rw-r--r--tests/update_carryin_repair.json13
-rw-r--r--tests/update_escalation.json8
-rw-r--r--tests/update_serial_number.json12
-rw-r--r--tests/warranty_status.json3
23 files changed, 252 insertions, 0 deletions
diff --git a/tests/acknowledge_communication.json b/tests/acknowledge_communication.json
new file mode 100644
index 0000000..5fd7b9b
--- /dev/null
+++ b/tests/acknowledge_communication.json
@@ -0,0 +1,5 @@
+{
+ "acknowledgement": [
+ {"articleID": "SN34", "acknowledgeType": "READ"}
+ ]
+}
diff --git a/tests/create_app_order.json b/tests/create_app_order.json
new file mode 100644
index 0000000..1d1bba8
--- /dev/null
+++ b/tests/create_app_order.json
@@ -0,0 +1,18 @@
+{
+ "shipTo": "672592",
+ "addressLine1": "1277 Jolly Avenue",
+ "country": "FI",
+ "zipCode": "00180",
+ "city": "Sunnyvale",
+ "state": "ZZ",
+ "firstName": "Test",
+ "lastName": "Apple",
+ "primaryPhone": "2086785671",
+ "emailAddress": "Test@Apple.com",
+ "productNumber": "8961",
+ "purchaseOrder": "Order8961",
+ "requestPart": {
+ "serialNumber": ""
+ },
+ "pocLanguage": "FIN"
+}
diff --git a/tests/create_carryin_repair.json b/tests/create_carryin_repair.json
new file mode 100644
index 0000000..085c765
--- /dev/null
+++ b/tests/create_carryin_repair.json
@@ -0,0 +1,36 @@
+{
+ "shipTo": "677592",
+ "requestReviewByApple": "N",
+ "serialNumber": "C3TFJJTNDCP9",
+ "symptom": "Does not work",
+ "diagnosis": "Does not work",
+ "unitReceivedDate": "01/01/13",
+ "unitReceivedTime": "12:00 AM",
+ "checkIfOutOfWarrantyCoverage": "N",
+ "overrideDiagnosticCodeCheck": "Y",
+ "poNumber": "Order12341",
+ "orderLines": [
+ {
+ "partNumber": "FD661-6136",
+ "comptiaCode": "T03",
+ "comptiaModifier": "B",
+ "abused": "Y",
+ "outOfWarrantyFlag": "N",
+ "diagnosticCode": ""
+ }
+ ],
+ "customerAddress": {
+ "addressLine1": "Address line 1",
+ "country": "FI",
+ "zipCode": "95014",
+ "regionCode": "005",
+ "city": "Cupertino",
+ "state": "ZZ",
+ "street": "Valley Green Dr",
+ "firstName": "First",
+ "lastName": "Last",
+ "companyName": "Apple Inc",
+ "primaryPhone": "4088887766",
+ "emailAddress": "abc@test.com"
+ }
+}
diff --git a/tests/create_cnd_repair.json b/tests/create_cnd_repair.json
new file mode 100644
index 0000000..c46d8c1
--- /dev/null
+++ b/tests/create_cnd_repair.json
@@ -0,0 +1,21 @@
+{
+ "shipTo": "677592",
+ "customerAddress": {
+ "addressLine1": "1277 Henderson Avenue",
+ "city": "Helsinki",
+ "country": "FI",
+ "firstName": "test",
+ "lastName": "Apple",
+ "primaryPhone": "2085673498",
+ "region": "004",
+ "state": "ZZ",
+ "zipCode": "00180",
+ "emailAddress": "test@Apple.com"
+ },
+ "notes": "This is a test note",
+ "symptom": "This is atest symptom",
+ "serialNumber": "",
+ "unitReceivedDate": "10/01/12",
+ "unitReceivedTime": "12:00 AM",
+ "classification": "N01"
+}
diff --git a/tests/create_escalation.json b/tests/create_escalation.json
new file mode 100644
index 0000000..3e1ac9c
--- /dev/null
+++ b/tests/create_escalation.json
@@ -0,0 +1,11 @@
+{
+ "shipTo": "677592",
+ "issueTypeCode": "PUR",
+ "notes": "This is a test",
+ "escalationContext": {
+ "contextType": "", "contextID": ""
+ },
+ "attachment": [
+ {"fileName": "", "fileData": ""}
+ ]
+}
diff --git a/tests/create_srf_order.json b/tests/create_srf_order.json
new file mode 100644
index 0000000..7a58344
--- /dev/null
+++ b/tests/create_srf_order.json
@@ -0,0 +1,9 @@
+{
+ "shipToCode": "677592",
+ "purchaseOrderNumber": "Order12345",
+ "serialNumber": "",
+ "reasonForOrder": "SR7",
+ "orderLines": [
+ {"partNumber": "034-4498", "quantity": "1"}
+ ]
+}
diff --git a/tests/create_stocking_order.json b/tests/create_stocking_order.json
new file mode 100644
index 0000000..1af23a4
--- /dev/null
+++ b/tests/create_stocking_order.json
@@ -0,0 +1,8 @@
+{
+ "purchaseOrderNumber": "Order7899",
+ "shipToCode": "677592",
+ "orderLines": [
+ {"partNumber": "661-5097", "quantity": "1"},
+ {"partNumber": "661-5098", "quantity": "2"}
+ ]
+}
diff --git a/tests/create_whole_unit_exchange.json b/tests/create_whole_unit_exchange.json
new file mode 100644
index 0000000..b7e77e2
--- /dev/null
+++ b/tests/create_whole_unit_exchange.json
@@ -0,0 +1,32 @@
+{
+ "billTo": "",
+ "customerAddress": "",
+ "diagnosedByTechId": "",
+ "diagnosis": "",
+ "fileName": "",
+ "fileData": "",
+ "imeiNumber": "",
+ "requestReviewByApple": "",
+ "serialNumber": "",
+ "notes": "",
+ "orderLines": [
+ {
+ "partNumber": "",
+ "comptiaCode": "",
+ "comptiaModifier": "",
+ "outOfWarrantyFlag": "",
+ "coveredByACPlus": "",
+ "diagnosticCode": ""
+ }
+ ],
+ "poNumber": "",
+ "popFaxed": "",
+ "referenceNumber": "",
+ "shipTo": "",
+ "shipBox": "",
+ "shipUnitToCustomer": "",
+ "symptom": "",
+ "unitReceivedDate": "",
+ "unitReceivedTime": "",
+ "notaFiscalNumber": ""
+}
diff --git a/tests/fetch_communication_articles.json b/tests/fetch_communication_articles.json
new file mode 100644
index 0000000..d5a0674
--- /dev/null
+++ b/tests/fetch_communication_articles.json
@@ -0,0 +1,7 @@
+{
+ "priority": "HIGH",
+ "fromDate": "",
+ "toDate": "",
+ "readStatus": "",
+ "productModel": {}
+}
diff --git a/tests/fetch_communication_content.json b/tests/fetch_communication_content.json
new file mode 100644
index 0000000..cb28cb2
--- /dev/null
+++ b/tests/fetch_communication_content.json
@@ -0,0 +1,4 @@
+{
+ "articleID": "SN234",
+ "languageCode": "en"
+}
diff --git a/tests/fetch_ios_activation.json b/tests/fetch_ios_activation.json
new file mode 100644
index 0000000..4b73647
--- /dev/null
+++ b/tests/fetch_ios_activation.json
@@ -0,0 +1,3 @@
+{
+ "serialNumber": "88028ELHA4S"
+}
diff --git a/tests/parts_lookup.json b/tests/parts_lookup.json
new file mode 100644
index 0000000..b271e16
--- /dev/null
+++ b/tests/parts_lookup.json
@@ -0,0 +1,3 @@
+{
+ "partNumber": "661-5732"
+}
diff --git a/tests/parts_pending_return.json b/tests/parts_pending_return.json
new file mode 100644
index 0000000..91e8ad2
--- /dev/null
+++ b/tests/parts_pending_return.json
@@ -0,0 +1,3 @@
+{
+ "repairType": "CA"
+}
diff --git a/tests/parts_return_update.json b/tests/parts_return_update.json
new file mode 100644
index 0000000..5cdefee
--- /dev/null
+++ b/tests/parts_return_update.json
@@ -0,0 +1,12 @@
+{
+ "repairConfirmationNumber": "G135764009",
+ "notes": "",
+ "orderLines": [
+ {"partNumber": "661-6529"},
+ {"comptiaCode": "N01"},
+ {"comptiaModifier": "A"},
+ {"orderNumber": "11223344"},
+ {"returnOrderNumber": ""},
+ {"returnType": "1"}
+ ]
+}
diff --git a/tests/pending_app_orders.json b/tests/pending_app_orders.json
new file mode 100644
index 0000000..ec49768
--- /dev/null
+++ b/tests/pending_app_orders.json
@@ -0,0 +1,4 @@
+{
+ "startDate": "01/01/12",
+ "endDate": "10/02/12"
+}
diff --git a/tests/register_bulk_return.json b/tests/register_bulk_return.json
new file mode 100644
index 0000000..3b6bda8
--- /dev/null
+++ b/tests/register_bulk_return.json
@@ -0,0 +1,13 @@
+{
+ "shipToCode": "",
+ "carrierCode": "XUPSN",
+ "trackingNumber": "12341234",
+ "length": "10",
+ "width": "10",
+ "height": "10",
+ "estimatedTotalWeight": "20",
+ "notes": "",
+ "bulkReturnOrder": [
+ {"returnOrderNumber": "7444640074", "partNumber": "661-6028", "boxNumber": "1"}
+ ]
+}
diff --git a/tests/repair_lookup.json b/tests/repair_lookup.json
new file mode 100644
index 0000000..12f35a6
--- /dev/null
+++ b/tests/repair_lookup.json
@@ -0,0 +1,19 @@
+{
+ "repairConfirmationNumber": "",
+ "customerEmailAddress": "",
+ "customerFirstName": "",
+ "customerLastName": "",
+ "fromDate": "",
+ "toDate": "",
+ "incompleteRepair": "",
+ "pendingShipment": "",
+ "purchaseOrderNumber": "",
+ "repairNumber": "",
+ "repairStatus": "",
+ "repairType": "",
+ "serialNumber": "W874939YX92",
+ "shipToCode": "",
+ "technicianFirstName": "",
+ "technicianLastName": "",
+ "unreceivedModules": ""
+}
diff --git a/tests/return_label.json b/tests/return_label.json
new file mode 100644
index 0000000..edebf48
--- /dev/null
+++ b/tests/return_label.json
@@ -0,0 +1,4 @@
+{
+ "returnOrderNumber": "7438971408",
+ "partNumber": "NF661-5769"
+}
diff --git a/tests/return_report.json b/tests/return_report.json
new file mode 100644
index 0000000..a868dd3
--- /dev/null
+++ b/tests/return_report.json
@@ -0,0 +1,4 @@
+{
+ "shipTo": "",
+ "warrantyType": "IW"
+}
diff --git a/tests/update_carryin_repair.json b/tests/update_carryin_repair.json
new file mode 100644
index 0000000..90ee39e
--- /dev/null
+++ b/tests/update_carryin_repair.json
@@ -0,0 +1,13 @@
+{
+ "repairConfirmationNumber": "G135773004",
+ "statusCode": "BEGR",
+ "technicianId": "",
+ "notes": "",
+ "orderLines": [
+ {
+ "partNumber": "661-5594",
+ "comptiaCode": "F1A",
+ "comptiaModifier": "B"
+ }
+ ]
+}
diff --git a/tests/update_escalation.json b/tests/update_escalation.json
new file mode 100644
index 0000000..abe3474
--- /dev/null
+++ b/tests/update_escalation.json
@@ -0,0 +1,8 @@
+{
+ "escalationId": "1599790",
+ "notes": "This is an update",
+ "status": "",
+ "attachment": [
+ {"fileName": "", "fileData": ""}
+ ]
+}
diff --git a/tests/update_serial_number.json b/tests/update_serial_number.json
new file mode 100644
index 0000000..789bdf6
--- /dev/null
+++ b/tests/update_serial_number.json
@@ -0,0 +1,12 @@
+{
+ "repairConfirmationNumber": "G135762375",
+ "partInfo": [
+ {
+ "partNumber": "661-4964",
+ "oldSerialNumber": "W882300FK22YA",
+ "serialNumber": "W8829012R22XA",
+ "reasonCode": "",
+ "isPartDOA": "N"
+ }
+ ]
+}
diff --git a/tests/warranty_status.json b/tests/warranty_status.json
new file mode 100644
index 0000000..1c51713
--- /dev/null
+++ b/tests/warranty_status.json
@@ -0,0 +1,3 @@
+{
+ "serialNumber": "W874939YX92"
+}