๐ง Oracle Tenancy has no active customer-managed compartments - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2026-05-02T12:07:27.797072689Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | tenancy-comp-1 | โ๏ธ 199 | โ๏ธ CA10O1__Oracle_Compartments__r.has(COMPLIANT) | โ๏ธ null |
| ๐ข | tenancy-comp-2 | โ๏ธ 200 | โ๏ธ otherwise | โ๏ธ null |
| ๐ข | tenancy-comp-3 | โ๏ธ 200 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/oracle/tenancy/tenancy-without-compartments/policy.yaml | 98C1AD1BBA1E69F04BDB104A80CB78D3 |
| Open | /ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml | 82EC51DFF161AC9CB2156A34D570C75A |
| Open | /ce/ca/oracle/tenancy/tenancy-without-compartments/test-data.json | 073ADF69A5E306580DD0851271AC2114 |
| Open | /types/CA10O1__CaOracleCompartment__c/object.extracts.yaml | 258990DCA94BE45FB107CEC97D44D89F |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/oracle/tenancy/tenancy-without-compartments/prod.logic.yaml
Contentโ
---
inputType: "CA10O1__CaOracleTenancy__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This tenancy has at least one active customer-managed compartment."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10O1__Oracle_Compartments__r"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "This tenancy does not have any active customer-managed compartments."
remediationMessage: "Create at least one active customer-managed compartment and use it to organize OCI resources."
relatedLists:
- relationshipName: "CA10O1__Oracle_Compartments__r"
importExtracts:
- file: "/types/CA10O1__CaOracleCompartment__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This Oracle compartment is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10O1__lifecycleState__c"
right:
TEXT: "ACTIVE"
- status: "INAPPLICABLE"
currentStateMessage: "This is the OCI-managed ManagedCompartmentForPaaS compartment."
check:
IS_EQUAL:
left:
EXTRACT: "Name"
right:
TEXT: "ManagedCompartmentForPaaS"
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is an active customer-managed compartment."