File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,13 @@ func TestRoleByName(t *testing.T) {
206
206
{Role : builtInRoles [userAdmin ]("" )},
207
207
{Role : builtInRoles [auditor ]("" )},
208
208
209
- {Role : builtInRoles [orgAdmin ](uuid . New (). String () )},
210
- {Role : builtInRoles [orgAdmin ](uuid . New (). String () )},
211
- {Role : builtInRoles [orgAdmin ](uuid . New (). String () )},
209
+ {Role : builtInRoles [orgAdmin ]("4592dac5-0945-42fd-828d-a903957d3dbb" )},
210
+ {Role : builtInRoles [orgAdmin ]("24c100c5-1920-49c0-8c38-1b640ac4b38c" )},
211
+ {Role : builtInRoles [orgAdmin ]("4a00f697-0040-4079-b3ce-d24470281a62" )},
212
212
213
- {Role : builtInRoles [orgMember ](uuid . New (). String () )},
214
- {Role : builtInRoles [orgMember ](uuid . New (). String () )},
215
- {Role : builtInRoles [orgMember ](uuid . New (). String () )},
213
+ {Role : builtInRoles [orgMember ]("3293c50e-fa5d-414f-a461-01112a4dfb6f" )},
214
+ {Role : builtInRoles [orgMember ]("f88dd23d-bdbd-469d-b82e-36ee06c3d1e1" )},
215
+ {Role : builtInRoles [orgMember ]("02cfd2a5-016c-4d8d-8290-301f5f18023d" )},
216
216
}
217
217
218
218
for _ , c := range testCases {
Original file line number Diff line number Diff line change @@ -356,7 +356,8 @@ func TestRolePermissions(t *testing.T) {
356
356
357
357
func TestIsOrgRole (t * testing.T ) {
358
358
t .Parallel ()
359
- randomUUID := uuid .New ()
359
+ randomUUID , err := uuid .Parse ("cad8c09d-c099-4ec7-9263-7d52b1a3997a" )
360
+ require .NoError (t , err )
360
361
361
362
testCases := []struct {
362
363
RoleName string
You can’t perform that action at this time.
0 commit comments