Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc68903

Browse files
committed
fixup test
1 parentdce7f09 commitcc68903

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎coderd/httpmw/authz_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/coder/coder/v2/coderd/coderdtest"
1212
"github.com/coder/coder/v2/coderd/database/dbauthz"
1313
"github.com/coder/coder/v2/coderd/httpmw"
14+
"github.com/coder/coder/v2/coderd/rbac"
1415
)
1516

1617
funcTestAsAuthzSystem(t*testing.T) {
@@ -34,7 +35,7 @@ func TestAsAuthzSystem(t *testing.T) {
3435
actor,ok:=dbauthz.ActorFromContext(req.Context())
3536
assert.True(t,ok,"actor should exist")
3637
assert.False(t,userActor.Equal(actor),"systemActor should not be the user actor")
37-
assert.Contains(t,actor.Roles.Names(),"system","should have system role")
38+
assert.Contains(t,actor.Roles.Names(),rbac.RoleIdentifier{Name:"system"},"should have system role")
3839
})
3940

4041
mwAssertUser:=mwAssert(func(req*http.Request) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp