cloud-validation-framework icon indicating copy to clipboard operation
cloud-validation-framework copied to clipboard

Error line number is correct but appearing with wrong test id during compliance in the log

Open rezoan opened this issue 4 years ago • 1 comments

The error line number row : 136 is appearing with master test_id SERVER_AUDITING_SETTINGS_1 which is wrong. it should appear with master test_id TEST_DB_SERVER_AUDITING_SETTINGS_3

Looking into this log. master_test_id TEST_DB_SERVER_AUDITING_SETTINGS_1 is associated with rule PR-AZR-0059-TRF in dbserverauditingsettings.rego file. this rule has line number from 3-57. The actual error happens on rule "PR-AZR-0158-TRF" which has master_test_id "TEST_DB_SERVER_AUDITING_SETTINGS_3" and have line number from 119-154

Log output:

TESTID: TEST_DB_SERVER_AUDITING_SETTINGS_1
2021-09-24 07:51:51,362 - 		SNAPSHOTID: TRF_TEMPLATE_SNAPSHOT27
2021-09-24 07:51:51,362 - 		PATHS: 
2021-09-24 07:51:51,362 - 			 /azure/mssql_servers/terraform.tfvars
2021-09-24 07:51:51,362 - 			 /azure/mssql_servers/vars.tf
2021-09-24 07:51:51,362 - 			 /azure/mssql_servers/provider.tf
2021-09-24 07:51:51,362 - 			 /azure/mssql_servers/main.tf
2021-09-24 07:51:51,362 - 		ERROR: have problem in running opa binary
2021-09-24 07:51:51,368 - 		  complete rules must not produce multiple outputs
2021-09-24 07:51:51,369 - 		  location : azure/terraform/dbserverauditingsettings.rego
2021-09-24 07:51:51,369 - 		  row : 136
2021-09-24 07:51:51,369 - 		  col : 1

rezoan avatar Sep 24 '21 15:09 rezoan

@ajeybk please schedule a fix for this

farchide avatar Sep 24 '21 18:09 farchide