@@ -78,7 +78,7 @@ public void environment() throws Exception {
7878 env .put (DockerClientConfig .DOCKER_CONFIG , "dockerConfig" );
7979 env .put (DockerClientConfig .DOCKER_CERT_PATH , dockerCertPath ());
8080 env .put (DockerClientConfig .DOCKER_TLS_VERIFY , "1" );
81- env .put (DockerClientConfig .DOCKER_SWARM , "false" );
81+ env .put (DockerClientConfig .DOCKER_IS_SWARM_ENDPOINT , "false" );
8282
8383
8484 // when you build a config
@@ -127,6 +127,7 @@ public void systemProperties() throws Exception {
127127 systemProperties .put (DockerClientConfig .DOCKER_CONFIG , "dockerConfig" );
128128 systemProperties .put (DockerClientConfig .DOCKER_CERT_PATH , dockerCertPath ());
129129 systemProperties .put (DockerClientConfig .DOCKER_TLS_VERIFY , "1" );
130+ systemProperties .put (DockerClientConfig .DOCKER_IS_SWARM_ENDPOINT , "false" );
130131
131132 // when you build new config
132133 DockerClientConfig config = buildConfig (Collections .<String , String > emptyMap (), systemProperties );
@@ -147,36 +148,36 @@ public void serializableTest() {
147148 @ Test (expectedExceptions = DockerClientException .class )
148149 public void testTlsVerifyAndCertPathNull () throws Exception {
149150 new DockerClientConfig (URI .create ("tcp://foo" ), "dockerConfig" , "apiVersion" , "registryUrl" , "registryUsername" , "registryPassword" , "registryEmail" ,
150- null , true );
151+ null , true , false );
151152 }
152153
153154 @ Test (expectedExceptions = DockerClientException .class )
154155 public void testTlsVerifyAndCertPathEmpty () throws Exception {
155156 new DockerClientConfig (URI .create ("tcp://foo" ), "dockerConfig" , "apiVersion" , "registryUrl" , "registryUsername" , "registryPassword" , "registryEmail" ,
156- "" , true );
157+ "" , true , false );
157158 }
158159
159160 @ Test ()
160161 public void testTlsVerifyAndCertPath () throws Exception {
161162 new DockerClientConfig (URI .create ("tcp://foo" ), "dockerConfig" , "apiVersion" , "registryUrl" , "registryUsername" , "registryPassword" , "registryEmail" ,
162- dockerCertPath (), true );
163+ dockerCertPath (), true , false );
163164 }
164165
165166 @ Test (expectedExceptions = DockerClientException .class )
166167 public void testWrongHostScheme () throws Exception {
167168 new DockerClientConfig (URI .create ("http://foo" ), "dockerConfig" , "apiVersion" , "registryUrl" , "registryUsername" , "registryPassword" , "registryEmail" ,
168- null , false );
169+ null , false , false );
169170 }
170171
171172 @ Test ()
172173 public void testTcpHostScheme () throws Exception {
173174 new DockerClientConfig (URI .create ("tcp://foo" ), "dockerConfig" , "apiVersion" , "registryUrl" , "registryUsername" , "registryPassword" , "registryEmail" ,
174- null , false );
175+ null , false , false );
175176 }
176177
177178 @ Test ()
178179 public void testUnixHostScheme () throws Exception {
179180 new DockerClientConfig (URI .create ("unix://foo" ), "dockerConfig" , "apiVersion" , "registryUrl" , "registryUsername" , "registryPassword" , "registryEmail" ,
180- null , false );
181+ null , false , false );
181182 }
182183}
0 commit comments