fix test failure
http proxy must be configured before Endpoint discovery occurs
Merge pull request #8 from jenkinsci/JENKINS-22368

fix test failure