@@ -210,15 +210,15 @@ func TestAddLdapBindDn(t *testing.T) {
210210 initDB : func (context.Context ) error {
211211 return nil
212212 },
213- createAuthSource : func (authSource * auth.Source ) error {
213+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
214214 createdAuthSource = authSource
215215 return nil
216216 },
217- updateAuthSource : func (authSource * auth.Source ) error {
217+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
218218 assert .FailNow (t , "case %d: should not call updateAuthSource" , n )
219219 return nil
220220 },
221- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
221+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
222222 assert .FailNow (t , "case %d: should not call getAuthSourceByID" , n )
223223 return nil , nil
224224 },
@@ -441,15 +441,15 @@ func TestAddLdapSimpleAuth(t *testing.T) {
441441 initDB : func (context.Context ) error {
442442 return nil
443443 },
444- createAuthSource : func (authSource * auth.Source ) error {
444+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
445445 createdAuthSource = authSource
446446 return nil
447447 },
448- updateAuthSource : func (authSource * auth.Source ) error {
448+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
449449 assert .FailNow (t , "case %d: should not call updateAuthSource" , n )
450450 return nil
451451 },
452- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
452+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
453453 assert .FailNow (t , "case %d: should not call getAuthSourceByID" , n )
454454 return nil , nil
455455 },
@@ -896,15 +896,15 @@ func TestUpdateLdapBindDn(t *testing.T) {
896896 initDB : func (context.Context ) error {
897897 return nil
898898 },
899- createAuthSource : func (authSource * auth.Source ) error {
899+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
900900 assert .FailNow (t , "case %d: should not call createAuthSource" , n )
901901 return nil
902902 },
903- updateAuthSource : func (authSource * auth.Source ) error {
903+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
904904 updatedAuthSource = authSource
905905 return nil
906906 },
907- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
907+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
908908 if c .id != 0 {
909909 assert .Equal (t , c .id , id , "case %d: wrong id" , n )
910910 }
@@ -1286,15 +1286,15 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
12861286 initDB : func (context.Context ) error {
12871287 return nil
12881288 },
1289- createAuthSource : func (authSource * auth.Source ) error {
1289+ createAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
12901290 assert .FailNow (t , "case %d: should not call createAuthSource" , n )
12911291 return nil
12921292 },
1293- updateAuthSource : func (authSource * auth.Source ) error {
1293+ updateAuthSource : func (ctx context. Context , authSource * auth.Source ) error {
12941294 updatedAuthSource = authSource
12951295 return nil
12961296 },
1297- getAuthSourceByID : func (id int64 ) (* auth.Source , error ) {
1297+ getAuthSourceByID : func (ctx context. Context , id int64 ) (* auth.Source , error ) {
12981298 if c .id != 0 {
12991299 assert .Equal (t , c .id , id , "case %d: wrong id" , n )
13001300 }
0 commit comments