π§ Azure Subscription Bastion Host does not exist - prod.logic.yaml π π’
- Contextual name: π§ prod.logic.yaml π π’
- ID:
/ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml
- Located in: π Azure Subscription Bastion Host does not exist π’
Flagsβ
- π’ Logic test success
- π’ Logic with test data
- π Logic without extracts
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Subscription | CA10__CaAzureAccount__c | 13 | 1 | 31 |
Usesβ
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-04-24T23:46:13.877310666Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 199 | βοΈ CA10Z1__Azure_Virtual_Network_Bastion_Hosts__r.has(COMPLIANT) | βοΈ null |
π’ | test2 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/subscription/bastion-host-exist/policy.yaml | 5487F17CCE1F52FB504BA25BA1885C16 |
Open | /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml | 44A3EF68B82D6EC14003601AD0B9BA2B |
Open | /ce/ca/azure/subscription/bastion-host-exist/test-data.json | FBFC4E74DFB1A7929FB289411BE3E3A3 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Bastion Host exists for this Subscription."
check:
RELATED_LIST_HAS:
relationshipName: "CA10Z1__Azure_Virtual_Network_Bastion_Hosts__r"
status: "COMPLIANT"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Bastion Host doesn't exist for this Subscription."
relatedLists:
- relationshipName: "CA10Z1__Azure_Virtual_Network_Bastion_Hosts__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "Bastion Host is configured."