@@ -360,7 +360,7 @@ func TestRepositoriesService_Get(t *testing.T) {
360
360
mux .HandleFunc ("/repos/o/r" , func (w http.ResponseWriter , r * http.Request ) {
361
361
testMethod (t , r , "GET" )
362
362
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"},"secret_scanning_push_protection":{"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"},"dependabot_security_updates":{"status": "enabled"} }}` )
364
364
})
365
365
366
366
ctx := context .Background ()
@@ -369,7 +369,7 @@ func TestRepositoriesService_Get(t *testing.T) {
369
369
t .Errorf ("Repositories.Get returned error: %v" , err )
370
370
}
371
371
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" )}}}
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" )}, DependabotSecurityUpdates : & DependabotSecurityUpdates { String ( "enabled" )} }}
373
373
if ! cmp .Equal (got , want ) {
374
374
t .Errorf ("Repositories.Get returned %+v, want %+v" , got , want )
375
375
}
0 commit comments