@firedrill-tools/stripe 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +433 -0
- package/firedrill/agent.target.json +17 -0
- package/firedrill/api-unavailable.scenario.json +11 -0
- package/firedrill/baseline.scenario.json +5 -0
- package/firedrill/conformance.suite.json +17 -0
- package/firedrill/rate-limited.scenario.json +11 -0
- package/firedrill/refund-committed-lost.scenario.json +11 -0
- package/firedrill/stripe-api-unavailable.drill.json +463 -0
- package/firedrill/stripe-denied.drill.json +74 -0
- package/firedrill/stripe-large-pages.drill.json +153 -0
- package/firedrill/stripe-live-mode.drill.json +136 -0
- package/firedrill/stripe-mcp-aliases.drill.json +406 -0
- package/firedrill/stripe-no-permissions.drill.json +1143 -0
- package/firedrill/stripe-rate-limited.drill.json +616 -0
- package/firedrill/stripe-refund-committed-lost.drill.json +139 -0
- package/firedrill/stripe-rest-flow.drill.json +1401 -0
- package/firedrill/stripe-restricted-key.drill.json +171 -0
- package/firedrill/tools/stripe/app/assets/ATTRIBUTION.md +36 -0
- package/firedrill/tools/stripe/app/assets/fonts/OFL.txt +93 -0
- package/firedrill/tools/stripe/app/assets/stripe-s.svg +1 -0
- package/firedrill/tools/stripe/app/assets/stripe.svg +1 -0
- package/firedrill/tools/stripe/app/site/app.js +456 -0
- package/firedrill/tools/stripe/app/site/assets/fonts/inter-latin.woff2 +0 -0
- package/firedrill/tools/stripe/app/site/assets/stripe-s.svg +1 -0
- package/firedrill/tools/stripe/app/site/assets/stripe.svg +1 -0
- package/firedrill/tools/stripe/app/site/icons.js +90 -0
- package/firedrill/tools/stripe/app/site/index.html +137 -0
- package/firedrill/tools/stripe/app/site/pages-billing.js +902 -0
- package/firedrill/tools/stripe/app/site/pages-catalog.js +314 -0
- package/firedrill/tools/stripe/app/site/pages-customers.js +416 -0
- package/firedrill/tools/stripe/app/site/pages-home.js +373 -0
- package/firedrill/tools/stripe/app/site/pages-payments.js +502 -0
- package/firedrill/tools/stripe/app/site/store.js +99 -0
- package/firedrill/tools/stripe/app/site/styles.css +2512 -0
- package/firedrill/tools/stripe/app/site/ui.js +767 -0
- package/firedrill/tools/stripe/app/site/widgets.js +707 -0
- package/firedrill/tools/stripe/behavior.mjs +148 -0
- package/firedrill/tools/stripe/lib/cards.mjs +53 -0
- package/firedrill/tools/stripe/lib/form.mjs +204 -0
- package/firedrill/tools/stripe/lib/ids.mjs +85 -0
- package/firedrill/tools/stripe/lib/money.mjs +35 -0
- package/firedrill/tools/stripe/lib/objects.mjs +229 -0
- package/firedrill/tools/stripe/lib/periods.mjs +41 -0
- package/firedrill/tools/stripe/lib/size.mjs +55 -0
- package/firedrill/tools/stripe/lib/state.mjs +230 -0
- package/firedrill/tools/stripe/lib/validate.mjs +184 -0
- package/firedrill/tools/stripe/lib/wire.mjs +98 -0
- package/firedrill/tools/stripe/ops/billing.mjs +914 -0
- package/firedrill/tools/stripe/ops/catalog.mjs +203 -0
- package/firedrill/tools/stripe/ops/customers.mjs +241 -0
- package/firedrill/tools/stripe/ops/dashboard.mjs +29 -0
- package/firedrill/tools/stripe/ops/payments.mjs +608 -0
- package/firedrill/tools/stripe/stripe.tool.json +28833 -0
- package/firedrill/world.json +8527 -0
- package/firedrill.json +5 -0
- package/package.json +64 -0
- package/starter.json +7999 -0
- package/test/conformance.mjs +1133 -0
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "stripe-api-unavailable",
|
|
4
|
+
"title": "Writes answer HTTP 503 api_error and leave state untouched while reads keep working",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "api-unavailable",
|
|
7
|
+
"actorId": "owner",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the api-unavailable conformance flow against the synthetic Stripe Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "customers-create-error",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "stripe",
|
|
17
|
+
"operationId": "customers.create"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"tool_error"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "equals",
|
|
24
|
+
"value": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "customers-update-error",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "stripe",
|
|
32
|
+
"operationId": "customers.update"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"tool_error"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "equals",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "invoice-items-create-error",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "stripe",
|
|
47
|
+
"operationId": "invoice_items.create"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"tool_error"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "equals",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "invoices-create-error",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "stripe",
|
|
62
|
+
"operationId": "invoices.create"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"tool_error"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "equals",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "invoices-finalize-error",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "stripe",
|
|
77
|
+
"operationId": "invoices.finalize"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"tool_error"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "equals",
|
|
84
|
+
"value": 1
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "invoices-pay-error",
|
|
89
|
+
"kind": "operation.count",
|
|
90
|
+
"operation": {
|
|
91
|
+
"packageId": "stripe",
|
|
92
|
+
"operationId": "invoices.pay"
|
|
93
|
+
},
|
|
94
|
+
"outcomes": [
|
|
95
|
+
"tool_error"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "equals",
|
|
99
|
+
"value": 1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "invoices-void-error",
|
|
104
|
+
"kind": "operation.count",
|
|
105
|
+
"operation": {
|
|
106
|
+
"packageId": "stripe",
|
|
107
|
+
"operationId": "invoices.void"
|
|
108
|
+
},
|
|
109
|
+
"outcomes": [
|
|
110
|
+
"tool_error"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "equals",
|
|
114
|
+
"value": 1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "payment-intents-cancel-error",
|
|
119
|
+
"kind": "operation.count",
|
|
120
|
+
"operation": {
|
|
121
|
+
"packageId": "stripe",
|
|
122
|
+
"operationId": "payment_intents.cancel"
|
|
123
|
+
},
|
|
124
|
+
"outcomes": [
|
|
125
|
+
"tool_error"
|
|
126
|
+
],
|
|
127
|
+
"comparison": {
|
|
128
|
+
"operator": "equals",
|
|
129
|
+
"value": 1
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "payment-intents-capture-error",
|
|
134
|
+
"kind": "operation.count",
|
|
135
|
+
"operation": {
|
|
136
|
+
"packageId": "stripe",
|
|
137
|
+
"operationId": "payment_intents.capture"
|
|
138
|
+
},
|
|
139
|
+
"outcomes": [
|
|
140
|
+
"tool_error"
|
|
141
|
+
],
|
|
142
|
+
"comparison": {
|
|
143
|
+
"operator": "equals",
|
|
144
|
+
"value": 1
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "payment-intents-confirm-error",
|
|
149
|
+
"kind": "operation.count",
|
|
150
|
+
"operation": {
|
|
151
|
+
"packageId": "stripe",
|
|
152
|
+
"operationId": "payment_intents.confirm"
|
|
153
|
+
},
|
|
154
|
+
"outcomes": [
|
|
155
|
+
"tool_error"
|
|
156
|
+
],
|
|
157
|
+
"comparison": {
|
|
158
|
+
"operator": "equals",
|
|
159
|
+
"value": 1
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "payment-intents-create-error",
|
|
164
|
+
"kind": "operation.count",
|
|
165
|
+
"operation": {
|
|
166
|
+
"packageId": "stripe",
|
|
167
|
+
"operationId": "payment_intents.create"
|
|
168
|
+
},
|
|
169
|
+
"outcomes": [
|
|
170
|
+
"tool_error"
|
|
171
|
+
],
|
|
172
|
+
"comparison": {
|
|
173
|
+
"operator": "equals",
|
|
174
|
+
"value": 1
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "payment-methods-attach-error",
|
|
179
|
+
"kind": "operation.count",
|
|
180
|
+
"operation": {
|
|
181
|
+
"packageId": "stripe",
|
|
182
|
+
"operationId": "payment_methods.attach"
|
|
183
|
+
},
|
|
184
|
+
"outcomes": [
|
|
185
|
+
"tool_error"
|
|
186
|
+
],
|
|
187
|
+
"comparison": {
|
|
188
|
+
"operator": "equals",
|
|
189
|
+
"value": 1
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "payment-methods-detach-error",
|
|
194
|
+
"kind": "operation.count",
|
|
195
|
+
"operation": {
|
|
196
|
+
"packageId": "stripe",
|
|
197
|
+
"operationId": "payment_methods.detach"
|
|
198
|
+
},
|
|
199
|
+
"outcomes": [
|
|
200
|
+
"tool_error"
|
|
201
|
+
],
|
|
202
|
+
"comparison": {
|
|
203
|
+
"operator": "equals",
|
|
204
|
+
"value": 1
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "prices-create-error",
|
|
209
|
+
"kind": "operation.count",
|
|
210
|
+
"operation": {
|
|
211
|
+
"packageId": "stripe",
|
|
212
|
+
"operationId": "prices.create"
|
|
213
|
+
},
|
|
214
|
+
"outcomes": [
|
|
215
|
+
"tool_error"
|
|
216
|
+
],
|
|
217
|
+
"comparison": {
|
|
218
|
+
"operator": "equals",
|
|
219
|
+
"value": 1
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "products-create-error",
|
|
224
|
+
"kind": "operation.count",
|
|
225
|
+
"operation": {
|
|
226
|
+
"packageId": "stripe",
|
|
227
|
+
"operationId": "products.create"
|
|
228
|
+
},
|
|
229
|
+
"outcomes": [
|
|
230
|
+
"tool_error"
|
|
231
|
+
],
|
|
232
|
+
"comparison": {
|
|
233
|
+
"operator": "equals",
|
|
234
|
+
"value": 1
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "products-update-error",
|
|
239
|
+
"kind": "operation.count",
|
|
240
|
+
"operation": {
|
|
241
|
+
"packageId": "stripe",
|
|
242
|
+
"operationId": "products.update"
|
|
243
|
+
},
|
|
244
|
+
"outcomes": [
|
|
245
|
+
"tool_error"
|
|
246
|
+
],
|
|
247
|
+
"comparison": {
|
|
248
|
+
"operator": "equals",
|
|
249
|
+
"value": 1
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "refunds-create-error",
|
|
254
|
+
"kind": "operation.count",
|
|
255
|
+
"operation": {
|
|
256
|
+
"packageId": "stripe",
|
|
257
|
+
"operationId": "refunds.create"
|
|
258
|
+
},
|
|
259
|
+
"outcomes": [
|
|
260
|
+
"tool_error"
|
|
261
|
+
],
|
|
262
|
+
"comparison": {
|
|
263
|
+
"operator": "equals",
|
|
264
|
+
"value": 1
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "subscriptions-cancel-error",
|
|
269
|
+
"kind": "operation.count",
|
|
270
|
+
"operation": {
|
|
271
|
+
"packageId": "stripe",
|
|
272
|
+
"operationId": "subscriptions.cancel"
|
|
273
|
+
},
|
|
274
|
+
"outcomes": [
|
|
275
|
+
"tool_error"
|
|
276
|
+
],
|
|
277
|
+
"comparison": {
|
|
278
|
+
"operator": "equals",
|
|
279
|
+
"value": 1
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "subscriptions-create-error",
|
|
284
|
+
"kind": "operation.count",
|
|
285
|
+
"operation": {
|
|
286
|
+
"packageId": "stripe",
|
|
287
|
+
"operationId": "subscriptions.create"
|
|
288
|
+
},
|
|
289
|
+
"outcomes": [
|
|
290
|
+
"tool_error"
|
|
291
|
+
],
|
|
292
|
+
"comparison": {
|
|
293
|
+
"operator": "equals",
|
|
294
|
+
"value": 1
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "subscriptions-update-error",
|
|
299
|
+
"kind": "operation.count",
|
|
300
|
+
"operation": {
|
|
301
|
+
"packageId": "stripe",
|
|
302
|
+
"operationId": "subscriptions.update"
|
|
303
|
+
},
|
|
304
|
+
"outcomes": [
|
|
305
|
+
"tool_error"
|
|
306
|
+
],
|
|
307
|
+
"comparison": {
|
|
308
|
+
"operator": "equals",
|
|
309
|
+
"value": 1
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "customers-list-ok",
|
|
314
|
+
"kind": "operation.count",
|
|
315
|
+
"operation": {
|
|
316
|
+
"packageId": "stripe",
|
|
317
|
+
"operationId": "customers.list"
|
|
318
|
+
},
|
|
319
|
+
"outcomes": [
|
|
320
|
+
"ok"
|
|
321
|
+
],
|
|
322
|
+
"comparison": {
|
|
323
|
+
"operator": "greater_than_or_equal",
|
|
324
|
+
"value": 1
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"id": "balance-retrieve-ok",
|
|
329
|
+
"kind": "operation.count",
|
|
330
|
+
"operation": {
|
|
331
|
+
"packageId": "stripe",
|
|
332
|
+
"operationId": "balance.retrieve"
|
|
333
|
+
},
|
|
334
|
+
"outcomes": [
|
|
335
|
+
"ok"
|
|
336
|
+
],
|
|
337
|
+
"comparison": {
|
|
338
|
+
"operator": "greater_than_or_equal",
|
|
339
|
+
"value": 1
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "invoices-retrieve-ok",
|
|
344
|
+
"kind": "operation.count",
|
|
345
|
+
"operation": {
|
|
346
|
+
"packageId": "stripe",
|
|
347
|
+
"operationId": "invoices.retrieve"
|
|
348
|
+
},
|
|
349
|
+
"outcomes": [
|
|
350
|
+
"ok"
|
|
351
|
+
],
|
|
352
|
+
"comparison": {
|
|
353
|
+
"operator": "greater_than_or_equal",
|
|
354
|
+
"value": 1
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"id": "customers-count",
|
|
359
|
+
"kind": "state.count",
|
|
360
|
+
"packageId": "stripe",
|
|
361
|
+
"namespace": "customers",
|
|
362
|
+
"comparison": {
|
|
363
|
+
"operator": "equals",
|
|
364
|
+
"value": 12
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"id": "refunds-count",
|
|
369
|
+
"kind": "state.count",
|
|
370
|
+
"packageId": "stripe",
|
|
371
|
+
"namespace": "refunds",
|
|
372
|
+
"comparison": {
|
|
373
|
+
"operator": "equals",
|
|
374
|
+
"value": 4
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "subscriptions-count",
|
|
379
|
+
"kind": "state.count",
|
|
380
|
+
"packageId": "stripe",
|
|
381
|
+
"namespace": "subscriptions",
|
|
382
|
+
"comparison": {
|
|
383
|
+
"operator": "equals",
|
|
384
|
+
"value": 6
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "payment_intents-count",
|
|
389
|
+
"kind": "state.count",
|
|
390
|
+
"packageId": "stripe",
|
|
391
|
+
"namespace": "payment_intents",
|
|
392
|
+
"comparison": {
|
|
393
|
+
"operator": "equals",
|
|
394
|
+
"value": 21
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"id": "payment_intent-succeeded-events",
|
|
399
|
+
"kind": "event.count",
|
|
400
|
+
"event": {
|
|
401
|
+
"packageId": "stripe",
|
|
402
|
+
"eventId": "payment_intent.succeeded"
|
|
403
|
+
},
|
|
404
|
+
"phase": "emitted",
|
|
405
|
+
"comparison": {
|
|
406
|
+
"operator": "equals",
|
|
407
|
+
"value": 0
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "payment_intent-declined-events",
|
|
412
|
+
"kind": "event.count",
|
|
413
|
+
"event": {
|
|
414
|
+
"packageId": "stripe",
|
|
415
|
+
"eventId": "payment_intent.declined"
|
|
416
|
+
},
|
|
417
|
+
"phase": "emitted",
|
|
418
|
+
"comparison": {
|
|
419
|
+
"operator": "equals",
|
|
420
|
+
"value": 0
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"id": "invoice-paid-events",
|
|
425
|
+
"kind": "event.count",
|
|
426
|
+
"event": {
|
|
427
|
+
"packageId": "stripe",
|
|
428
|
+
"eventId": "invoice.paid"
|
|
429
|
+
},
|
|
430
|
+
"phase": "emitted",
|
|
431
|
+
"comparison": {
|
|
432
|
+
"operator": "equals",
|
|
433
|
+
"value": 0
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"id": "charge-refunded-events",
|
|
438
|
+
"kind": "event.count",
|
|
439
|
+
"event": {
|
|
440
|
+
"packageId": "stripe",
|
|
441
|
+
"eventId": "charge.refunded"
|
|
442
|
+
},
|
|
443
|
+
"phase": "emitted",
|
|
444
|
+
"comparison": {
|
|
445
|
+
"operator": "equals",
|
|
446
|
+
"value": 0
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "customer-subscription-deleted-events",
|
|
451
|
+
"kind": "event.count",
|
|
452
|
+
"event": {
|
|
453
|
+
"packageId": "stripe",
|
|
454
|
+
"eventId": "customer.subscription.deleted"
|
|
455
|
+
},
|
|
456
|
+
"phase": "emitted",
|
|
457
|
+
"comparison": {
|
|
458
|
+
"operator": "equals",
|
|
459
|
+
"value": 0
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "stripe-denied",
|
|
4
|
+
"title": "An actor without grants is denied by the framework over HTTP and MCP (Stripe-shaped 403)",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "auditor",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the denied conformance flow against the synthetic Stripe Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "balance-retrieve-denied",
|
|
14
|
+
"kind": "operation.denied",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "stripe",
|
|
17
|
+
"operationId": "balance.retrieve"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"denied"
|
|
21
|
+
],
|
|
22
|
+
"attemptRequired": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "customers-list-denied",
|
|
26
|
+
"kind": "operation.denied",
|
|
27
|
+
"operation": {
|
|
28
|
+
"packageId": "stripe",
|
|
29
|
+
"operationId": "customers.list"
|
|
30
|
+
},
|
|
31
|
+
"outcomes": [
|
|
32
|
+
"denied"
|
|
33
|
+
],
|
|
34
|
+
"attemptRequired": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "customers-create-denied",
|
|
38
|
+
"kind": "operation.denied",
|
|
39
|
+
"operation": {
|
|
40
|
+
"packageId": "stripe",
|
|
41
|
+
"operationId": "customers.create"
|
|
42
|
+
},
|
|
43
|
+
"outcomes": [
|
|
44
|
+
"denied"
|
|
45
|
+
],
|
|
46
|
+
"attemptRequired": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "customers-create-ok",
|
|
50
|
+
"kind": "operation.count",
|
|
51
|
+
"operation": {
|
|
52
|
+
"packageId": "stripe",
|
|
53
|
+
"operationId": "customers.create"
|
|
54
|
+
},
|
|
55
|
+
"outcomes": [
|
|
56
|
+
"ok"
|
|
57
|
+
],
|
|
58
|
+
"comparison": {
|
|
59
|
+
"operator": "equals",
|
|
60
|
+
"value": 0
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "customers-count",
|
|
65
|
+
"kind": "state.count",
|
|
66
|
+
"packageId": "stripe",
|
|
67
|
+
"namespace": "customers",
|
|
68
|
+
"comparison": {
|
|
69
|
+
"operator": "equals",
|
|
70
|
+
"value": 12
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "stripe-large-pages",
|
|
4
|
+
"title": "List pages are filled by encoded bytes below the 1 MiB response cap and resume exactly in both directions; oversized objects answer invalid_request_error",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "owner",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the large-pages conformance flow against the synthetic Stripe Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "customers-create-ok",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "stripe",
|
|
17
|
+
"operationId": "customers.create"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"ok"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "equals",
|
|
24
|
+
"value": 12
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "customers-list-ok",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "stripe",
|
|
32
|
+
"operationId": "customers.list"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"ok"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 10
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "payment-intents-list-ok",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "stripe",
|
|
47
|
+
"operationId": "payment_intents.list"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "greater_than_or_equal",
|
|
54
|
+
"value": 2
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "prices-list-ok",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "stripe",
|
|
62
|
+
"operationId": "prices.list"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"ok"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 2
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "refunds-list-ok",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "stripe",
|
|
77
|
+
"operationId": "refunds.list"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "greater_than_or_equal",
|
|
84
|
+
"value": 2
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "invoice-items-too-large",
|
|
89
|
+
"kind": "operation.count",
|
|
90
|
+
"operation": {
|
|
91
|
+
"packageId": "stripe",
|
|
92
|
+
"operationId": "invoice_items.create"
|
|
93
|
+
},
|
|
94
|
+
"outcomes": [
|
|
95
|
+
"tool_error"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "equals",
|
|
99
|
+
"value": 1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "invoices-retrieve-too-large",
|
|
104
|
+
"kind": "operation.count",
|
|
105
|
+
"operation": {
|
|
106
|
+
"packageId": "stripe",
|
|
107
|
+
"operationId": "invoices.retrieve"
|
|
108
|
+
},
|
|
109
|
+
"outcomes": [
|
|
110
|
+
"tool_error"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "equals",
|
|
114
|
+
"value": 1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "invoices-list-too-large",
|
|
119
|
+
"kind": "operation.count",
|
|
120
|
+
"operation": {
|
|
121
|
+
"packageId": "stripe",
|
|
122
|
+
"operationId": "invoices.list"
|
|
123
|
+
},
|
|
124
|
+
"outcomes": [
|
|
125
|
+
"tool_error"
|
|
126
|
+
],
|
|
127
|
+
"comparison": {
|
|
128
|
+
"operator": "equals",
|
|
129
|
+
"value": 1
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "customers-count",
|
|
134
|
+
"kind": "state.count",
|
|
135
|
+
"packageId": "stripe",
|
|
136
|
+
"namespace": "customers",
|
|
137
|
+
"comparison": {
|
|
138
|
+
"operator": "equals",
|
|
139
|
+
"value": 24
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "prices-count",
|
|
144
|
+
"kind": "state.count",
|
|
145
|
+
"packageId": "stripe",
|
|
146
|
+
"namespace": "prices",
|
|
147
|
+
"comparison": {
|
|
148
|
+
"operator": "equals",
|
|
149
|
+
"value": 111
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|