--- inputType: "CA10Z1__CaAzureMySqlServer__c" testData: - file: "test-data.json" importExtracts: - file: "/types/CA10Z1__CaAzureMySqlServer__c/object.extracts.yaml" conditions: - status: "INAPPLICABLE" currentStateMessage: "This is not the flexible server deployment mode." check: NOT_EQUAL: left: EXTRACT: "CA10Z1__deploymentMode__c" right: TEXT: "Flexible" - status: "INCOMPLIANT" currentStateMessage: "MySQL Flexible Server audit_log_enabled configuration parameter is disabled." remediationMessage: "Enable the audit_log_enabled parameter on the MySQL Flexible Server." check: IS_EQUAL: left: JSON_QUERY_TEXT: arg: EXTRACT: "caJsonFrom__configurations__c" expression: "[? name == 'audit_log_enabled'].value | [0]" undeterminedIf: evaluationError: "The JSON query has failed." resultTypeMismatch: "The JSON query did not return text type." right: TEXT: "off" - status: "INCOMPLIANT" currentStateMessage: "MySQL Flexible Server audit_log_events configuration parameter is not set to CONNECTION." remediationMessage: "Set the audit_log_events parameter to CONNECTION." check: AND: args: - IS_EQUAL: left: JSON_QUERY_TEXT: arg: EXTRACT: "caJsonFrom__configurations__c" expression: "[? name == 'audit_log_enabled'].value | [0]" undeterminedIf: evaluationError: "The JSON query has failed." resultTypeMismatch: "The JSON query did not return text type." right: TEXT: "on" - NOT_EQUAL: left: JSON_QUERY_TEXT: arg: EXTRACT: "caJsonFrom__configurations__c" expression: "[? name == 'audit_log_events'].value | [0]" undeterminedIf: evaluationError: "The JSON query has failed." resultTypeMismatch: "The JSON query did not return text type." right: TEXT: "CONNECTION" - status: "COMPLIANT" currentStateMessage: "MySQL Flexible Server audit_log_events configuration parameter is set to CONNECTION." check: AND: args: - IS_EQUAL: left: JSON_QUERY_TEXT: arg: EXTRACT: "caJsonFrom__configurations__c" expression: "[? name == 'audit_log_enabled'].value | [0]" undeterminedIf: evaluationError: "The JSON query has failed." resultTypeMismatch: "The JSON query did not return text type." right: TEXT: "on" - IS_EQUAL: left: JSON_QUERY_TEXT: arg: EXTRACT: "caJsonFrom__configurations__c" expression: "[? name == 'audit_log_events'].value | [0]" undeterminedIf: evaluationError: "The JSON query has failed." resultTypeMismatch: "The JSON query did not return text type." right: TEXT: "CONNECTION" otherwise: status: "UNDETERMINED" currentStateMessage: "Unexpected value in the field."