patchwise-agent-studio / tests /cases /o2c /O2C-INT-005.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
1.8 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-INT-005
title: Order REST API rejects invalid payloads with clear errors
module: O2C
process: Integrations / reports
priority: P3
priority_rationale: "Error contract matters to integration owners; low volume. I3 x C4 x U2 = 24 -> P3 (map row O2C:INT-01 is P1, score 80). Usage\
\ placeholder drove tier: usage 1 would give P4."
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: 3
change_likelihood: 4
usage: 2
usage_basis: ASSUMED (placeholder until Scout usage counts)
risk: 12
score: 24
tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
usage_sensitive: true
map_ids:
- "O2C:INT-01"
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- X-Q08
- X-Q09
type: negative
tags:
- integration
- negative
- o2c
- p3
- rest
roles:
- integration_user
preconditions:
- None beyond referenced data recipes.
data_recipes:
- DR-O2C-USR-001
- DR-O2C-INT-001
steps:
- n: 1
action: verify_api
target:
method: POST
path: "{{env.rest_base}}/salesOrdersForOrderHub"
value: DR-O2C-INT-001.payload without BuyingPartyId
expected: 4xx with a field-level error for missing BuyingPartyId; no order created.
- n: 2
action: verify_api
target:
method: POST
path: "{{env.rest_base}}/salesOrdersForOrderHub"
value: DR-O2C-INT-001.payload with item ZZ-NOITEM
expected: 4xx for unknown item ZZ-NOITEM; no order created.
expected_result: 4xx for unknown item ZZ-NOITEM; no order created.
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.