From acfdf05b2a89af61e835038df3208f2cfec2abac Mon Sep 17 00:00:00 2001 From: tyatsiuk <48288858+tyatsiuk@users.noreply.github.com> Date: Wed, 6 Mar 2019 19:28:39 +0200 Subject: [PATCH] add tracking request --- test/postman_collection.json | 52 ++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/test/postman_collection.json b/test/postman_collection.json index c2f8548c2..93d923b27 100644 --- a/test/postman_collection.json +++ b/test/postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "f6f55915-03c9-4758-afb2-80734c2e9e01", + "_postman_id": "632bbd85-6e5a-47f1-8fae-d2dad798f7ef", "name": "Controller Testing", "description": "iofog-controller collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" @@ -1672,6 +1672,54 @@ }, "response": [] }, + { + "name": "Tracking", + "event": [ + { + "listen": "test", + "script": { + "id": "8774bfa2-c3f6-46e1-8965-cedd4322ccf2", + "exec": [ + "tests[\"Status code is 204\"] = responseCode.code === 204;" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{agent-token}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"events\": [\n {\n \"uuid\": \"test_tracking\",\n \"sourceType\": \"agent\",\n \"timestamp\": 1551694999,\n \"type\": \"test\",\n \"data\": {\n \"event\":\"test\"\n }\n }\n ]\n}" + }, + "url": { + "raw": "{{host}}/api/v3/agent/tracking", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v3", + "agent", + "tracking" + ] + } + }, + "response": [] + }, { "name": "Delete agent node", "event": [ @@ -6017,4 +6065,4 @@ "type": "string" } ] -} \ No newline at end of file +}