-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathinputs-with-cli-and-env.test.ts.snap
More file actions
178 lines (151 loc) · 7.24 KB
/
inputs-with-cli-and-env.test.ts.snap
File metadata and controls
178 lines (151 loc) · 7.24 KB
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should use inputs from CLI and env 1`] = `
"────────────────────────────────────────────────────────────────────────────────
Running workflow inputs-with-cli-and-env.yaml / get-museum-hours
✓ GET /museum-hours - step get-museum-hours
Request URL: https://redocly.com/_mock/demo/openapi/museum-api/museum-hours
Request Headers:
accept: application/json, application/problem+json
authorization: Basic Og==
Response status code: 200
Response time: <test> ms
Response Body:
[
{
"date": "2023-09-11",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-12",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-13",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-14",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-15",
"timeOpen": "10:00",
"timeClose": "16:00"
},
{
"date": "2023-09-18",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-19",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-20",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-21",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-22",
"timeOpen": "10:00",
"timeClose": "16:00"
}
]
✓ success criteria check - $statusCode == 200
✓ status code check (Response code 200 matches one of description codes: [200, 400, 404])
✓ content-type check
✓ schema check
Running child workflow for the step buy-ticket
Running workflow museum-tickets.yaml / get-museum-tickets
✓ POST /tickets - step buy-tickets
Request URL: https://redocly.com/_mock/demo/openapi/museum-api/tickets
Request Headers:
content-type: application/json
accept: application/json, application/problem+json
authorization: Basic Og==
Request Body:
{
"ticketType": "general",
"ticketDate": "2023-09-07",
"email": "todd@example.com"
}
Response status code: 201
Response time: <test> ms
Response Body:
{
"message": "Museum general entry ticket purchased",
"ticketId": "382c0820-0530-4f4b-99af-13811ad0f17a",
"ticketType": "general",
"ticketDate": "2023-09-07",
"confirmationCode": "ticket-general-e5e5c6-dce78"
}
✓ success criteria check - $statusCode == 201
✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
✓ content-type check
✓ schema check
────────────────────────────────────────────────────────────────────────────────
Running workflow inputs-with-cli-and-env.yaml / events-crud
✓ POST /special-events - step create-event
Request URL: https://redocly.com/_mock/demo/openapi/museum-api/special-events
Request Headers:
content-type: application/json
accept: application/json, application/problem+json
authorization: Basic Og==
username-token: Basic Og==
Request Body:
{
"additionalName": "John",
"additionalPassword": "password",
"additionalEnv": "Basic Og==",
"name": "Mermaid Treasure Identification and Analysis",
"location": "Under the seaaa 🦀 🎶 🌊.",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 0
}
Response status code: 201
Response time: <test> ms
Response Body:
{
"eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
"name": "Mermaid Treasure Identification and Analysis",
"location": "Under the seaaa 🦀 🎶 🌊.",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 0
}
✓ success criteria check - $statusCode == 201
✓ success criteria check - $.name == 'Mermaid Treasure Identification and Ana...
✓ status code check (Response code 201 matches one of description codes: [201, 400, 404])
✓ content-type check
✓ schema check
Summary for inputs-with-cli-and-env.yaml
Workflows: 2 passed, 2 total
Steps: 3 passed, 3 total
Checks: 13 passed, 13 total
Time: <test>ms
┌──────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┬─────────┐
│ Filename │ Workflows │ Passed │ Failed │ Warnings │ Skipped │
├──────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┼─────────┤
│ ✓ inputs-with-cli-and-env.yaml │ 2 │ 2 │ - │ - │ - │
└──────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┴─────────┘
"
`;