π§ Google Project has a legacy network - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/project/project-with-legacy-network/prod.logic.yaml
- Located in: π Google Project has a legacy network π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Google Project | CA10__CaGoogleProject__c | 2 | 1 | 16 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:47:20.372869228Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | a4p361 | βοΈ 199 | βοΈ CA10__Google_GCE_Networks__r.has(INCOMPLIANT) | βοΈ null |
π’ | a4p02 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | a4p0e3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/project/project-with-legacy-network/policy.yaml | 4865B4D75173AC2944FD896B102F3A19 |
Open | /ce/ca/google/project/project-with-legacy-network/prod.logic.yaml | 4C1B1B0702938232BBB0E8A28CA67B3C |
Open | /types/CA10__CaGoogleGceNetwork__c/object.extracts.yaml | 8F9138803D14A08C803D065164BFC0CC |
Open | /ce/ca/google/project/project-with-legacy-network/test-data.json | A73EDFCFCAEA002EB1477ADC173E0CC5 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/project/project-with-legacy-network/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/project/project-with-legacy-network/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/project/project-with-legacy-network/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/project/project-with-legacy-network/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/project/project-with-legacy-network/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleProject__c"
testData:
- file: test-data.json
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Project has networks in the legacy mode."
remediationMessage: "Delete the networks in the legacy mode."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__Google_GCE_Networks__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Project doesn't have networks in the legacy mode."
relatedLists:
- relationshipName: "CA10__Google_GCE_Networks__r"
importExtracts:
- file: /types/CA10__CaGoogleGceNetwork__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "This is a legacy network."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__autoCreationSubnetworksMode__c"
right:
TEXT: 'legacy'
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is not a legacy network."