Fix tests: Remove redundant system_actor and update test descriptions
This commit is contained in:
parent
d8187484b8
commit
bebd7f6fe2
1 changed files with 1 additions and 3 deletions
|
|
@ -36,10 +36,8 @@ defmodule Mv.Authorization.Checks.HasPermissionFailClosedTest do
|
||||||
|> Ash.Query.new()
|
|> Ash.Query.new()
|
||||||
|> Ash.Query.filter_input(deny_filter)
|
|> Ash.Query.filter_input(deny_filter)
|
||||||
|
|
||||||
system_actor = Mv.Helpers.SystemActor.get_system_actor()
|
|
||||||
|
|
||||||
{:ok, results} =
|
{:ok, results} =
|
||||||
Ash.read(query, domain: Mv.Membership, authorize?: false, actor: system_actor)
|
Ash.read(query, domain: Mv.Membership, authorize?: false)
|
||||||
|
|
||||||
# Assert: deny-filter must match nothing
|
# Assert: deny-filter must match nothing
|
||||||
assert results == []
|
assert results == []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue