From dc5bf07c197167f014a32d3d3683cdbef48185fe Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Tue, 13 Aug 2019 03:26:11 +0000 Subject: [PATCH] Add tests for partners, services, warranty activation, and location support. #229 --- ...I - API Controller.postman_collection.json | 579 ++++++++++++++++-- postman/resq_test.sql | 10 +- 2 files changed, 545 insertions(+), 44 deletions(-) diff --git a/postman/Resq Mobile API - API Controller.postman_collection.json b/postman/Resq Mobile API - API Controller.postman_collection.json index 10216f01..bbf1dd9f 100755 --- a/postman/Resq Mobile API - API Controller.postman_collection.json +++ b/postman/Resq Mobile API - API Controller.postman_collection.json @@ -1235,6 +1235,168 @@ }, "response": [] }, + { + "name": "[Normal] Get JO History", + "event": [ + { + "listen": "test", + "script": { + "id": "bd898f60-4188-4063-903b-e802e195e97e", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Get job order history\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.job_orders[0].id).to.eql(3);", + " pm.expect(jsonData.data.job_orders[0].customer_vehicle.plate_number).to.eql(\"MOG1234\");", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{resq_url}}/api/job_order/history?api_key={{preset_api_key}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "job_order", + "history" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + } + ] + } + }, + "response": [] + }, + { + "name": "[Normal] Get JO Invoice", + "event": [ + { + "listen": "test", + "script": { + "id": "f6aec690-14a8-4c12-940d-242547577f2f", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Get job order invoice\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.items[0].title).to.eql(\"GOLD 1SM / D23 /NS50 / R\");", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "jo_id", + "value": "{{jo_id_for_cancel_jo}}", + "type": "text", + "disabled": true + } + ] + }, + "url": { + "raw": "{{resq_url}}/api/job_order/invoice?api_key={{preset_api_key}}&jo_id={{jo_id_for_cancel_jo}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "job_order", + "invoice" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + }, + { + "key": "jo_id", + "value": "{{jo_id_for_cancel_jo}}" + } + ] + } + }, + "response": [] + }, + { + "name": "[Normal] Update Device ID", + "event": [ + { + "listen": "test", + "script": { + "id": "f412a2f4-4409-4928-9c4a-c62f9d1b7533", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Update device ID\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "device_id", + "value": "{{device_id}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{resq_url}}/api/device_id?api_key={{preset_api_key}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "device_id" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + } + ] + } + }, + "response": [] + }, { "name": "[Normal] Privacy Settings", "event": [ @@ -1288,6 +1450,101 @@ }, "response": [] }, + { + "name": "[Normal] Resend Code", + "event": [ + { + "listen": "test", + "script": { + "id": "bfa9f9d2-9ae6-4978-bd67-b7317a22cbf1", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Resend code\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{resq_url}}/api/resend_code?api_key={{preset_api_key_unconfirmed}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "resend_code" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key_unconfirmed}}" + } + ] + } + }, + "response": [] + }, + { + "name": "[Normal] Location Support", + "event": [ + { + "listen": "test", + "script": { + "id": "538d8939-f19a-49c7-a4b4-3b06cfd5676b", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Location support\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.supported).to.eql(true);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{resq_url}}/api/location_support?api_key={{preset_api_key}}&longitude={{longitude}}&latitude={{latitude}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "location_support" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + }, + { + "key": "longitude", + "value": "{{longitude}}" + }, + { + "key": "latitude", + "value": "{{latitude}}" + } + ] + } + }, + "response": [] + }, { "name": "[Normal] Activate Warranty", "event": [ @@ -1300,10 +1557,10 @@ " pm.response.to.have.status(200);", "});", "", - "//pm.test(\"Activate warranty\", function () {", - "// var jsonData = pm.response.json();", - "// pm.expect(jsonData.error.status).to.eql(\"success\");", - "//});" + "pm.test(\"Activate warranty\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + "});" ], "type": "text/javascript" } @@ -1323,7 +1580,7 @@ ] }, "url": { - "raw": "{{resq_url}}/api/activate_warranty?api_key={{api_key}}", + "raw": "{{resq_url}}/api/activate_warranty?api_key={{preset_api_key}}", "host": [ "{{resq_url}}" ], @@ -1334,7 +1591,217 @@ "query": [ { "key": "api_key", - "value": "{{api_key}}" + "value": "{{preset_api_key}}" + } + ] + } + }, + "response": [] + }, + { + "name": "[Normal] List Services", + "event": [ + { + "listen": "test", + "script": { + "id": "68ade044-b9d3-4425-a8b4-16674778f6dc", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"List of services is present\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.services.length).to.be.gt(0);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{resq_url}}/api/services?api_key={{preset_api_key}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "services" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + } + ] + } + }, + "response": [] + }, + { + "name": "[Normal] Get partner information", + "event": [ + { + "listen": "test", + "script": { + "id": "6c3ba8c3-f0ae-40ab-a884-cd540d592653", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Get partner information and reviews\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.partner).to.have.property('id');", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{resq_url}}/api/partners/{{partner_id}}?api_key={{preset_api_key}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "partners", + "{{partner_id}}" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + } + ] + }, + "description": "Get partner details and reviews" + }, + "response": [] + }, + { + "name": "[Normal] Get list of closest partners", + "event": [ + { + "listen": "test", + "script": { + "id": "94823df8-bf4f-42a9-843f-e7b1c5ceda29", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"List of partners is present\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.partners.length).to.be.gt(0);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{resq_url}}/api/partners?api_key={{preset_api_key}}&longitude={{longitude}}&latitude={{latitude}}&limit={{limit}}&service_id={{service_id}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "partners" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + }, + { + "key": "longitude", + "value": "{{longitude}}" + }, + { + "key": "latitude", + "value": "{{latitude}}" + }, + { + "key": "limit", + "value": "{{limit}}" + }, + { + "key": "service_id", + "value": "{{service_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "[Normal] Review Partner", + "event": [ + { + "listen": "test", + "script": { + "id": "26cdf169-7282-4ceb-9ab5-237e70dfb70d", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Review partnert\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "rating", + "value": "{{rating}}", + "type": "text" + }, + { + "key": "message", + "value": "{{comment}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{resq_url}}/api/partners/{{partner_id}}/review?api_key={{preset_api_key}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "partners", + "{{partner_id}}", + "review" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" } ] } @@ -1366,215 +1833,245 @@ ], "variable": [ { - "id": "5d93f375-0011-406c-a88f-a63e2f68488c", + "id": "8d2330fb-5db8-46f6-b179-9b587b7ffdae", "key": "resq_url", "value": "resq.local", "type": "string", "disabled": true }, { - "id": "c5ab2ec9-5fa1-42c0-9b59-a5f39c341c93", + "id": "85913ee7-5c59-4194-b63a-10a2d67e7e13", "key": "phone_model", "value": "iPhone8", "type": "string" }, { - "id": "3a5bc033-4298-41f2-a2a6-723af86e8941", + "id": "9db4816f-5b02-41ac-a517-ea7313349e2f", "key": "os_type", "value": "IOS", "type": "string" }, { - "id": "1100e110-9b61-4e86-9e5b-0d2b9ce1d459", + "id": "92eabed4-7c39-4cf8-bb8b-3f2422e28a88", "key": "os_version", "value": "11.4", "type": "string" }, { - "id": "1e79c0c3-a365-48bf-b279-8082e49ab690", + "id": "37fe6cd6-f03f-41e4-be90-dd0130884458", "key": "phone_id", "value": "11376660-F8BF-46ED-B30A-EF3F361EE223", "type": "string" }, { - "id": "72e74248-809b-46d5-a7f8-19132e90ebd4", + "id": "41b56804-7a1e-422e-888c-998eeca61af2", "key": "phone_number", "value": "9221111111", "type": "string" }, { - "id": "a9ed9e37-8497-4a6e-885c-e6bc7b90d0a2", + "id": "5613ed18-d7bc-42a2-9052-59ce6cf18384", "key": "first_name", "value": "Stiltzkin", "type": "string" }, { - "id": "99f734c3-1b7f-4c38-b1fd-33add5c21e90", + "id": "5d2ed826-cd18-4dea-b175-6fbc444f50d1", "key": "last_name", "value": "Moogle", "type": "string" }, { - "id": "c4a4859a-fd69-42ac-b6f1-9b745b2e7e1e", + "id": "d33dfddc-44c0-4e85-983d-9b0916021bcc", "key": "mfg_id", "value": "1435", "type": "string" }, { - "id": "f6eaa575-52c9-43be-8d1a-e2b6d82155fd", + "id": "8756da11-2452-4382-bee9-d87a2917c5c0", "key": "make_id", "value": "22043", "type": "string" }, { - "id": "2abf6bbb-35e3-48bf-98b2-c935fa22f809", + "id": "062322be-b65a-4a7d-9069-14d5b9e08691", "key": "name", "value": "Beetle 1.2 TSI MT (Gas)", "type": "string" }, { - "id": "974d51f3-7de7-4601-aedf-8118534760fd", + "id": "7ffa69c3-0c9b-424e-9d51-16b246843dd5", "key": "plate_num", "value": "MGL1234", "type": "string" }, { - "id": "302e37a0-de56-4dbb-b04d-51e6cc6ceb67", + "id": "24c12bf8-25e9-4487-bbc9-f1f78e9885f0", "key": "model_year", "value": "2016", "type": "string" }, { - "id": "c2bd2449-d853-4834-8610-2a50e7a2f44b", + "id": "aeaa3842-7788-4978-a9ff-5aa06cd4208e", "key": "color", "value": "White", "type": "string" }, { - "id": "5e1c7cf7-6c2d-4ccb-a7c7-a57fd9f28cba", + "id": "7a1d5798-256b-4f58-a901-e0f4d590b791", "key": "condition", "value": "Brand New", "type": "string" }, { - "id": "a5f72792-689d-4cf3-889a-57389ce61e10", + "id": "37cc3206-05f8-41cb-bfda-7b31b3ac0f1f", "key": "fuel_type", "value": "Gas", "type": "string" }, { - "id": "ad681bc9-dfb5-4c20-8df0-8be64917b87b", + "id": "c1c743a5-8795-45ad-9fc3-6b4a3a685b1a", "key": "wty_code", "value": "MKUP0123456", "type": "string" }, { - "id": "b36813a5-50a8-42da-be7a-6a393b7c4029", + "id": "546efeb7-b0b1-49d6-baed-2bb0d81e6db4", "key": "wty_expire", "value": "20201125", "type": "string" }, { - "id": "e2492bad-83af-4c36-b718-e735c615acf5", + "id": "f593c5e2-a408-453d-ae48-31eb0ac94d2b", "key": "service_type", "value": "battery_new", "type": "string" }, { - "id": "543637fd-dba2-47c7-ad57-17e7514c46e6", + "id": "ccbd96fb-d538-41c6-aa98-fbd30db888df", "key": "trade_in", "value": "MOTOLITE", "type": "string" }, { - "id": "4ccd2182-6d87-4293-a471-ec4ea3a36230", + "id": "a12f7829-c214-405a-8966-42886a6c01cf", "key": "longitude", "value": "121.018039", "type": "string" }, { - "id": "1af5abab-b961-4123-8ff2-8b6bfd26b64a", + "id": "03e74d4e-84b5-486c-a345-c6912c3b634d", "key": "latitude", "value": "14.606807", "type": "string" }, { - "id": "339b4adb-35ea-4a62-9c18-5e0b4d510dba", + "id": "ccc96e0c-20ed-487a-93d4-f587d5868396", "key": "warranty", "value": "private", "type": "string" }, { - "id": "3011207b-0efe-4990-bf1a-07ac93f0d997", + "id": "1a06bec2-ccff-470b-87c6-976c5fd45e46", "key": "mode_of_payment", "value": "CASH", "type": "string" }, { - "id": "906c85a0-d63c-49be-9bad-95a5c3995efa", + "id": "e0f7a8aa-8641-4be4-b835-9d4e22bc9f66", "key": "delivery_address", "value": "#123 Moogle Drive", "type": "string" }, { - "id": "9d8631f3-6f4a-4617-b9c6-a891dbdb7080", + "id": "07b61f80-1944-49e8-9fb1-ba53e138eed6", "key": "delivery_instructions", "value": "Look for the red bon-bon", "type": "string" }, { - "id": "817cba3e-5a1c-4437-a3a1-a435fb6e2102", + "id": "49422a74-4683-4fad-80f3-fad0fe7c1674", "key": "promo_id", "value": "1", "type": "string" }, { - "id": "830e5413-aede-49d5-96d6-9f9ffd69d362", + "id": "6f778734-29ec-47d3-b8c0-dc56c403408c", "key": "code", "value": "123456", "type": "string" }, { - "id": "5c63ff91-5a46-46a6-bb50-a99fcf9c2469", + "id": "4f5e4acf-511e-43e7-96aa-1bb8f92a60e3", "key": "batt_id", "value": "1050", "type": "string" }, { - "id": "df43d18c-da1e-4d1e-a39e-ff497e1e3ade", + "id": "c43b9981-550a-40b6-b3a6-28007f8bb8a8", "key": "jo_id_for_rider_rating", "value": "4", "type": "string" }, { - "id": "ba2bfbc9-4177-46c9-9bba-a99fa4cf6800", + "id": "436646d7-8233-493d-aada-241fe92085a8", "key": "preset_api_key", "value": "5d427428b1541", "type": "string" }, { - "id": "35e07ec1-e1ac-42ba-94cb-284fac688eeb", + "id": "65fcc401-ba87-4a22-be52-9cf1c7e1ffa5", "key": "rating", "value": "4", "type": "string" }, { - "id": "ab22b498-e2ae-4148-954f-6d3b42e2a8bc", + "id": "d50b735d-29e3-48aa-8391-af2cc638a600", "key": "comment", "value": "Very professional, kupo!", "type": "string" }, { - "id": "4e7ec753-ab40-4814-8e54-2808a82659f0", + "id": "e5790ffa-d2aa-4210-936c-9cbcddec4e87", "key": "jo_id_for_cancel_jo", "value": "3", "type": "string" }, { - "id": "be480a65-6da0-48e3-b388-7545d237a123", + "id": "d5a7f058-4e54-47ac-b60b-d3595618adb1", "key": "cancel_reason", "value": "No money, kupo!", "type": "string" + }, + { + "id": "ca9ad85f-5809-42aa-afcd-89008810e6b2", + "key": "device_id", + "value": "123456", + "type": "string" + }, + { + "id": "6b7f078a-e509-4fb9-b99d-91c48cb26718", + "key": "partner_id", + "value": "1", + "type": "string" + }, + { + "id": "98abae1f-9ca4-4041-95d3-62c659fc11b7", + "key": "preset_api_key_unconfirmed", + "value": "5d439b3a43f40", + "type": "string" + }, + { + "id": "37bddaba-3933-4895-adf9-8b2b1be68d48", + "key": "service_id", + "value": "2", + "type": "string" + }, + { + "id": "94e86dc8-2237-41b1-8fdc-8da7e1ac8331", + "key": "limit", + "value": "5", + "type": "string" } ] } \ No newline at end of file diff --git a/postman/resq_test.sql b/postman/resq_test.sql index 19a1377e..7818f398 100644 --- a/postman/resq_test.sql +++ b/postman/resq_test.sql @@ -786,7 +786,7 @@ CREATE TABLE `partner` ( PRIMARY KEY (`id`), KEY `IDX_312B3E1685564492` (`create_user_id`), CONSTRAINT `FK_312B3E1685564492` FOREIGN KEY (`create_user_id`) REFERENCES `user` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -795,6 +795,7 @@ CREATE TABLE `partner` ( LOCK TABLES `partner` WRITE; /*!40000 ALTER TABLE `partner` DISABLE KEYS */; +INSERT INTO `partner` VALUES (1,1,'Moogle Partner #1','2019-08-13 03:02:42','Moogle Branch #1','Address #1','\0\0\0\0\0\0\0_\0ê¶@^@\"³lÝ.5-@','12345678','03:00:00','15:00:00'); /*!40000 ALTER TABLE `partner` ENABLE KEYS */; UNLOCK TABLES; @@ -822,6 +823,7 @@ CREATE TABLE `partner_services` ( LOCK TABLES `partner_services` WRITE; /*!40000 ALTER TABLE `partner_services` DISABLE KEYS */; +INSERT INTO `partner_services` VALUES (1,1),(1,2); /*!40000 ALTER TABLE `partner_services` ENABLE KEYS */; UNLOCK TABLES; @@ -922,7 +924,7 @@ CREATE TABLE `review` ( KEY `IDX_794381C69A67BEF1` (`mobile_session_id`), CONSTRAINT `FK_794381C69393F8FE` FOREIGN KEY (`partner_id`) REFERENCES `partner` (`id`), CONSTRAINT `FK_794381C69A67BEF1` FOREIGN KEY (`mobile_session_id`) REFERENCES `mobile_session` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1114,6 +1116,7 @@ CREATE TABLE `sap_battery` ( LOCK TABLES `sap_battery` WRITE; /*!40000 ALTER TABLE `sap_battery` DISABLE KEYS */; +INSERT INTO `sap_battery` VALUES ('ECHB20AB-CPN00-LX',3,3),('ECHB20AB-SPN00-LX',3,3),('ECHB24AB-SPN00-L',3,4),('ECHC24AL-SPN00-L',3,6),('ECHD23AL-SPN00-LX',3,5),('ECHD26AL-SPN00-LX',3,1),('ECHD31AL-SPN00-LX',3,2),('ECHE41AL-SPN00-LX',3,7),('ECHF51AL-SPN00-LX',3,8),('ECHG51AL-SPN00-LX',3,9),('ECHH52AL-SPN00-LX',3,10),('EDFB20AB-CPN00-L',18,3),('EDFB24AB-SPN00-L',18,4),('EDFD23AL-SPN00-L',18,5),('EDFD26AL-SPN00-L',18,1),('EDFD31AL-SPN00-L',18,2),('EDFE41AL-SPN00-L',18,7),('EDFF51AL-SPN00-L',18,8),('EDFG51AL-SPN00-L',18,9),('EDFH52AL-SPN00-L',18,10),('EDPB20AB-CPN00-LX',19,3),('EDPB24AB-SPN00-LX',19,4),('EDPD23AL-SPN00-LX',19,5),('EDPD26AL-SPN00-LX',19,1),('EDPD31AL-SPN00-LX',19,2),('EDPE41AL-SPN00-LX',19,7),('EDPF51AL-SPN00-LX',19,8),('EDPG51AL-SPN00-LX',19,9),('EEFB24BB-SPN00-L',12,4),('EEFD23BL-SPN00-L',12,5),('EEFD26BL-SPN00-L',12,1),('EEFD31BL-SPN00-L',12,2),('EEFE41BL-SPN00-L',12,7),('EEFF51BL-SPN00-L',12,8),('EEFG51BL-SPN00-L',12,9),('EEFH52BL-SPN00-L',12,10),('EELB20AB-CPN00-L',6,3),('EELB24AB-SPN00-L',6,4),('EELD23AL-SPN00-L',6,5),('EELD26AL-SPN00-L',6,1),('EELD31AL-SPN00-L',6,2),('EELE41AL-SPN00-L',6,7),('EELF51AL-SPN00-L',6,8),('EELG51AL-SPN00-L',6,9),('EELH52AL-SPN00-L',6,10),('EMC6TNPR-SPN00-L',11,36),('EMFD26AL-SPN00-L',10,1),('EMFD31AL-SPN00-L',10,2),('EMFE41AL-SPN00-L',10,7),('EMFF51AL-SPN00-L',10,8),('EMFG51AL-SPN00-L',10,9),('EMSD26DL-SPN00-L',13,1),('EMSD31DL-SPN00-L',13,2),('EMTD26CL-SPN00-L',16,1),('EMTD31CL-SPN00-L',16,2),('EMTE41CL-SPN00-L',16,7),('EMTF51CL-SPN00-L',16,8),('EMTG51CF-SPN00-L',16,9),('EMTG51CL-SPN00-L',16,9),('EMTH52CF-SPN00-L',16,37),('EMTH52CL-SPN00-L',16,10),('EPLD23AL-SPN00-L',14,5),('EPLD26AL-SPN00-L',14,1),('EPLD31AL-SPN00-L',14,2),('EPLE41AL-SPN00-L',14,7),('EPLF51AL-SPN00-L',14,8),('EPLG51AL-SPN00-L',14,9),('ERMB24AB-SPN00-L',15,4),('ERMD26AL-SPN00-L',15,1),('ERMD31AL-SPN00-L',15,2),('ERME41AL-SPN00-L',15,7),('ERMF51AL-SPN00-L',15,8),('ERMG51AL-SPN00-L',15,9),('ESRB24LF-SPN00-L',4,4),('ESRD31NG-SPN00-L',4,2),('ESRE41PG-SPN00-L',4,7),('ESRF51QG-SPN00-L',4,8),('ESRG51RF-SPN00-L',4,9),('ESRH52TF-SPN00-L',4,10),('EVLD26AL-SPN00-L',17,1),('EVLD31AL-SPN00-L',17,2),('EVLE41AL-SPN00-L',17,7),('EVLF51AL-SPN00-L',17,8),('EVLG51AL-SPN00-L',17,9),('EYKB20CB-SPN00-L',21,3),('EYKB24CB-SPN00-L',21,4),('EYKD26CL-SPN00-L',21,1),('EYKD31CL-SPN00-L',21,2),('EYKE41CL-SPN00-L',21,7),('EYKF51CL-SPN00-L',21,8),('EYKG51CL-SPN00-L',21,9),('EYSD26AL-CPN00-L',23,1),('EYSD31AL-CPN00-L',23,2),('EYSE41AL-CPN00-L',23,7),('EYSG51AL-CPN00-L',23,9),('EYTB20AB-CPN00-L',22,3),('EYTB20AB-CPN00-LX',22,3),('EYTD26AL-SPN00-L',22,1),('EYTD26AL-SPN00-LX',22,1),('EYTD31AL-SPN00-L',22,2),('EYTD31CL-SPN00-LX',22,2),('EYTE41AL-SPN00-L',22,7),('EYTE41AL-SPN00-LX',22,7),('EYTF51AL-SPN00-L',22,8),('EYTF51BL-SPN00-LX',22,8),('EYTG51AL-SPN00-L',22,9),('EYTG51BL-SPN00-LX',22,9),('WATB31QT-CPP00-L',4,2),('WCHB20BB-CPN00-LX',2,3),('WCHB24BB-CPN00-LX',2,4),('WCHD23BL-CPN00-LX',2,5),('WCHD26BL-CPN00-LX',2,1),('WCHD31BL-CPN00-LX',2,2),('WCMG24BL-CPN00-L',1,1),('WCMG27HL-CPN00-L',1,2),('WCYG24IL-CPN00-L',1,1),('WDPB20BB-CPN00-LX',19,3),('WDPB20CA-CPN00-LX',19,3),('WDPB24BB-CPN00-LX',19,4),('WDPB24CB-CPN00-LX',19,4),('WDPL23BL-CPN00-LX',19,5),('WDPL23CL-CPN00-LX',19,5),('WDPL26BL-CPN00-LX',19,1),('WDPL26CL-CPN00-LX',19,1),('WDPL31BL-CPN00-LX',19,2),('WDPL31CL-CPN00-LX',19,2),('WDSB24DA-CPN00-LX',20,4),('WDSB24DB-CPN00-LX',20,4),('WDSL23DL-CPN00-LX',20,5),('WDSL26DL-CPN00-LX',20,1),('WDSL26DR-CPN00-LX',20,29),('WDSL31DL-CPN00-LX',20,2),('WDSL31DR-CPN00-LX',20,17),('WEBL23EL-CPNMD-L',5,5),('WMEB20CB-CPN00-LX',7,3),('WMEB21CB-CPN00-LX',7,3),('WMEB24CA-CPN00-LX',7,15),('WMEB24CB-CPN00-LX',7,4),('WMEC24CL-CPN00-LX',7,6),('WMEL23CL-CPN00-LX',7,5),('WMEL26CL-CPN00-LX',7,1),('WMEL31CL-CPN00-LX',7,2),('WMEN44CL-CPN00-LX',7,16),('WMGB20CB-CPNHD-L',9,3),('WMGB20DA-CPN00-LX',9,18),('WMGB20DB-CPN00-LX',9,3),('WMGB20DB-CPNSZ-L',9,3),('WMGB20DI-CPNTY-L',9,3),('WMGB21DA-CPN00-LX',9,18),('WMGB21DA-CPNHY-L',9,18),('WMGB21DB-CPN00-LX',9,3),('WMGB24DA-CPN00-LX',9,15),('WMGB24DB-CPN00-LX',9,4),('WMGB24DB-CPNNI-L',9,4),('WMGB24DL-CPNTY-L',9,4),('WMGB24EB-CPNNI-L',9,4),('WMGD204L-TSP00-L',9,19),('WMGD23BL-CPN00-L',9,5),('WMGD23DL-CPNFD-L',9,5),('WMGD23ER-CPNIZ-L',9,5),('WMGD23FR-CPPIZ-L',9,5),('WMGD317R-CPNMB-L',9,2),('WMGD31EL-CPNM0-L',9,2),('WMGD31EL-CPNMB-L',9,2),('WMGD31IR-SPNIZ-L',9,17),('WMGD78DD-CPP00-L',9,20),('WMGG275R-CPNIZ-L',9,17),('WMGG47DL-CPN00-L',9,21),('WMGG47DL-CPNTY-L',9,22),('WMGG48DL-CPN00-L',9,23),('WMGG48EL-CPNTY-L',9,24),('WMGG49EL-CPN00-L',9,25),('WMGG65DE-CPP00-L',9,26),('WMGG65FR-CPPFD-L',9,26),('WMGG94DL-TSP00-L',9,27),('WMGL23DL-CPN00-LX',9,5),('WMGL23DL-CPNM0-L',9,5),('WMGL23DL-CPNMB-L',9,5),('WMGL23DR-CPN00-LX',9,28),('WMGL26DL-CPN00-LX',9,1),('WMGL26DR-CPN00-LX',9,29),('WMGL31DL-CPN00-LX',9,2),('WMGL31DL-CPNIZ-L',9,2),('WMGL31DR-CPN00-LX',9,17),('WMGLN2DL-CPNTY-L',9,1),('WMGLN3EL-CPNTY-L',9,2),('WMGN44DL-CPN00-L',9,16),('WMGN44DL-CPNFD-L',9,16),('WMGN44DL-CPNHY-L',9,16),('WMGN55DL-CPN00-L',9,30),('WMGN55DR-CPN00-L',9,31),('WMGN66DL-CPN00-L',9,32),('WMGN66DL-CPNFD-L',9,32),('WMGN66DR-CPN00-L',9,33),('WMGN77DL-TSP00-L',9,34),('WMGN88DL-CPN00-L',9,35),('WMMGC2UH-SPN00-L',4,11),('WMMGC8SH-SPN00-L',4,12),('WMMGT6UH-SPN00-L',4,13),('WMMGT8SH-SPN00-L',4,14),('WMTE41CL-CPN00-L',16,38),('WMTF51CL-CPN00-L',16,39),('WMTG51CL-CPN00-L',16,40),('WMTH52CL-CPN00-L',16,41),('WMXB24EA-CPN00-LX',8,15),('WMXB24EB-CPN00-LX',8,4),('WMXB24FA-CPNSZ-L',8,15),('WMXD235L-CPNIZ-L',8,5),('WMXD23FL-CPPIZ-L',8,5),('WMXD26FL-SPNIZ-L',8,1),('WMXD31FL-CPNUM-L',8,2),('WMXD31IR-CPNFD-L',8,2),('WMXG24FI-CPNIZ-L',8,1),('WMXG24FI-CPPIZ-L',8,1),('WMXG278E-CPNFD-L',8,2),('WMXL23EL-CPN00-LX',8,5),('WMXL31EL-CPNKI-L',8,2),('WMXN87EL-CPN00-LX',8,2),('WMXX26EL-CPN00-LX',8,1),('WMXX31EL-CPN00-L',8,2),('WMXX31EL-CPN00-LX',8,2),('WMXX31ER-CPNSY-LX',8,17),('WMXY26EL-CPN00-LX',8,1),('WODD236L-CPPMB-L',9,5),('WODG247L-CPPMB-L',9,1),('WODG278L-CPPMB-L',9,2),('WODR23DI-CPNMB-L',9,5),('WODR26EL-CPNMB-L',9,1),('WODR31EL-CPNMB-L',9,2),('WOLB20DB-CPNMB-L',9,3),('WPLB24DB-CPN00-L',14,4),('WPLG24DL-CPN00-L',14,1),('WPLG27DL-CPN00-L',14,2),('WSOA465F-TSP00-L',4,5),('WSOD317M-CP403-E',4,2),('WSOD317M-CPP00-L',4,2),('WTGB20DA-CPNTY-L',9,18),('WTGB20DB-CPNTY-L',9,3),('WTGB20DL-CPNTY-L',9,18),('WTGB24DL-CPNTY-L',9,4),('WTGG47DL-CPNTY-L',9,22),('WTGG48EL-CPNTY-L',9,24),('WTGL26EL-CPNTY-LX',9,1),('WTGL26ER-CPNTY-LX',9,29),('WTGL31EL-CPNTY-LX',9,2),('WTGR23DL-CPNTY-L',9,5),('WTGR26EL-CPNTY-L',9,1),('WTGR26ER-CPNTY-L',9,29),('WTGR31EL-CPNTY-L',9,2),('WYKB20CB-CPN00-L',21,3),('WYKB20DB-CPN00-L',21,3),('WYKB24CB-CPN00-L',21,4),('WYKB24DB-CPN00-L',21,4),('WYKL26CL-CPN00-L',21,1),('WYKL26CR-CPN00-L',21,29),('WYKL26DL-CPN00-L',21,1),('WYKL26DR-CPN00-L',21,29),('WYKL31CL-CPN00-L',21,2),('WYKL31CR-CPN00-L',21,17),('WYKL31DL-CPN00-L',21,2),('WYKL31DR-CPN00-L',21,17),('WYKN44DL-CPN00-L',21,16),('WYKN55DL-CPN00-L',21,30),('WYKN66DL-CPN00-L',21,32),('WZMB31QT-CPP00-L',4,2),('WZMB31QT-CPP00-S',4,1),('WZMB31QT-CPP01-S',4,1); /*!40000 ALTER TABLE `sap_battery` ENABLE KEYS */; UNLOCK TABLES; @@ -1439,6 +1442,7 @@ CREATE TABLE `warranty` ( LOCK TABLES `warranty` WRITE; /*!40000 ALTER TABLE `warranty` DISABLE KEYS */; +INSERT INTO `warranty` VALUES (0,NULL,NULL,'WMEB24CB-CPN00-LX',NULL,'AJ34LJADR12134LKJL5','private','MGL1234','Moguri','Kupo','9221111112','active','2019-07-16 01:46:48','2018-10-01','2019-10-01',NULL,0); /*!40000 ALTER TABLE `warranty` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -1451,4 +1455,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2019-08-02 8:22:24 +-- Dump completed on 2019-08-13 3:10:12