|
15 | 15 | import java.util.HashMap; |
16 | 16 | import java.util.Map; |
17 | 17 | import java.util.Properties; |
| 18 | +import java.util.UUID; |
18 | 19 |
|
19 | 20 | import static org.hamcrest.MatcherAssert.assertThat; |
20 | 21 | import static org.hamcrest.Matchers.equalTo; |
@@ -172,28 +173,11 @@ public void testTlsVerifyAndCertPath() throws Exception { |
172 | 173 | new LocalDirectorySSLConfig(dockerCertPath())); |
173 | 174 | } |
174 | 175 |
|
175 | | - @Test(expected = DockerClientException.class) |
176 | | - public void testWrongHostScheme() throws Exception { |
177 | | - new DefaultDockerClientConfig(URI.create("http://foo"), "dockerConfig", "apiVersion", "registryUrl", "registryUsername", "registryPassword", "registryEmail", |
178 | | - null); |
179 | | - } |
180 | | - |
181 | 176 | @Test() |
182 | | - public void testTcpHostScheme() throws Exception { |
183 | | - new DefaultDockerClientConfig(URI.create("tcp://foo"), "dockerConfig", "apiVersion", "registryUrl", "registryUsername", "registryPassword", "registryEmail", |
184 | | - null); |
185 | | - } |
186 | | - |
187 | | - @Test() |
188 | | - public void testUnixHostScheme() throws Exception { |
189 | | - new DefaultDockerClientConfig(URI.create("unix://foo"), "dockerConfig", "apiVersion", "registryUrl", "registryUsername", "registryPassword", "registryEmail", |
190 | | - null); |
191 | | - } |
192 | | - |
193 | | - @Test() |
194 | | - public void testNpipeHostScheme() throws Exception { |
195 | | - new DefaultDockerClientConfig(URI.create("npipe://foo"), "dockerConfig", "apiVersion", "registryUrl", "registryUsername", "registryPassword", "registryEmail", |
196 | | - null); |
| 177 | + public void testAnyHostScheme() throws Exception { |
| 178 | + URI dockerHost = URI.create(UUID.randomUUID().toString().replace("-", "") + "://foo"); |
| 179 | + new DefaultDockerClientConfig(dockerHost, "dockerConfig", "apiVersion", "registryUrl", "registryUsername", "registryPassword", "registryEmail", |
| 180 | + null); |
197 | 181 | } |
198 | 182 |
|
199 | 183 | @Test |
|
0 commit comments