๐ง AWS RDS Multi-AZ Cluster Auto Minor Version Upgrade is not enabled - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ AWS RDS Cluster
- ๐ AWS RDS Cluster - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2025-10-18T12:01:44.236564866Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10__disappearanceTime__c) | โ๏ธ null |
๐ข | test2 | โ๏ธ 199 | โ๏ธ not(extract('CA10__multiAZ__c')) | โ๏ธ null |
๐ข | test3 | โ๏ธ 299 | โ๏ธ extract('CA10__autoMinorVersionUpgrade__c') == 'No' | โ๏ธ null |
๐ข | test4 | โ๏ธ 399 | โ๏ธ extract('CA10__autoMinorVersionUpgrade__c') == 'Yes' | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/policy.yaml | 07C5FBC01B3533A55FF7A3A2FC7452D1 |
Open | /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml | 7FC42C32D909A23DE529FC9DF1733D8C |
Open | /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/test-data.json | 1AE1CADA77322568BE73F4FAD801DACE |
Open | /types/CA10__CaAwsDbCluster__c/object.extracts.yaml | 67D56565AC3D5D186C8D23A35271C8EB |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/rds/cluster-auto-minor-version-upgrade/prod.logic.yaml
Contentโ
---
inputType: "CA10__CaAwsDbCluster__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsDbCluster__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy applies only to Multi-AZ RDS clusters."
check:
NOT:
arg:
EXTRACT: CA10__multiAZ__c # multiAZ != true
- status: "INCOMPLIANT"
currentStateMessage: "The Cluster's Auto Minor Version Upgrade feature is not enabled."
remediationMessage: "Enable the Auto Minor Version Upgrade feature for the Cluster."
check:
IS_EQUAL:
left:
EXTRACT: CA10__autoMinorVersionUpgrade__c
right:
TEXT: "No"
- status: "COMPLIANT"
currentStateMessage: "The Cluster's Auto Minor Version Upgrade feature is enabled."
check:
IS_EQUAL:
left:
EXTRACT: CA10__autoMinorVersionUpgrade__c
right:
TEXT: "Yes"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."