|
16 | 16 | "statusCode": 200,
|
17 | 17 | "body": {
|
18 | 18 | "userId": "test_-.|@User123",
|
19 |
| - "email": null, |
20 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 19 | + "email": null |
21 | 20 | }
|
22 | 21 | }
|
23 | 22 | },
|
|
34 | 33 | "statusCode": 200,
|
35 | 34 | "body": {
|
36 | 35 | "userId": "4444444444444",
|
37 |
| - "email": null, |
38 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 36 | + "email": null |
39 | 37 | }
|
40 | 38 | }
|
41 | 39 | },
|
|
53 | 51 | "statusCode": 200,
|
54 | 52 | "body": {
|
55 | 53 | "userId": "5555555555555",
|
56 |
| - |
57 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 54 | + |
58 | 55 | }
|
59 | 56 | }
|
60 | 57 | },
|
|
69 | 66 | "statusCode": 200,
|
70 | 67 | "body": {
|
71 | 68 | "userId": "{{ createUserWithGeneratedIdNoEmail.userId }}",
|
72 |
| - "email": null, |
73 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 69 | + "email": null |
74 | 70 | }
|
75 | 71 | }
|
76 | 72 | },
|
|
87 | 83 | "statusCode": 200,
|
88 | 84 | "body": {
|
89 | 85 | "userId": "{{ createUserWithGeneratedIdAndEmail.userId }}",
|
90 |
| - |
91 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 86 | + |
| 87 | + } |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "name": "createUserWithNonEmail", |
| 92 | + "request": { |
| 93 | + "method": "POST", |
| 94 | + "url": "/v1/users", |
| 95 | + "body": { |
| 96 | + "email": "not-an-email" |
| 97 | + } |
| 98 | + }, |
| 99 | + "expectedResponse": { |
| 100 | + "statusCode": 200, |
| 101 | + "body": { |
| 102 | + "userId": "{{ createUserWithNonEmail.userId }}", |
| 103 | + "email": "not-an-email" |
92 | 104 | }
|
93 | 105 | }
|
94 | 106 | },
|
|
101 | 113 | "expectedResponse": {
|
102 | 114 | "statusCode": 200,
|
103 | 115 | "body": [
|
| 116 | + { |
| 117 | + "userId": "{{ createUserWithNonEmail.userId }}", |
| 118 | + "email": "not-an-email" |
| 119 | + }, |
104 | 120 | {
|
105 | 121 | "userId": "{{ createUserWithGeneratedIdAndEmail.userId }}",
|
106 |
| - |
107 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 122 | + |
108 | 123 | },
|
109 | 124 | {
|
110 | 125 | "userId": "{{ createUserWithGeneratedIdNoEmail.userId }}",
|
111 |
| - "email": null, |
112 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 126 | + "email": null |
113 | 127 | },
|
114 | 128 | {
|
115 | 129 | "userId": "5555555555555",
|
116 |
| - |
117 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 130 | + |
118 | 131 | },
|
119 | 132 | {
|
120 | 133 | "userId": "4444444444444",
|
121 |
| - "email": null, |
122 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 134 | + "email": null |
123 | 135 | },
|
124 | 136 | {
|
125 | 137 | "userId": "test_-.|@User123",
|
126 |
| - "email": null, |
127 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 138 | + "email": null |
128 | 139 | }
|
129 | 140 | ]
|
130 | 141 | }
|
|
139 | 150 | "statusCode": 200,
|
140 | 151 | "body": {
|
141 | 152 | "userId": "{{ createUserWithGeneratedIdNoEmail.userId }}",
|
142 |
| - "email": null, |
143 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 153 | + "email": null |
144 | 154 | }
|
145 | 155 | }
|
146 | 156 | },
|
|
157 | 167 | "statusCode": 200,
|
158 | 168 | "body": {
|
159 | 169 | "userId": "{{ createUserWithGeneratedIdNoEmail.userId }}",
|
160 |
| - |
161 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 170 | + |
162 | 171 | }
|
163 | 172 | }
|
164 | 173 | },
|
|
172 | 181 | "statusCode": 200,
|
173 | 182 | "body": {
|
174 | 183 | "userId": "{{ createUserWithGeneratedIdNoEmail.userId }}",
|
175 |
| - |
176 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 184 | + |
177 | 185 | }
|
178 | 186 | }
|
179 | 187 | },
|
|
191 | 199 | "statusCode": 200,
|
192 | 200 | "body": {
|
193 | 201 | "userId": "{{ createUserWithGeneratedIdNoEmail.userId }}",
|
194 |
| - |
195 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 202 | + |
196 | 203 | }
|
197 | 204 | }
|
198 | 205 | },
|
|
234 | 241 | }
|
235 | 242 | },
|
236 | 243 | {
|
237 |
| - "name": "failToCreateAUserWithInvalidEmail", |
| 244 | + "name": "deleteUserWithNonEmail", |
238 | 245 | "request": {
|
239 |
| - "method": "POST", |
240 |
| - "url": "/v1/users", |
241 |
| - "body": { |
242 |
| - "userId": "invalid-email", |
243 |
| - "email": "invalid-email" |
244 |
| - } |
| 246 | + "method": "DELETE", |
| 247 | + "url": "/v1/users/{{ createUserWithNonEmail.userId }}" |
245 | 248 | },
|
246 | 249 | "expectedResponse": {
|
247 |
| - "statusCode": 400, |
248 |
| - "body": { |
249 |
| - "code": "invalid_parameter", |
250 |
| - "message": "must be a valid email", |
251 |
| - "parameter": "email" |
252 |
| - } |
| 250 | + "statusCode": 200 |
253 | 251 | }
|
254 | 252 | },
|
255 | 253 | {
|
|
305 | 303 | "statusCode": 200,
|
306 | 304 | "body": {
|
307 | 305 | "userId": "4444444444444",
|
308 |
| - "email": null, |
309 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 306 | + "email": null |
310 | 307 | }
|
311 | 308 | }
|
312 | 309 | },
|
|
320 | 317 | "statusCode": 200,
|
321 | 318 | "body": {
|
322 | 319 | "userId": "4444444444444",
|
323 |
| - "email": null, |
324 |
| - "createdAt": "2022-09-30T17:04:20Z" |
| 320 | + "email": null |
325 | 321 | }
|
326 | 322 | }
|
327 | 323 | },
|
|
0 commit comments