๐ง 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: 2026-02-10T22:33:34.896480145Z 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 | 8CA0E1B6C881C0CCBC9ED1690B228AD1 |
| 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 within 60 days."
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: "Renew the reservation to retain discounts and avoid on-demand pricing."