-
Notifications
You must be signed in to change notification settings - Fork 0
/
workflow.stepci.yml
138 lines (128 loc) · 3.31 KB
/
workflow.stepci.yml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: "1.1"
name: Status Check
env:
host: localhost:3000
tests:
hello:
steps:
- name: GET request
http:
url: http://${{env.host}}/test/hello
method: GET
check:
status: 200
json:
output:
- Hello_from_embedded!
notfound:
steps:
- name: GET request
http:
url: http://${{env.host}}/notfound
method: GET
check:
status: 404
body: 404 page not found
broken:
steps:
- name: GET /broken
http:
url: http://${{env.host}}/test/broken
method: GET
check:
status: 500
body:
- match: .*ZenroomError.*
- name: POST /broken no body
http:
url: http://${{env.host}}/test/broken
method: POST
headers:
Content-Type: application/json
json: {}
check:
status: 500
body:
- match: .*ZenroomError.*
introspection-schema-validation:
steps:
- name: introspection no data
http:
url: http://${{env.host}}/test/introspection
method: POST
headers:
Content-Type: application/json
json: {}
check:
status: 500
body:
- match: ".*missing properties: '(integer|love)', '(integer|love).*"
- name: introspection invalid data
http:
url: http://${{env.host}}/test/introspection
method: POST
headers:
Content-Type: application/json
json:
bad: 1
check:
status: 500
body:
- match: ".*missing properties: '(integer|love)', '(integer|love)'.*"
- name: introspection valid data
http:
url: http://${{env.host}}/test/introspection
method: POST
headers:
Content-Type: application/json
json:
love: 'you'
integer: 4
check:
status: 200
json:
love: you
integer: 4
metadata-json-schema:
steps:
- name: json-schema invalid data
http:
url: http://${{env.host}}/test/withschema
method: POST
headers:
Content-Type: application/json
json:
love:
wrong: 'broken'
check:
status: 500
body:
- match: ".*missing properties: '(sole|male)', '(sole|male)'.*"
- name: json-schema valid but wrong data
http:
url: http://${{env.host}}/test/withschema
method: POST
headers:
Content-Type: application/json
json:
wrong: 'broken'
check:
status: 500
body:
- match: ".*missing properties: 'love'.*"
- name: json-schema valid data
http:
url: http://${{env.host}}/test/withschema
method: POST
headers:
Content-Type: application/json
json:
love:
male: 'ok'
sole: 'ok'
check:
status: 200
json:
love:
male: 'ok'
sole: 'ok'