Skip to content

Commit 47bd9b5

Browse files
committed
Add Postman collection file for Jenkins
1 parent cdb9a32 commit 47bd9b5

File tree

1 file changed

+176
-0
lines changed

1 file changed

+176
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"info": {
3+
"_postman_id": "a0b246f2-75bd-4b9d-9dec-8c41eccbe97f",
4+
"name": "Jenkins Collection",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "POST /model",
10+
"event": [
11+
{
12+
"listen": "test",
13+
"script": {
14+
"id": "d6e88bf6-8398-4a0d-8e5a-46de3ef71e56",
15+
"type": "text/javascript",
16+
"exec": [
17+
"pm.test(\"Status code is 200\", function () {",
18+
" pm.response.to.have.status(200);",
19+
"});",
20+
"",
21+
"",
22+
"var schema = {",
23+
" \"properties\": {",
24+
" \"people\": {",
25+
" \"type\": \"array\"",
26+
" }",
27+
" }",
28+
"};",
29+
"",
30+
"var data1 = [true, false];",
31+
"var data2 = [true, 123];",
32+
"",
33+
"pm.test('Schema is valid', function() {",
34+
" pm.expect(tv4.validate(data1, schema)).to.be.true;",
35+
" pm.expect(tv4.validate(data2, schema)).to.be.true;",
36+
"});"
37+
]
38+
}
39+
}
40+
],
41+
"request": {
42+
"method": "POST",
43+
"header": [],
44+
"body": {
45+
"mode": "formdata",
46+
"formdata": [
47+
{
48+
"key": "model",
49+
"value": "",
50+
"description": "",
51+
"type": "file"
52+
}
53+
]
54+
},
55+
"url": "http://ec2-34-248-183-236.eu-west-1.compute.amazonaws.com:8000/model"
56+
},
57+
"response": []
58+
},
59+
{
60+
"name": "GET /model",
61+
"event": [
62+
{
63+
"listen": "test",
64+
"script": {
65+
"id": "8e8f2103-b935-492d-bb76-ea28b21f831d",
66+
"type": "text/javascript",
67+
"exec": [
68+
"pm.test(\"Status code is 200\", function () {",
69+
" pm.response.to.have.status(200);",
70+
"});",
71+
"",
72+
"",
73+
"",
74+
"var schema = {",
75+
" \"type\": \"array\"",
76+
"}",
77+
"",
78+
"var data1 = [true, false];",
79+
"var data2 = [true, 123];",
80+
"",
81+
"pm.test('Schema is valid', function() {",
82+
" pm.expect(tv4.validate(data1, schema)).to.be.true;",
83+
" pm.expect(tv4.validate(data2, schema)).to.be.true;",
84+
"});"
85+
]
86+
}
87+
}
88+
],
89+
"request": {
90+
"method": "GET",
91+
"header": [],
92+
"body": {
93+
"mode": "formdata",
94+
"formdata": [
95+
{
96+
"key": "model",
97+
"value": "",
98+
"description": "",
99+
"type": "file"
100+
}
101+
]
102+
},
103+
"url": "http://ec2-34-248-183-236.eu-west-1.compute.amazonaws.com:8000/model"
104+
},
105+
"response": []
106+
},
107+
{
108+
"name": "GET /configure",
109+
"event": [
110+
{
111+
"listen": "test",
112+
"script": {
113+
"id": "af14ddd4-dec1-4aa3-9953-d453e80c5580",
114+
"type": "text/javascript",
115+
"exec": [
116+
"pm.test(\"Status code is 200\", function () {",
117+
" pm.response.to.have.status(200);",
118+
"});",
119+
""
120+
]
121+
}
122+
}
123+
],
124+
"request": {
125+
"method": "GET",
126+
"header": [],
127+
"body": {
128+
"mode": "formdata",
129+
"formdata": [
130+
{
131+
"key": "model",
132+
"value": "",
133+
"description": "",
134+
"type": "file"
135+
}
136+
]
137+
},
138+
"url": "http://ec2-34-248-183-236.eu-west-1.compute.amazonaws.com:8000/configure"
139+
},
140+
"response": []
141+
},
142+
{
143+
"name": "POST /annotate",
144+
"event": [
145+
{
146+
"listen": "test",
147+
"script": {
148+
"id": "af14ddd4-dec1-4aa3-9953-d453e80c5580",
149+
"type": "text/javascript",
150+
"exec": [
151+
"pm.test(\"Status code is 200\", function () {",
152+
" pm.response.to.have.status(200);",
153+
"});",
154+
""
155+
]
156+
}
157+
}
158+
],
159+
"request": {
160+
"method": "POST",
161+
"header": [
162+
{
163+
"key": "Content-Type",
164+
"value": "application/json"
165+
}
166+
],
167+
"body": {
168+
"mode": "raw",
169+
"raw": "{ \"content\": \n\t{ \"path\": \" http://ec2-34-248-183-236.eu-west-1.compute.amazonaws.com:8080/nuxeo/nxfile/default/32b14b1e-79d8-42ad-b642-096320176321/file:content/3092\", \n\t \"uid\": \"32b14b1e-79d8-42ad-b642-096320176321\"\n\t} \n\t\n}"
170+
},
171+
"url": "http://ec2-34-248-183-236.eu-west-1.compute.amazonaws.com:8000/annotate"
172+
},
173+
"response": []
174+
}
175+
]
176+
}

0 commit comments

Comments
 (0)