-
Notifications
You must be signed in to change notification settings - Fork 6
/
smoke_test.yaml
186 lines (137 loc) · 3.5 KB
/
smoke_test.yaml
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
---
globals:
token: token123
contracts:
- name: httpbin
path: "/"
method: GET
http_code_is: 200
- name: httpbin_status_code_check
path: "/status/418"
method: GET
http_code_is: 418
- name: httpbin_get_body
path: "/get?foo=hello!"
method: GET
response_body_contains: hello
- name: httpbin_get_body_with_global_variable
path: "/get?foo=::token::&bar=1"
method: GET
response_body_contains: token123
- name: httpbin_get_body_with_local_variable
path: "/get?foo=::token::&bar=1"
method: GET
locals:
token: token456
response_body_contains: token456
- name: httpbin_get_body_with_environment_variable
path: "/get?foo=::envtoken::&bar=1"
method: GET
response_body_contains: token235
- name: httpbin_post_body
path: "/post"
method: POST
body: hello!
response_body_contains: hello
- name: httpbin_post_body_with_global_variable
path: "/post"
method: POST
body: 'this is a test ::token::'
response_body_contains: token123
- name: httpbin_post_body_with_local_variable
path: "/post"
method: POST
body: 'this is a test ::token::'
locals:
token: token456
response_body_contains: token456
- name: httpbin_post_body_with_environment_variable
path: "/post"
method: POST
body: 'this is a test ::envtoken::'
response_body_contains: token235
- name: httpbin_headers
path: "/headers"
method: GET
headers:
test_header: test_value
response_body_contains: test_value
- name: httpbin_headers_with_global_variable
path: "/headers"
method: GET
headers:
test_header: "::token::"
response_body_contains: token123
- name: httpbin_headers_with_local_variable
path: "/headers"
method: GET
headers:
test_header: "::token::"
locals:
token: token456
response_body_contains: token456
- name: httpbin_headers_with_environment_variable
path: "/headers"
method: GET
headers:
test_header: "::envtoken::"
response_body_contains: token235
- name: httpbin_redirect
path: "/redirect/1"
method: GET
http_code_is: 302
- name: httpbin_set_output_variable
path: "/get?params=foo"
method: GET
outputs:
test_output_variable: "JSON.args.params"
http_code_is: 200
- name: httpbin_verify_output_variable
path: "/get?params=::test_output_variable::"
method: GET
http_code_is: 200
response_body_contains: "foo"
- name: httpbin_set_array_output_variable
path: "/get?params=foo¶ms=bar"
method: GET
outputs:
test_output_variable: "JSON.args.params[1]"
- name: httpbin_verify_output_array_variable
path: "/get?params=::test_output_variable::"
method: GET
http_code_is: 200
response_body_contains: "bar"
- name: httpbin_get_body_regexp
path: "/get?foo=12345!"
method: GET
response_body_contains: "r/[1-5]{5}"
- name: httpbin_get_body_regexp_not_compiling
path: "/get?foo=r/[1-a{5}!"
method: GET
response_body_contains: "r/[1-a{5}"
- name: httpbin_verify_response_header
path: "/response-headers?My-Header=found"
method: GET
response_headers_contain:
My-Header: "found"
- name: httpbin_verify_many_response_header
path: "/response-headers?My-Header=found&My-Header2=notImportant&My-Header3=12345!"
method: GET
response_headers_contain:
My-Header: "found"
My-Header2: ""
My-Header3: "r/[1-5]{5}"
- name: httpbin_get_body_multiple
path: "/get?foo=hello!"
method: GET
response_body_contains: hello
response_contains:
- foo
- !
- name: httpbin_get_response_multiple
path: "/get?foo=hello!"
method: GET
response_contains:
- hello
- foo
- !