π§ Azure PostgreSQL Single Server Infrastructure Double Encryption is not enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml
- Located in: π Azure PostgreSQL Single Server Infrastructure Double Encryption is not enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure PostgreSQL Server | CA10Z1__CaAzurePostgreSqlServer__c | 7 | 1 | 9 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:45:42.691306611Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10Z1__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ extract('CA10Z1__infrastructureEncryption__c') == 'Disabled' | βοΈ null |
π’ | test3 | βοΈ 299 | βοΈ extract('CA10Z1__infrastructureEncryption__c') == 'Enabled' | βοΈ null |
π’ | test4 | βοΈ 101 | βοΈ CA10Z1__infrastructureEncryption__c.isEmpty() | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/policy.yaml | DE7083540593B761B5B5CD2AFC743D6C |
Open | /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml | ED57EEB07B626DABEAECEFA9702B8128 |
Open | /types/CA10Z1__CaAzurePostgreSqlServer__c/object.extracts.yaml | 08BBA6DB6D72395AA7E05F67B74F9223 |
Open | /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/test-data.json | D44AF29F1ACFE8099392ACA5A24DB60D |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml
Contentβ
---
inputType: "CA10Z1__CaAzurePostgreSqlServer__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzurePostgreSqlServer__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "PostgreSQL Single Server Infrastructure Encryption is disabled."
remediationMessage: "Consider enabling PostgreSQL Single Server Infrastructure Encryption."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__infrastructureEncryption__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "PostgreSQL Single Server Infrastructure Encryption is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__infrastructureEncryption__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."