π§ AWS DMS Endpoint doesn't use SSL - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml
- Located in: π AWS DMS Endpoint doesn't use SSL π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS DMS Endpoint | CA10A1__CaAwsDmsEndpoint__c | 2 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-07-12T12:02:30.045964308Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10A1__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ not(setOfText(['mysql', 'oracle', 'postgres', 'mariadb', 'aurora', 'aurora-postgresql', 'db2', 'db2-zos', 'mongodb', 'sqlserver']).contains(extract('CA10A1__engineName__c'))) | βοΈ null |
π’ | test3 | βοΈ 299 | βοΈ extract('CA10A1__sslMode__c') == 'none' | βοΈ null |
π’ | test4 | βοΈ 399 | βοΈ setOfText(['require', 'verify-ca', 'verify-full']).contains(extract('CA10A1__sslMode__c')) | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/dms/endpoint-ssl/policy.yaml | E81C5250F3F759A9C76A5949CC137F02 |
Open | /ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml | 54FFBCCB744D608F991DD55FF1B02E7D |
Open | /ce/ca/aws/dms/endpoint-ssl/test-data.json | 591879C4E2DCA2A87DB859F0A0DFD49D |
Open | /types/CA10A1__CaAwsDmsEndpoint__c/object.extracts.yaml | DC5412ACE13F77AA62F29DFAC7D4A357 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/dms/endpoint-ssl/prod.logic.yaml
Contentβ
---
inputType: "CA10A1__CaAwsDmsEndpoint__c"
importExtracts:
- file: /types/CA10A1__CaAwsDmsEndpoint__c/object.extracts.yaml
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Endpoint SSL Mode doesn't apply to this DMS Endpoint engine."
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- "mysql"
- "oracle"
- "postgres"
- "mariadb"
- "aurora"
- "aurora-postgresql"
- "db2"
- "db2-zos"
- "mongodb"
- "sqlserver"
search:
EXTRACT: "CA10A1__engineName__c"
- status: "INCOMPLIANT"
currentStateMessage: "The DMS Endpoint connection is not encrypted with SSL."
remediationMessage: "Modify the DMS endpoint to set the SSL mode."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__sslMode__c"
right:
TEXT: "none"
- status: "COMPLIANT"
currentStateMessage: "The DMS endpoint connection is encrypted with SSL."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- "require"
- "verify-ca"
- "verify-full"
search:
EXTRACT: "CA10A1__sslMode__c"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."