Commit 61dddb1
committed
feat: add conformance test for 'requires_escalation' via risk signals
Why:
- To verify that the server correctly implements the 'requires_escalation' status when risk checks fail during completion.
- Ensures conformance with the checkout status lifecycle.
What:
- Added 'test_escalation_flow' to 'CheckoutLifecycleTest'.
- Triggers escalation by sending 'simulation_trigger': 'escalation_required' in 'risk_signals' during 'complete_checkout'.
- Asserts that status becomes 'requires_escalation' and 'continue_url' is present.1 parent 0905946 commit 61dddb1
1 file changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
416 | 456 | | |
417 | 457 | | |
418 | 458 | | |
0 commit comments