@@ -360,7 +360,7 @@ func TestRepositoriesService_Get(t *testing.T) {
360360 mux .HandleFunc ("/repos/o/r" , func (w http.ResponseWriter , r * http.Request ) {
361361 testMethod (t , r , "GET" )
362362 testHeader (t , r , "Accept" , strings .Join (wantAcceptHeaders , ", " ))
363- fmt .Fprint (w , `{"id":1,"name":"n","description":"d","owner":{"login":"l"},"license":{"key":"mit"},"security_and_analysis":{"advanced_security":{"status":"enabled"},"secret_scanning":{"status":"enabled"}}}` )
363+ fmt .Fprint (w , `{"id":1,"name":"n","description":"d","owner":{"login":"l"},"license":{"key":"mit"},"security_and_analysis":{"advanced_security":{"status":"enabled"},"secret_scanning":{"status":"enabled"},"secret_scanning_push_protection":{"status":"enabled"} }}` )
364364 })
365365
366366 ctx := context .Background ()
@@ -369,7 +369,7 @@ func TestRepositoriesService_Get(t *testing.T) {
369369 t .Errorf ("Repositories.Get returned error: %v" , err )
370370 }
371371
372- want := & Repository {ID : Int64 (1 ), Name : String ("n" ), Description : String ("d" ), Owner : & User {Login : String ("l" )}, License : & License {Key : String ("mit" )}, SecurityAndAnalysis : & SecurityAndAnalysis {AdvancedSecurity : & AdvancedSecurity {Status : String ("enabled" )}, SecretScanning : & SecretScanning {String ("enabled" )}}}
372+ want := & Repository {ID : Int64 (1 ), Name : String ("n" ), Description : String ("d" ), Owner : & User {Login : String ("l" )}, License : & License {Key : String ("mit" )}, SecurityAndAnalysis : & SecurityAndAnalysis {AdvancedSecurity : & AdvancedSecurity {Status : String ("enabled" )}, SecretScanning : & SecretScanning {String ("enabled" )}, SecretScanningPushProtection : & SecretScanningPushProtection { String ( "enabled" )} }}
373373 if ! cmp .Equal (got , want ) {
374374 t .Errorf ("Repositories.Get returned %+v, want %+v" , got , want )
375375 }
0 commit comments