@@ -36,7 +36,7 @@ func TestOrganizationsService_GetCodeSecurityConfigurations(t *testing.T) {
3636
3737 configurations , _ , err := client .Organizations .GetCodeSecurityConfigurations (ctx , "o" )
3838 if err != nil {
39- t .Errorf ("Organizations.GetOrganizationCodeSecurityConfigurations returned error: %v" , err )
39+ t .Errorf ("Organizations.GetCodeSecurityConfigurations returned error: %v" , err )
4040 }
4141
4242 want := []* CodeSecurityConfiguration {
@@ -318,7 +318,7 @@ func TestOrganizationsService_DeleteCodeSecurityConfiguration(t *testing.T) {
318318 })
319319}
320320
321- func TestOrganizationsService_AttachCodeSecurityConfigurationsToRepositories (t * testing.T ) {
321+ func TestOrganizationsService_AttachCodeSecurityConfigurationToRepositories (t * testing.T ) {
322322 t .Parallel ()
323323 ctx := t .Context ()
324324 client , mux , _ := setup (t )
@@ -332,32 +332,32 @@ func TestOrganizationsService_AttachCodeSecurityConfigurationsToRepositories(t *
332332 v := new (request )
333333 assertNilError (t , json .NewDecoder (r .Body ).Decode (v ))
334334 if v .Scope != "selected" {
335- t .Errorf ("Organizations.AttachCodeSecurityConfigurationsToRepositories request body scope = %v, want selected" , v .Scope )
335+ t .Errorf ("Organizations.AttachCodeSecurityConfigurationToRepositories request body scope = %v, want selected" , v .Scope )
336336 }
337337 if ! cmp .Equal (v .SelectedRepositoryIDs , []int64 {5 , 20 }) {
338- t .Errorf ("Organizations.AttachCodeSecurityConfigurationsToRepositories request body selected_repository_ids = %+v, want %+v" , v .SelectedRepositoryIDs , []int64 {5 , 20 })
338+ t .Errorf ("Organizations.AttachCodeSecurityConfigurationToRepositories request body selected_repository_ids = %+v, want %+v" , v .SelectedRepositoryIDs , []int64 {5 , 20 })
339339 }
340340 w .WriteHeader (http .StatusAccepted )
341341 })
342342
343- resp , err := client .Organizations .AttachCodeSecurityConfigurationsToRepositories (ctx , "o" , int64 (1 ), "selected" , []int64 {5 , 20 })
343+ resp , err := client .Organizations .AttachCodeSecurityConfigurationToRepositories (ctx , "o" , int64 (1 ), "selected" , []int64 {5 , 20 })
344344 if err != nil {
345- t .Errorf ("Organizations.AttachCodeSecurityConfigurationsToRepositories returned error: %v" , err )
345+ t .Errorf ("Organizations.AttachCodeSecurityConfigurationToRepositories returned error: %v" , err )
346346 }
347347
348348 want := http .StatusAccepted
349349 if resp .StatusCode != want {
350- t .Errorf ("Organizations.AttachCodeSecurityConfigurationsToRepositories returned status %v, want %v" , resp .StatusCode , want )
350+ t .Errorf ("Organizations.AttachCodeSecurityConfigurationToRepositories returned status %v, want %v" , resp .StatusCode , want )
351351 }
352352
353- const methodName = "AttachCodeSecurityConfigurationsToRepositories "
353+ const methodName = "AttachCodeSecurityConfigurationToRepositories "
354354 testBadOptions (t , methodName , func () (err error ) {
355- _ , err = client .Organizations .AttachCodeSecurityConfigurationsToRepositories (ctx , "\n " , - 1 , "" , nil )
355+ _ , err = client .Organizations .AttachCodeSecurityConfigurationToRepositories (ctx , "\n " , - 1 , "" , nil )
356356 return
357357 })
358358
359359 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
360- resp , err := client .Organizations .AttachCodeSecurityConfigurationsToRepositories (ctx , "o" , 1 , "selected" , []int64 {5 , 20 })
360+ resp , err := client .Organizations .AttachCodeSecurityConfigurationToRepositories (ctx , "o" , 1 , "selected" , []int64 {5 , 20 })
361361 return resp , err
362362 })
363363}
0 commit comments