π§ AWS DMS Migration Task Logging is not enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/dms/migration-task-logging/prod.logic.yaml
- Located in: π AWS DMS Migration Task Logging is not enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS DMS Migration Task | CA10A1__CaAwsDmsMigrationTask__c | 6 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-07-12T12:02:31.556506719Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10A1__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 299 | βοΈ not(extract('caJsonBoolean__settingsJsonEnableLogging__c')) | βοΈ null |
π’ | test3 | βοΈ 399 | βοΈ extract('caJsonText__settingsJsonTargetApplySeverity__c').isEmpty() | βοΈ null |
π’ | test4 | βοΈ 499 | βοΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonTargetApplySeverity__c')) | βοΈ null |
π’ | test5 | βοΈ 599 | βοΈ extract('caJsonText__settingsJsonTargetLoadSeverity__c').isEmpty() | βοΈ null |
π’ | test6 | βοΈ 699 | βοΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonTargetLoadSeverity__c')) | βοΈ null |
π’ | test7 | βοΈ 799 | βοΈ extract('caJsonText__settingsJsonSourceCaptureSeverity__c').isEmpty() | βοΈ null |
π’ | test8 | βοΈ 899 | βοΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonSourceCaptureSeverity__c')) | βοΈ null |
π’ | test9 | βοΈ 999 | βοΈ extract('caJsonText__settingsJsonSourceUnloadSeverity__c').isEmpty() | βοΈ null |
π’ | test10 | βοΈ 1099 | βοΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonSourceUnloadSeverity__c')) | βοΈ null |
π’ | test11 | βοΈ 1100 | βοΈ otherwise | βοΈ null |
π’ | test12 | βοΈ 399 | βοΈ extract('caJsonText__settingsJsonTargetApplySeverity__c').isEmpty() | βοΈ null |
π’ | test13 | βοΈ 399 | βοΈ extract('caJsonText__settingsJsonTargetApplySeverity__c').isEmpty() | βοΈ null |
π’ | test14 | βοΈ 199 | βοΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty() | βοΈ null |
π’ | test15 | βοΈ 103 | βοΈ extract('caJsonFrom__settingsJson__c').jsonQueryText('Logging.EnableLogging').isEvaluationFailed() | βοΈ UNDETERMINED condition:102 |
π’ | test16 | βοΈ 199 | βοΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty() | βοΈ null |
π’ | test17 | βοΈ 199 | βοΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty() | βοΈ null |
π’ | test18 | βοΈ 199 | βοΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty() | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/dms/migration-task-logging/policy.yaml | ACCE68DE6436BCE24FCF1B86911024F3 |
Open | /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml | 72B013D6D8DFFE59BDB71D994DDCA831 |
Open | /types/CA10A1__CaAwsDmsMigrationTask__c/object.extracts.yaml | 3B65C1EB3540C862016725CADD685D5B |
Open | /ce/ca/aws/dms/migration-task-logging/test-data.json | 44246BC726AD7A1BAD52D8F80CEA5FB3 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml
Contentβ
---
inputType: "CA10A1__CaAwsDmsMigrationTask__c"
importExtracts:
- file: /types/CA10A1__CaAwsDmsMigrationTask__c/object.extracts.yaml
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "CloudWatch logging is disabled for the DMS replication task."
remediationMessage: "Consider enable CloudWatch logging for this DMS replication task."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonBoolean__settingsJsonEnableLogging__c"
- status: "INCOMPLIANT"
currentStateMessage: "CloudWatch logging is disabled for the DMS replication task."
remediationMessage: "Consider enable CloudWatch logging for this DMS replication task."
check:
NOT:
arg:
EXTRACT: "caJsonBoolean__settingsJsonEnableLogging__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_APPLY component is not enabled."
remediationMessage: "Ensure the TARGET_APPLY log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonTargetApplySeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_APPLY component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the TARGET_APPLY log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonTargetApplySeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_LOAD component is not enabled."
remediationMessage: "Ensure the TARGET_LOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonTargetLoadSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_LOAD component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the TARGET_LOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonTargetLoadSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_CAPTURE component is not enabled."
remediationMessage: "Ensure the SOURCE_CAPTURE log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonSourceCaptureSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_CAPTURE component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the SOURCE_CAPTURE log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonSourceCaptureSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_UNLOAD component is not enabled."
remediationMessage: "Ensure the SOURCE_UNLOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonSourceUnloadSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_UNLOAD component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the SOURCE_UNLOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonSourceUnloadSeverity__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "DMS Migration Task Logging is enabled for all required components with the appropriate severity level."