@@ -284,7 +284,7 @@ func (s *GithubTestSuite) TestCreateCredentials() {
284
284
func (s * GithubTestSuite ) TestCreateCredentialsFailsOnDuplicateCredentials () {
285
285
ctx := garmTesting .ImpersonateAdminContext (context .Background (), s .db , s .T ())
286
286
testUser := garmTesting .CreateGARMTestUser (ctx , "testuser" , s .db , s .T ())
287
- testUserCtx := auth .PopulateContext (context .Background (), testUser )
287
+ testUserCtx := auth .PopulateContext (context .Background (), testUser , nil )
288
288
289
289
credParams := params.CreateGithubCredentialsParams {
290
290
Name : testCredsName ,
@@ -313,8 +313,8 @@ func (s *GithubTestSuite) TestNormalUsersCanOnlySeeTheirOwnCredentialsAdminCanSe
313
313
ctx := garmTesting .ImpersonateAdminContext (context .Background (), s .db , s .T ())
314
314
testUser := garmTesting .CreateGARMTestUser (ctx , "testuser1" , s .db , s .T ())
315
315
testUser2 := garmTesting .CreateGARMTestUser (ctx , "testuser2" , s .db , s .T ())
316
- testUserCtx := auth .PopulateContext (context .Background (), testUser )
317
- testUser2Ctx := auth .PopulateContext (context .Background (), testUser2 )
316
+ testUserCtx := auth .PopulateContext (context .Background (), testUser , nil )
317
+ testUser2Ctx := auth .PopulateContext (context .Background (), testUser2 , nil )
318
318
319
319
credParams := params.CreateGithubCredentialsParams {
320
320
Name : testCredsName ,
@@ -370,7 +370,7 @@ func (s *GithubTestSuite) TestGetGithubCredentialsFailsWhenCredentialsDontExist(
370
370
func (s * GithubTestSuite ) TestGetGithubCredentialsByNameReturnsOnlyCurrentUserCredentials () {
371
371
ctx := garmTesting .ImpersonateAdminContext (context .Background (), s .db , s .T ())
372
372
testUser := garmTesting .CreateGARMTestUser (ctx , "test-user1" , s .db , s .T ())
373
- testUserCtx := auth .PopulateContext (context .Background (), testUser )
373
+ testUserCtx := auth .PopulateContext (context .Background (), testUser , nil )
374
374
375
375
credParams := params.CreateGithubCredentialsParams {
376
376
Name : testCredsName ,
@@ -472,7 +472,7 @@ func (s *GithubTestSuite) TestDeleteGithubCredentials() {
472
472
func (s * GithubTestSuite ) TestDeleteGithubCredentialsByNonAdminUser () {
473
473
ctx := garmTesting .ImpersonateAdminContext (context .Background (), s .db , s .T ())
474
474
testUser := garmTesting .CreateGARMTestUser (ctx , "test-user4" , s .db , s .T ())
475
- testUserCtx := auth .PopulateContext (context .Background (), testUser )
475
+ testUserCtx := auth .PopulateContext (context .Background (), testUser , nil )
476
476
477
477
credParams := params.CreateGithubCredentialsParams {
478
478
Name : testCredsName ,
@@ -682,7 +682,7 @@ func (s *GithubTestSuite) TestUpdateCredentialsFailsForNonExistingCredentials()
682
682
func (s * GithubTestSuite ) TestUpdateCredentialsFailsIfCredentialsAreOwnedByNonAdminUser () {
683
683
ctx := garmTesting .ImpersonateAdminContext (context .Background (), s .db , s .T ())
684
684
testUser := garmTesting .CreateGARMTestUser (ctx , "test-user5" , s .db , s .T ())
685
- testUserCtx := auth .PopulateContext (context .Background (), testUser )
685
+ testUserCtx := auth .PopulateContext (context .Background (), testUser , nil )
686
686
687
687
credParams := params.CreateGithubCredentialsParams {
688
688
Name : testCredsName ,
@@ -711,7 +711,7 @@ func (s *GithubTestSuite) TestUpdateCredentialsFailsIfCredentialsAreOwnedByNonAd
711
711
func (s * GithubTestSuite ) TestAdminUserCanUpdateAnyGithubCredentials () {
712
712
ctx := garmTesting .ImpersonateAdminContext (context .Background (), s .db , s .T ())
713
713
testUser := garmTesting .CreateGARMTestUser (ctx , "test-user5" , s .db , s .T ())
714
- testUserCtx := auth .PopulateContext (context .Background (), testUser )
714
+ testUserCtx := auth .PopulateContext (context .Background (), testUser , nil )
715
715
716
716
credParams := params.CreateGithubCredentialsParams {
717
717
Name : testCredsName ,
0 commit comments