mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
fix(gcp): enforce correct severity levels in CloudSQL PostgreSQL log_min_messages (#5571)
This commit is contained in:
+4
-4
@@ -104,7 +104,7 @@ class Test_cloudsql_instance_postgres_log_min_messages_flag:
|
||||
assert result[0].status == "FAIL"
|
||||
assert (
|
||||
result[0].status_extended
|
||||
== "PostgreSQL Instance instance1 does not have 'log_min_messages' flag set minimum to 'error'."
|
||||
== "PostgreSQL Instance instance1 does not have 'log_min_messages' flag set."
|
||||
)
|
||||
assert result[0].resource_id == "instance1"
|
||||
assert result[0].resource_name == "instance1"
|
||||
@@ -139,7 +139,7 @@ class Test_cloudsql_instance_postgres_log_min_messages_flag:
|
||||
ssl_mode="ENCRYPTED_ONLY",
|
||||
automated_backups=True,
|
||||
authorized_networks=[],
|
||||
flags=[{"name": "log_min_messages", "value": "debug"}],
|
||||
flags=[{"name": "log_min_messages", "value": "debug1"}],
|
||||
project_id=GCP_PROJECT_ID,
|
||||
)
|
||||
]
|
||||
@@ -150,7 +150,7 @@ class Test_cloudsql_instance_postgres_log_min_messages_flag:
|
||||
assert result[0].status == "FAIL"
|
||||
assert (
|
||||
result[0].status_extended
|
||||
== "PostgreSQL Instance instance1 does not have 'log_min_messages' flag set minimum to 'error'."
|
||||
== "PostgreSQL Instance instance1 has 'log_min_messages' flag set to 'DEBUG1', which is below the recommended minimum of 'ERROR'."
|
||||
)
|
||||
assert result[0].resource_id == "instance1"
|
||||
assert result[0].resource_name == "instance1"
|
||||
@@ -196,7 +196,7 @@ class Test_cloudsql_instance_postgres_log_min_messages_flag:
|
||||
assert result[0].status == "PASS"
|
||||
assert (
|
||||
result[0].status_extended
|
||||
== "PostgreSQL Instance instance1 has 'log_min_messages' flag set minimum to 'error'."
|
||||
== "PostgreSQL Instance instance1 has 'log_min_messages' flag set to an acceptable severity level: 'ERROR'."
|
||||
)
|
||||
assert result[0].resource_id == "instance1"
|
||||
assert result[0].resource_name == "instance1"
|
||||
|
||||
Reference in New Issue
Block a user