diff --git a/backend/src/app/loggers/audit/consumer_task.clj b/backend/src/app/loggers/audit/consumer_task.clj index 20b6255163..9d1146bf22 100644 --- a/backend/src/app/loggers/audit/consumer_task.clj +++ b/backend/src/app/loggers/audit/consumer_task.clj @@ -231,6 +231,7 @@ "delete-file" "delete-font" "delete-organization" + "delete-organization-attribute" "delete-organization-member" "delete-project" "delete-team" diff --git a/backend/test/backend_tests/loggers_audit_consumer_task_test.clj b/backend/test/backend_tests/loggers_audit_consumer_task_test.clj index db7de3ace4..e538ae31d6 100644 --- a/backend/test/backend_tests/loggers_audit_consumer_task_test.clj +++ b/backend/test/backend_tests/loggers_audit_consumer_task_test.clj @@ -117,6 +117,7 @@ http-mock {:target 'app.http.client/req :return {:status 204}}] (insert-audit-row! (:id prof) "create-project") (insert-audit-row! (:id prof) "create-organization-attribute") + (insert-audit-row! (:id prof) "delete-organization-attribute") (insert-audit-row! (:id prof) "update-organization-attribute") (insert-audit-row! (:id prof) "auditlog-exported") (insert-audit-row! (:id prof) "unrelated-event") @@ -126,6 +127,7 @@ (let [[_ _ params] (:call-args @admin-console-mock)] (t/is (= #{"create-project" "create-organization-attribute" + "delete-organization-attribute" "update-organization-attribute" "auditlog-exported"} (into #{} (map :name) (:events params)))))