Skip to content

Commit

Permalink
fix the project scope allow test
Browse files Browse the repository at this point in the history
Signed-off-by: reggie-k <[email protected]>
  • Loading branch information
reggie-k committed Jan 27, 2025
1 parent 2aee7a0 commit d29a837
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/e2e/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,22 @@ func TestCanIGetLogsAllow(t *testing.T) {
ctx := accountFixture.Given(t)
ctx.
Name("test").
Project(ProjectName).
When().
Create().
Login().
SetPermissions([]ACL{
{
Resource: "logs",
Action: "get",
Scope: ProjectName + "/*",
},
{
Resource: "apps",
Action: "get",
Scope: ProjectName + "/*",
},
}, "log-viewer").
CanIGetLogs().
Then().
AndCLIOutput(func(output string, _ error) {
Expand Down

0 comments on commit d29a837

Please sign in to comment.