Download tests/cases/o2c/O2C-INT-004.yaml from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 2.06 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-INT-004.yaml
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/tests/cases/o2c/O2C-INT-004.yaml
-
curl -L -o O2C-INT-004.yaml https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-INT-004.yaml
2.06 kB
| # Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod. | |
| id: O2C-INT-004 | |
| title: "Order import: duplicate source order reference is not created twice" | |
| module: O2C | |
| process: Order capture | |
| priority: P2 | |
| priority_rationale: "Duplicate orders from integrations double-ship and double-bill. I4 x C4 x U3 = 48 -> P2 (map row ORD-02 is P1, score 80).\ | |
| \ Usage placeholder drove tier: usage 2 would give P3." | |
| priority_source: case-level risk x usage (analysis/o2c-coverage-map.md §4 method) scored on what this case tests; not the row tier | |
| priority_score: | |
| impact: 4 | |
| change_likelihood: 4 | |
| usage: 3 | |
| usage_basis: ASSUMED (placeholder until Scout usage counts) | |
| risk: 16 | |
| score: 48 | |
| tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20 | |
| usage_sensitive: true | |
| map_ids: | |
| - ORD-02 | |
| - "O2C:INT-01" | |
| verification: UNVERIFIED | |
| approval_status: draft - pending consultant approval (architecture approval gate) | |
| client_questions: | |
| - O2C-Q01 | |
| - O2C-Q04 | |
| - X-Q08 | |
| - X-Q09 | |
| type: negative | |
| tags: | |
| - idempotency | |
| - integration | |
| - negative | |
| - o2c | |
| - p2 | |
| - rest | |
| roles: | |
| - integration_user | |
| preconditions: | |
| - REST integration user (DR-O2C-USR-001). | |
| data_recipes: | |
| - DR-O2C-USR-001 | |
| - DR-O2C-INT-001 | |
| - DR-O2C-CUS-001 | |
| steps: | |
| - n: 1 | |
| action: verify_api | |
| target: | |
| method: POST | |
| path: "{{env.rest_base}}/salesOrdersForOrderHub" | |
| value: "DR-O2C-INT-001.payload (SourceTransactionNumber ZZ-SRC-{{run.suffix}})" | |
| expected: "201 Created for source order ZZ-SRC-{{run.suffix}}." | |
| - n: 2 | |
| action: verify_api | |
| target: | |
| method: POST | |
| path: "{{env.rest_base}}/salesOrdersForOrderHub" | |
| value: same payload | |
| expected: "Rejected (4xx) or returns the existing order: duplicate SourceTransactionNumber not created twice." | |
| - n: 3 | |
| action: verify_api | |
| target: | |
| method: GET | |
| path: "{{env.rest_base}}/salesOrdersForOrderHub?q=SourceTransactionNumber='ZZ-SRC-{{run.suffix}}'" | |
| expected: Exactly 1 order. | |
| expected_result: Exactly 1 order. | |
| notes: | |
| - Runs against a mock prove only the mock, never Oracle Fusion. | |