@@ -210,15 +210,15 @@ func TestAddLdapBindDn(t *testing.T) {
210
210
initDB : func (context.Context ) error {
211
211
return nil
212
212
},
213
- createAuthSource : func (authSource * auth.Source ) error {
213
+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
214
214
createdAuthSource = authSource
215
215
return nil
216
216
},
217
- updateAuthSource : func (authSource * auth.Source ) error {
217
+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
218
218
assert .FailNow (t , "case %d: should not call updateAuthSource" , n )
219
219
return nil
220
220
},
221
- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
221
+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
222
222
assert .FailNow (t , "case %d: should not call getAuthSourceByID" , n )
223
223
return nil , nil
224
224
},
@@ -441,15 +441,15 @@ func TestAddLdapSimpleAuth(t *testing.T) {
441
441
initDB : func (context.Context ) error {
442
442
return nil
443
443
},
444
- createAuthSource : func (authSource * auth.Source ) error {
444
+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
445
445
createdAuthSource = authSource
446
446
return nil
447
447
},
448
- updateAuthSource : func (authSource * auth.Source ) error {
448
+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
449
449
assert .FailNow (t , "case %d: should not call updateAuthSource" , n )
450
450
return nil
451
451
},
452
- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
452
+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
453
453
assert .FailNow (t , "case %d: should not call getAuthSourceByID" , n )
454
454
return nil , nil
455
455
},
@@ -896,15 +896,15 @@ func TestUpdateLdapBindDn(t *testing.T) {
896
896
initDB : func (context.Context ) error {
897
897
return nil
898
898
},
899
- createAuthSource : func (authSource * auth.Source ) error {
899
+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
900
900
assert .FailNow (t , "case %d: should not call createAuthSource" , n )
901
901
return nil
902
902
},
903
- updateAuthSource : func (authSource * auth.Source ) error {
903
+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
904
904
updatedAuthSource = authSource
905
905
return nil
906
906
},
907
- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
907
+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
908
908
if c .id != 0 {
909
909
assert .Equal (t , c .id , id , "case %d: wrong id" , n )
910
910
}
@@ -1286,15 +1286,15 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
1286
1286
initDB : func (context.Context ) error {
1287
1287
return nil
1288
1288
},
1289
- createAuthSource : func (authSource * auth.Source ) error {
1289
+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
1290
1290
assert .FailNow (t , "case %d: should not call createAuthSource" , n )
1291
1291
return nil
1292
1292
},
1293
- updateAuthSource : func (authSource * auth.Source ) error {
1293
+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
1294
1294
updatedAuthSource = authSource
1295
1295
return nil
1296
1296
},
1297
- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
1297
+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
1298
1298
if c .id != 0 {
1299
1299
assert .Equal (t , c .id , id , "case %d: wrong id" , n )
1300
1300
}
0 commit comments