Broken master: Real HTTP connections are disabled. Unregistered request:

  1. WebHookService#execute POSTs to the webhook URL Failure/Error: super

    WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST http://160.16.211.99/ with body '{"before":"oldrev","after":"newrev","ref":"ref"}' with headers {'Content-Type'=>'application/json', 'X-Gitlab-Event'=>'Push Hook'}

    You can stub this request with the following snippet:
    
    stub_request(:post, "http://160.16.211.99/").
      with(
        body: "{\"before\":\"oldrev\",\"after\":\"newrev\",\"ref\":\"ref\"}",
        headers: {
    	  'Content-Type'=>'application/json',
    	  'X-Gitlab-Event'=>'Push Hook'
        }).
      to_return(status: 200, body: "", headers: {})
    
    registered request stubs:
    
    stub_request(:post, "http://example8.org/")

Failed examples:

rspec ./spec/services/web_hook_service_spec.rb:73 # WebHookService#execute POSTs to the webhook URL

First spotted on merge CI job: https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/280733057

another example: https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/280768455