patchwise-agent-studio / tests /cases /o2c /O2C-INT-002.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
3 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-INT-002
title: "REST contract: O2C resource schemas are a superset of the pre-patch baseline"
module: O2C
process: Integrations / reports
priority: P1
priority_rationale: "One contract check guards every inbound O2C REST integration. I5 x C4 x U4 = 80 -> P1 (map row O2C:INT-01 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:
- "O2C:INT-01"
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- X-Q08
- X-Q09
type: happy
tags:
- contract
- integration
- o2c
- p1
- rest
roles:
- integration_user
preconditions:
- Baseline describe() snapshots captured before patch.
data_recipes:
- DR-O2C-USR-001
steps:
- n: 1
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/salesOrdersForOrderHub/describe"
expected: "Schema for salesOrdersForOrderHub is a superset of baseline {{baseline.rest_schema.salesOrdersForOrderHub}}; no removed fields or\
\ type changes; newly required fields flagged."
- n: 2
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/receivablesInvoices/describe"
expected: "Schema for receivablesInvoices is a superset of baseline {{baseline.rest_schema.receivablesInvoices}}; no removed fields or type\
\ changes; newly required fields flagged."
- n: 3
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/standardReceipts/describe"
expected: "Schema for standardReceipts is a superset of baseline {{baseline.rest_schema.standardReceipts}}; no removed fields or type changes;\
\ newly required fields flagged."
- n: 4
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/accounts/describe"
expected: "Schema for accounts is a superset of baseline {{baseline.rest_schema.accounts}}; no removed fields or type changes; newly required\
\ fields flagged."
- n: 5
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/receivablesCreditMemos/describe"
expected: "Schema for receivablesCreditMemos is a superset of baseline {{baseline.rest_schema.receivablesCreditMemos}}; no removed fields or\
\ type changes; newly required fields flagged."
expected_result: "Schema for receivablesCreditMemos is a superset of baseline {{baseline.rest_schema.receivablesCreditMemos}}; no removed fields\
\ or type changes; newly required fields flagged."
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.