โญ Repository โ ๐ Compliance Engine โ ๐ CloudAware โ ๐ Azure โ ๐ Reservations โ ๐ก๏ธ Reservation expires in the next 60 days๐ข
๐ง Azure Reservation expires in the next 60 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/reservations/reservation-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:47:01.466697899Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | 001 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10Z1__disappearanceTime__c) | โ๏ธ null |
๐ข | 002 | โ๏ธ 399 | โ๏ธ extract('CA10Z1__expiryDate__c').beyondNextDays(60) | โ๏ธ null |
๐ข | 003 | โ๏ธ 400 | โ๏ธ otherwise | โ๏ธ null |
๐ข | 004 | โ๏ธ 400 | โ๏ธ otherwise | โ๏ธ null |
๐ข | 005 | โ๏ธ 299 | โ๏ธ extract('CA10Z1__expiryDate__c').isEmpty() | โ๏ธ null |
๐ข | 006 | โ๏ธ 199 | โ๏ธ extract('CA10Z1__provisioningState__c') != 'Succeeded' | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/reservations/reservation-expires-in-60-days/policy.yaml | 47C767295779BD6699FAC69FA6519AD6 |
Open | /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml | DDA3914B6159E1345D2947E7EA4ADCF8 |
Open | /ce/ca/azure/reservations/reservation-expires-in-60-days/test-data.json | BC71BFF06549D1AC1EB1FEBA08323799 |
Open | /types/CA10Z1__CaAzureReservation__c/object.extracts.yaml | BAF6C1776D15C0CD930DFF3000823EE6 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
Contentโ
---
inputType: "CA10Z1__CaAzureReservation__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10Z1__CaAzureReservation__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Reservation is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "INAPPLICABLE"
currentStateMessage: "The Reservation expiry date is empty."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__expiryDate__c"
- status: "COMPLIANT"
currentStateMessage: "The Reservation is not expiring."
check:
IS_BEYOND_NEXT_DAYS:
offsetDays: 60
arg:
EXTRACT: "CA10Z1__expiryDate__c"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The Reservation expires in 60 days or less."
remediationMessage: "Consider renewing the reservation to maintain discounts and avoid paying on-demand prices."