-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
73 lines (62 loc) · 2.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
PROJECT = "newman-reporter-influxdb"
.PHONY: local-install
local-install:
npm uninstall -g ${PROJECT}
npm pack
npm install -g ${PROJECT}-*.tgz
test-v1:
newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv -r influxdb \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-name vijay \
--reporter-influxdb-measurement okay
test-v2:
newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv -r influxdb \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-org viz \
--reporter-influxdb-version 2 \
--reporter-influxdb-username viz \
--reporter-influxdb-password db123456 \
--reporter-influxdb-name viz \
--reporter-influxdb-measurement api_results
test-debug:
newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv -r influxdb \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-org viz \
--reporter-influxdb-version 2 \
--reporter-influxdb-username viz \
--reporter-influxdb-password db123456 \
--reporter-influxdb-name viz \
--reporter-influxdb-measurement api_results \
--reporter-influxdb-debug true
test-failed:
newman run test/failed.json -r influxdb \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-name vijay \
--reporter-influxdb-measurement okay
failed:
newman run test/failed.json -r influxdb \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-name vijay \
--reporter-influxdb-measurement okay \
--reporter-influxdb-mode udp
test-remote:
newman run test/failed.json -r influxdb \
--reporter-influxdb-server 192.168.100.40 \
--reporter-influxdb-port 8086 \
--reporter-influxdb-name failed \
--reporter-influxdb-measurement failed6
test-udp:
newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv -r influxdb \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-name vijay \
--reporter-influxdb-mode udp
bump:
npm version patch -m "Bumped to version %s"
publish:
npm publish