๐ง Azure Savings Plan expires in the next 60 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2026-09-22T15:06:45.661980076Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 299 | โ๏ธ extract('CA10Z1__provisioningState__c') != 'Succeeded' | โ๏ธ null |
| ๐ข | disappeared | โ๏ธ 99 | โ๏ธ isDisappeared(CA10Z1__disappearanceTime__c) | โ๏ธ null |
| ๐ข | missing | โ๏ธ 199 | โ๏ธ extract('CA10Z1__provisioningState__c').isEmpty() || extract('CA10Z1__expiryDateTime__c').isEmpty() | โ๏ธ null |
| ๐ข | expiring | โ๏ธ 399 | โ๏ธ extract('CA10Z1__expiryDateTime__c').withinNextDays(60) | โ๏ธ null |
| ๐ข | today | โ๏ธ 399 | โ๏ธ extract('CA10Z1__expiryDateTime__c').withinNextDays(60) | โ๏ธ null |
| ๐ข | later | โ๏ธ 400 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/savings-plan/expires-in-60-days/policy.yaml | C3DA96CC5223CBB0658638FC35068E06 |
| Open | /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml | 51A5F1EEF369F99A169097DEF77A1091 |
| Open | /ce/ca/azure/savings-plan/expires-in-60-days/test-data.json | 441223413D6C953A58F1398018E76F2D |
| Open | /types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yaml | A48C2F3CC67C2B1D21FA44A52C30DEC9 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
Contentโ
---
inputType: "CA10Z1__CaAzureSavingsPlan__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Provisioning state or expiry date is unavailable."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__provisioningState__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__expiryDateTime__c"
- status: "INAPPLICABLE"
currentStateMessage: "The Savings Plan is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "INCOMPLIANT"
currentStateMessage: "The Savings Plan expires in 60 days or less."
remediationMessage: "Review whether replacement Savings Plan coverage is needed."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 60
arg:
EXTRACT: "CA10Z1__expiryDateTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Savings Plan is not expiring within the next 60 days."