mirror of
https://github.com/penpot/penpot.git
synced 2026-11-06 10:00:38 +00:00
✨ Forward attribute update events (#12861)
This commit is contained in:
parent
eae2c5bc95
commit
eef6868e9f
@ -255,6 +255,7 @@
|
||||
"success-activate-organization-sso"
|
||||
"success-apply-organization-sso-changes"
|
||||
"unassign-organization-attribute"
|
||||
"update-organization-attribute"
|
||||
"update-organization-invitation"
|
||||
"update-organization-permissions"
|
||||
"update-team-invitation"
|
||||
|
||||
@ -117,13 +117,17 @@
|
||||
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) "update-organization-attribute")
|
||||
(insert-audit-row! (:id prof) "auditlog-exported")
|
||||
(insert-audit-row! (:id prof) "unrelated-event")
|
||||
(run-both! {:uri archive-uri})
|
||||
(t/is (:called? @admin-console-mock))
|
||||
(t/is (:called? @http-mock))
|
||||
(let [[_ _ params] (:call-args @admin-console-mock)]
|
||||
(t/is (= #{"create-project" "create-organization-attribute" "auditlog-exported"}
|
||||
(t/is (= #{"create-project"
|
||||
"create-organization-attribute"
|
||||
"update-organization-attribute"
|
||||
"auditlog-exported"}
|
||||
(into #{} (map :name) (:events params)))))
|
||||
(let [rows (th/db-exec! ["select * from audit_log"])]
|
||||
(t/is (= 0 (count rows))))))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user