From 62cb98a7a7cf279825d35b01a34f41a942358053 Mon Sep 17 00:00:00 2001 From: Erik Bakke Date: Tue, 23 Sep 2014 17:16:34 -0500 Subject: [PATCH] Don't use hostnames with domains that Google might buy. https://www.icann.org/resources/agreement/foo-2014-01-23-en --- src/test/groovy/com/entagen/jenkins/JenkinsApiTests.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/groovy/com/entagen/jenkins/JenkinsApiTests.groovy b/src/test/groovy/com/entagen/jenkins/JenkinsApiTests.groovy index a7cea86f..4f0ab39b 100644 --- a/src/test/groovy/com/entagen/jenkins/JenkinsApiTests.groovy +++ b/src/test/groovy/com/entagen/jenkins/JenkinsApiTests.groovy @@ -11,10 +11,10 @@ import net.sf.json.JSONObject class JenkinsApiTests extends GroovyTestCase { @Test public void testInvalidHostThrowsConnectionException() { - JenkinsApi api = new JenkinsApi(jenkinsServerUrl: "http://invalid.foo:9090/jenkins") + JenkinsApi api = new JenkinsApi(jenkinsServerUrl: "http://some-invalid-hostname:9090/jenkins") assert shouldFail(UnknownHostException) { api.getJobNames("myproj") - }.contains("invalid.foo") + }.contains("some-invalid-hostname") } @Test public void testCantConnectToEndpointThrowsException() {