File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package authztest_test
2
2
3
3
import (
4
4
"testing"
5
-
5
+
6
6
"github.com/coder/coder/coderd/authz"
7
7
"github.com/coder/coder/coderd/authz/authztest"
8
8
crand "github.com/coder/coder/cryptorand"
@@ -39,10 +39,10 @@ func TestUnion(t *testing.T) {
39
39
40
40
func RandomPermission () authz.Permission {
41
41
actions := []authz.Action {
42
- authz .ReadAction ,
43
- authz .DeleteAction ,
44
- authz .WriteAction ,
45
- authz .ModifyAction ,
42
+ authz .ActionRead ,
43
+ authz .ActionWrite ,
44
+ authz .ActionModify ,
45
+ authz .ActionDelete ,
46
46
}
47
47
return authz.Permission {
48
48
Sign : must (crand .Intn (2 ))% 2 == 0 ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ func Test_GroupedPermissions(t *testing.T) {
13
13
var total int
14
14
for _ , lvl := range authz .PermissionLevels {
15
15
for _ , s := range []bool {true , false } {
16
- for _ , a := range []authz.Action {authz .ReadAction , authztest .OtherOption } {
16
+ for _ , a := range []authz.Action {authz .ActionRead , authztest .OtherOption } {
17
17
if lvl == authz .LevelOrg {
18
18
set = append (set , & authz.Permission {
19
19
Sign : s ,
You can’t perform that action at this time.
0 commit comments