โญ Repository โ ๐ Compliance Engine โ ๐ CloudAware โ ๐ Google โ ๐ GCE โ ๐ก๏ธ Commitment expired in the last 30 days๐ข
๐ง Google GCE Commitment expired in the last 30 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-01T12:49:57.499738735Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10G1__disappearanceTime__c) | โ๏ธ null |
๐ข | test2 | โ๏ธ 199 | โ๏ธ extract('CA10G1__status__c') != 'EXPIRED' | โ๏ธ null |
๐ข | test3 | โ๏ธ 299 | โ๏ธ extract('CA10G1__endTimestamp__c').withinLastDays(30) | โ๏ธ null |
๐ข | test4 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/policy.yaml | 7DC62973FB02549BEF6386706C3C63B5 |
Open | /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml | AE0411BD1B7DD386E6C0813995E86881 |
Open | /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/test-data.json | ACEC75A6A6699FF51629CC950A5D8C19 |
Open | /types/CA10G1__CaGoogleGceCommitment__c/object.extracts.yaml | 73094F2229D28C8F9B6A97CDA40D5630 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/compute-engine/commitment-expired-in-last-30-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 expired."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10G1__status__c"
right:
TEXT: "EXPIRED"
- status: "INCOMPLIANT"
currentStateMessage: "The commitment has expired within the last 30 days."
remediationMessage: "Review the expired commitment to determine if a new one should be purchased to maintain cost savings."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10G1__endTimestamp__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The commitment expired more than 30 days ago."