โญ Repository โ ๐ Compliance Engine โ ๐ CloudAware โ ๐ Google โ ๐ GCE โ ๐ก๏ธ Commitment expires in the next 60 days๐ข
๐ง Google GCE Commitment expires in the next 60 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-01T12:49:58.362918491Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10G1__disappearanceTime__c) | โ๏ธ null |
๐ข | test2 | โ๏ธ 199 | โ๏ธ extract('CA10G1__status__c') != 'ACTIVE' | โ๏ธ null |
๐ข | test3 | โ๏ธ 299 | โ๏ธ extract('CA10G1__endTimestamp__c').withinNextDays(60) | โ๏ธ null |
๐ข | test4 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/compute-engine/commitment-expires-in-60-days/policy.yaml | 5A4EE8C413613BFC1556B9122E156E9E |
Open | /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml | 37EE24DE0D82D2CE8748C2DD30FCDCEF |
Open | /ce/ca/google/compute-engine/commitment-expires-in-60-days/test-data.json | 40A1DAF465373261CA88C44492587B5B |
Open | /types/CA10G1__CaGoogleGceCommitment__c/object.extracts.yaml | 73094F2229D28C8F9B6A97CDA40D5630 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
Contentโ
---
inputType: "CA10G1__CaGoogleGceCommitment__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10G1__CaGoogleGceCommitment__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The commitment is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10G1__status__c"
right:
TEXT: "ACTIVE"
- status: "INCOMPLIANT"
currentStateMessage: "The commitment expires in 60 days or less."
remediationMessage: "Consider renewing the expiring commitment to maintain cost savings."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 60
arg:
EXTRACT: CA10G1__endTimestamp__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "The commitment is not expiring within the next 60 days."