Download tests/cases/o2c/O2C-INT-001.yaml from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 2.45 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-INT-001.yaml
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/tests/cases/o2c/O2C-INT-001.yaml
-
curl -L -o O2C-INT-001.yaml https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-INT-001.yaml
2.45 kB
| # Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod. | |
| id: O2C-INT-001 | |
| title: "REST: create and submit a sales order from an external source" | |
| module: O2C | |
| process: Order capture | |
| priority: P1 | |
| priority_rationale: "External order import channel (map ORD-02). I5 x C4 x U4 = 80 -> P1 (map row ORD-02 is P1, score 80). Usage placeholder drove\ | |
| \ tier: usage 3 would give P2." | |
| 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: 5 | |
| change_likelihood: 4 | |
| usage: 4 | |
| usage_basis: ASSUMED (placeholder until Scout usage counts) | |
| risk: 20 | |
| score: 80 | |
| 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: happy | |
| tags: | |
| - integration | |
| - o2c | |
| - order-management | |
| - p1 | |
| - rest | |
| roles: | |
| - integration_user | |
| preconditions: | |
| - None beyond referenced data recipes. | |
| data_recipes: | |
| - DR-O2C-USR-001 | |
| - DR-O2C-CUS-001 | |
| - DR-O2C-ITM-001 | |
| - DR-O2C-PRC-001 | |
| test_values: | |
| qty: 5 | |
| unit_selling_price: 108.0 | |
| line_amount: 540.0 | |
| steps: | |
| - n: 1 | |
| action: verify_api | |
| target: | |
| method: POST | |
| path: "{{env.rest_base}}/salesOrdersForOrderHub" | |
| value: | |
| SourceTransactionNumber: "ZZ-SRC-{{run.suffix}}" | |
| SourceTransactionSystem: "{{data.order_source_system}}" | |
| BusinessUnitName: "{{org.o2c_bu}}" | |
| BuyingPartyName: "{{data.customer_name}}" | |
| SubmittedFlag: true | |
| lines: | |
| - SourceTransactionLineNumber: '1' | |
| ProductNumber: "{{data.o2c_item}}" | |
| OrderedQuantity: 5 | |
| OrderedUOM: "{{data.o2c_uom}}" | |
| expected: "201; order created with SourceTransactionNumber ZZ-SRC-{{run.suffix}}; capture {{run.order_number}}." | |
| - n: 2 | |
| action: verify_api | |
| target: | |
| method: GET | |
| path: "{{env.rest_base}}/salesOrdersForOrderHub?q=SourceTransactionNumber='ZZ-SRC-{{run.suffix}}'&expand=lines" | |
| expected: Order submitted; line UnitSellingPrice 108.00, ExtendedAmount 540.00. | |
| expected_result: Order submitted; line UnitSellingPrice 108.00, ExtendedAmount 540.00. | |
| notes: | |
| - "Usage ASSUMED: which external channels exist is POD-REQUIRED. Resource and field names UNVERIFIED." | |
| - Runs against a mock prove only the mock, never Oracle Fusion. | |