Repository: jclouds-labs Updated Branches: refs/heads/master 44946467a -> 39cd6698e
http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/ContainerVersionMajor1Minor21.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/ContainerVersionMajor1Minor21.java b/docker/src/test/java/org/jclouds/docker/parse/ContainerVersionMajor1Minor21.java deleted file mode 100644 index 8bca8c8..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/ContainerVersionMajor1Minor21.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; -import java.util.Map; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.date.internal.SimpleDateFormatDateService; -import org.jclouds.docker.domain.Config; -import org.jclouds.docker.domain.Container; -import org.jclouds.docker.domain.HostConfig; -import org.jclouds.docker.domain.NetworkSettings; -import org.jclouds.docker.domain.State; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; - -/** - * This class tests Containers and Config parsing for Docker API in version 1.21. The input JSON comes from examples in - * <a href="https://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/">Docker Remote API documentation 1.21</a>. - * <p> - * Two modifications were made in the "/container-1.21-create.json" due to incompatible types - * <ul> - * <li>the Entrypoint field value was changed from String to List<li> - * <li>the LxcConf field value was changed from Map to List</li> - * <ul> - */ -public class ContainerVersionMajor1Minor21 { - - @Test(groups = "unit") - public static class CreateTest extends BaseDockerParseTest<Config> { - @Override - public String resource() { - return "/container-1.21-create.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Config expected() { - return Config.builder() - .hostname("") - .domainname("") - .user("") - .attachStdin(false) - .attachStdout(true) - .attachStderr(true) - .tty(false) - .openStdin(false) - .stdinOnce(false) - .env(ImmutableList.of("FOO=bar", "BAZ=quux")) - .cmd(ImmutableList.of("date")) - //original value of the "Entrypoint" in JSON doesn't contain List but String! - //Both types are allowed by docker Remote API, but we are not able to parse both. - .entrypoint(ImmutableList.of("")) - .image("ubuntu") -// "Labels": { -// "com.example.vendor": "Acme", -// "com.example.license": "GPL", -// "com.example.version": "1.0" -// }, - .volumes(ImmutableMap.of("/volumes/data", ImmutableMap.of())) - .workingDir("") - .networkDisabled(false) -// "MacAddress": "12:34:56:78:9a:bc", - .exposedPorts(ImmutableMap.of("22/tcp", ImmutableMap.of())) -// "StopSignal": "SIGTERM", - .hostConfig(HostConfig.builder() - .binds(ImmutableList.of("/tmp:/tmp")) - .links(ImmutableList.of("redis3:redis")) - //The LxcConf causes the type mismatch too (Map vs List<Map>) - .lxcConf(ImmutableList.<Map<String, String>> of( - ImmutableMap.<String, String> of("lxc.utsname", "docker"))) -// "Memory": 0, -// "MemorySwap": 0, -// "MemoryReservation": 0, -// "KernelMemory": 0, -// "CpuShares": 512, -// "CpuPeriod": 100000, -// "CpuQuota": 50000, -// "CpusetCpus": "0,1", -// "CpusetMems": "0,1", -// "BlkioWeight": 300, -// "MemorySwappiness": 60, -// "OomKillDisable": false, - .portBindings(ImmutableMap.<String, List<Map<String, String>>> of( - "22/tcp", ImmutableList.<Map<String, String>> of(ImmutableMap.of("HostPort", "11022")))) - .publishAllPorts(false) - .privileged(false) -// "ReadonlyRootfs": false, - .dns(ImmutableList.of("8.8.8.8")) -// "DnsOptions": [""], - .dnsSearch(ImmutableList.of("")) - .extraHosts(null) - .volumesFrom(ImmutableList.of("parent", "other:ro")) - .capAdd(ImmutableList.of("NET_ADMIN")) - .capDrop(ImmutableList.of("MKNOD")) -// "GroupAdd": ["newgroup"], - .restartPolicy(ImmutableMap.of("Name", "", "MaximumRetryCount", "0")) - .networkMode("bridge") -// "Devices": [], -// "Ulimits": [{}], -// "LogConfig": { "Type": "json-file", "Config": {} }, - .securityOpt(ImmutableList.<String>of()) -// "CgroupParent": "", -// "VolumeDriver": "" - .build() - ) - .build(); - } - } - - @Test(groups = "unit") - public static class InspectTest extends BaseDockerParseTest<Container> { - @Override - public String resource() { - return "/container-1.21-inspect.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Container expected() { - return Container.builder() -// "AppArmorProfile": "", - .args(ImmutableList.<String>of("-c", "exit 9")) - .config(Config.builder() - .attachStderr(true) - .attachStdin(false) - .attachStdout(true) - .cmd(ImmutableList.<String> of("/bin/sh", "-c", "exit 9")) - .domainname("") - .entrypoint(null) - .env(ImmutableList.<String> of("PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")) - .exposedPorts(null) - .hostname("ba033ac44011") - .image("ubuntu") -// "Labels": { -// "com.example.vendor": "Acme", -// "com.example.license": "GPL", -// "com.example.version": "1.0" -// }, -// "MacAddress": "", - .networkDisabled(false) -// "OnBuild": null, - .openStdin(false) - .stdinOnce(false) - .tty(false) - .user("") - .volumes(null) - .workingDir("") -// "StopSignal": "SIGTERM" - .build()) - .created(new SimpleDateFormatDateService().iso8601DateParse("2015-01-06T15:47:31.485331387Z")) - .driver("devicemapper") - .execDriver("native-0.2") -// "ExecIDs": null, - .hostConfig(HostConfig.builder() - .binds(null) -// "BlkioWeight": 0, - .capAdd(null) - .capDrop(null) - .containerIDFile("") -// "CpusetCpus": "", -// "CpusetMems": "", -// "CpuShares": 0, -// "CpuPeriod": 100000, -// "Devices": [], - .dns(null) -// "DnsOptions": null, - .dnsSearch(null) - .extraHosts(null) -// "IpcMode": "", - .links(null) - .lxcConf(ImmutableList.<Map<String, String>> of()) -// "Memory": 0, -// "MemorySwap": 0, -// "MemoryReservation": 0, -// "KernelMemory": 0, -// "OomKillDisable": false, - .networkMode("bridge") - .portBindings(ImmutableMap.<String, List<Map<String, String>>> of()) - .privileged(false) -// "ReadonlyRootfs": false, - .publishAllPorts(false) - .restartPolicy(ImmutableMap.<String, String> of("MaximumRetryCount", "2", "Name", "on-failure")) -// "LogConfig": { -// "Config": null, -// "Type": "json-file" -// }, - .securityOpt(null) - .volumesFrom(null) -// "Ulimits": [{}], -// "VolumeDriver": "" - .build()) - .hostnamePath("/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hostname") - .hostsPath("/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hosts") -// "LogPath": "/var/lib/docker/containers/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b-json.log", - .id("ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39") - .image("04c5d3b7b0656168630d3ba35d8889bd0e9caafcaeb3004d2bfbc47e7c5d35d2") - .mountLabel("") - .name("/boring_euclid") - .networkSettings(NetworkSettings.builder() - .bridge("") - .sandboxId("") - .hairpinMode(false) - .linkLocalIPv6Address("") - .linkLocalIPv6PrefixLen(0) - .ports(null) - .sandboxKey("") - .secondaryIPAddresses(null) - .secondaryIPv6Addresses(null) - .endpointId("") - .gateway("") - .globalIPv6Address("") - .globalIPv6PrefixLen(0) - .ipAddress("") - .ipPrefixLen(0) - .ipv6Gateway("") - .macAddress("") - .networks(ImmutableMap.<String, NetworkSettings.Details> of( - "bridge", NetworkSettings.Details.create("", "", "", 0, "", "", 0, ""))) - .build()) - .path("/bin/sh") - .node(null) - .processLabel("") - .resolvConfPath("/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/resolv.conf") -// "RestartCount": 1, - .state(State.create(0, true, 9, "2015-01-06T15:47:32.072697474Z", "2015-01-06T15:47:32.080254511Z", false, false, "running", false, - // We don't have the "Dead" field in this API version! - false, - "" -// "Paused": false, -// "Running": true, - )) -// "Mounts": [ -// { -// "Source": "/data", -// "Destination": "/data", -// "Mode": "ro,Z", -// "RW": false -// } - .build(); - } - } - -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/ContainersParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/ContainersParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/ContainersParseTest.java deleted file mode 100644 index 39565bf..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/ContainersParseTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.ContainerSummary; -import org.jclouds.docker.domain.Port; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; - -@Test(groups = "unit") -public class ContainersParseTest extends BaseDockerParseTest<List<ContainerSummary>> { - - @Override - public String resource() { - return "/containers.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public List<ContainerSummary> expected() { - return ImmutableList.of(ContainerSummary.create( - "6d35806c1bd2b25cd92bba2d2c2c5169dc2156f53ab45c2b62d76e2d2fee14a9", ImmutableList.of("/hopeful_mclean"), - "1395472605", "jclouds/ubuntu:latest", "/usr/sbin/sshd -D", - ImmutableList.of(Port.create("0.0.0.0", 22, 49231, "tcp")), "Up 55 seconds"), ContainerSummary.create( - "6d35806c1bd2b25cd92bba2d2c2c5169dc2156f53ab45c2b62d76e2d2fee14a2", ImmutableList.of("/hopeful_mclean"), - "1395472605", "jclouds/ubuntu:latest", "/usr/sbin/sshd -D", - ImmutableList.of(Port.create(null, 22, null, "tcp")), "Up 55 seconds")); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/HistoryParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/HistoryParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/HistoryParseTest.java deleted file mode 100644 index a92a69b..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/HistoryParseTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.ImageHistory; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; - -@Test(groups = "unit") -public class HistoryParseTest extends BaseDockerParseTest<List<ImageHistory>> { - - @Override - public String resource() { - return "/history.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public List<ImageHistory> expected() { - return ImmutableList.of( - ImageHistory.create("3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710", - 1398108230, - "/bin/sh -c #(nop) ADD file:eb15dbd63394e063b805a3c32ca7bf0266ef64676d5a6fab4801f2e81e2a5148 in /", - ImmutableList.of("ubuntu:lucid", "ubuntu:10.04"), - 182964289, - ""), - ImageHistory.create("6cfa4d1f33fb861d4d114f43b25abd0ac737509268065cdfd69d544a59c85ab8", - 1398108222, - "/bin/sh -c #(nop) MAINTAINER Tianon Gravi <[email protected]> - mkimage-debootstrap.sh -i iproute,iputils-ping,ubuntu-minimal -t lucid.tar.xz lucid http://archive.ubuntu.com/ubuntu/", - null, - 0, - ""), - ImageHistory.create("511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158", - 1371157430, - "", - ImmutableList.of("scratch12:latest", "scratch:latest"), - 0, - "Imported from -") - ); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/ImageParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/ImageParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/ImageParseTest.java deleted file mode 100644 index 038be86..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/ImageParseTest.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.date.internal.SimpleDateFormatDateService; -import org.jclouds.docker.domain.Config; -import org.jclouds.docker.domain.Image; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.beust.jcommander.internal.Maps; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; - -@Test(groups = "unit") -public class ImageParseTest extends BaseDockerParseTest<Image> { - - @Override - public String resource() { - return "/image.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Image expected() { - return Image.create("cbba6639a342646deed70d7ea6162fa2a0acea9300f911f4e014555fe37d3456", - "author", - "comment", - Config.builder().cmd(ImmutableList.of("/bin/sh", "-c", "echo hello world")) - .env(ImmutableList.of( - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - "HOME=/root", - "JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" - ) - ) - .exposedPorts(ImmutableMap.of("8081/tcp", Maps.newHashMap())) - .hostname("f22711318734") - .domainname("") - .user("user") - .image("05794515afd5724df1cdf0e674ae932455fce7dea3c70a94d77119ad1fa954ba") - .workingDir("/home/user") - .build(), - Config.builder().cmd(ImmutableList.of("/bin/sh", "-c", "echo hello world")) - .env(ImmutableList.of( - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - "HOME=/root", - "JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64") - ) - .exposedPorts(ImmutableMap.of("8081/tcp", Maps.newHashMap())) - .hostname("f22711318734") - .domainname("") - .user("user") - .image("05794515afd5724df1cdf0e674ae932455fce7dea3c70a94d77119ad1fa954ba") - .workingDir("/home/user") - .build(), - "05794515afd5724df1cdf0e674ae932455fce7dea3c70a94d77119ad1fa954ba", - new SimpleDateFormatDateService().iso8601DateParse("2014-11-24T11:09:20.310023104Z"), - "0d14967353dbbd2ee78abe209f026f71654da49692fa2b044296ec3c810027b3", - "1.3.1", - "amd64", - "linux", - 0, - 808709069, - null); - } -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/ImagesParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/ImagesParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/ImagesParseTest.java deleted file mode 100644 index 1042da0..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/ImagesParseTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.ImageSummary; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; - -@Test(groups = "unit") -public class ImagesParseTest extends BaseDockerParseTest<List<ImageSummary>> { - - @Override - public String resource() { - return "/images.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public List<ImageSummary> expected() { - return ImmutableList.of( - ImageSummary.create("d7057cb020844f245031d27b76cb18af05db1cc3a96a29fa7777af75f5ac91a3", - 1442866547, - "cfa753dfea5e68a24366dfba16e6edf573daa447abf65bc11619c1a98a3aff54", - 0, - 1095501, - ImmutableList.of("docker.io/busybox:1.23.2", "docker.io/busybox:latest")), - ImageSummary.create("633fcd11259e8d6bccfbb59a4086b95b0d0fb44edfc3912000ef1f70e8a7bfc6", - 1442598293, - "b65c936b5fb601d680ed656b1ccf8ab857c0e5cb521043a005405c194e9a69f3", - 0, - 5607885, - ImmutableList.of("docker.io/busybox:ubuntu-14.04", "jclouds:testTag")), - ImageSummary.create("f4fddc471ec22fc1f7d37768132f1753bc171121e30ac2af7fcb0302588197c0", - 1442260874, - "", - 5244426, - 5244426, - ImmutableList.of("docker.io/alpine:3.2")), - ImageSummary.create("91e54dfb11794fad694460162bf0cb0a4fa710cfa3f60979c177d920813e267c", - 1440102075, - "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82", - 0, - 188333286, - ImmutableList.of("docker.io/ubuntu:14.04", "docker.io/ubuntu:latest")) - ); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/Info2ParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/Info2ParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/Info2ParseTest.java deleted file mode 100644 index 949acc7..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/Info2ParseTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.Info; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; - -@Test(groups = "unit") -public class Info2ParseTest extends BaseDockerParseTest<Info> { - - @Override - public String resource() { - return "/info2.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Info expected() { - return Info.create( - 0, // containers - false, // debug - "aufs", // driver - ImmutableList.<List<String>>of( - ImmutableList.of("Root Dir", "/var/lib/docker/aufs"), - ImmutableList.of("Backing Filesystem", "extfs"), - ImmutableList.of("Dirs", "117"), - ImmutableList.of( "Dirperm1 Supported", "true") - ), // driverStatus - "", // ExecutionDriver - true, // IPv4Forwarding - 39, // Images - "https://index.docker.io/v1/", // IndexServerAddress - null, // InitPath - null, // InitSha1 - "4.4.0-22-generic", // KernelVersion - true, // MemoryLimit - 0, // NEventsListener - 33, // NFd - 83, // NGoroutines - "Ubuntu 16.04 LTS", // OperatingSystem - false, // SwapLimit - "/var/lib/docker", // DockerRootDir - null, // Labels - 8248356864L, // MemTotal - 4, // NCPU - "KFWR:PMVY:BEWE:TD52:5WEU:NXF4:I6S3:WDIE:GCRD:L3YA:VWC4:ZRYZ", // ID - "test" // name - ); - } -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/InfoParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/InfoParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/InfoParseTest.java deleted file mode 100644 index 87d149c..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/InfoParseTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.Info; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; - -@Test(groups = "unit") -public class InfoParseTest extends BaseDockerParseTest<Info> { - - @Override - public String resource() { - return "/info.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Info expected() { - return Info.create( - 0, // containers - true, // debug - "aufs", // driver - ImmutableList.<List<String>>of( - ImmutableList.of("Root Dir", "/mnt/sda1/var/lib/docker/aufs"), - ImmutableList.of("Dirs", "46") - ), // driverStatus - "native-0.2", // ExecutionDriver - true, // IPv4Forwarding - 46, // Images - "https://index.docker.io/v1/", // IndexServerAddress - "/usr/local/bin/docker", // InitPath - "", // InitSha1 - "3.16.7-tinycore64", // KernelVersion - true, // MemoryLimit - 0, // NEventsListener - 10, // NFd - 11, // NGoroutines - "Boot2Docker 1.4.1 (TCL 5.4); master : 86f7ec8 - Tue Dec 16 23:11:29 UTC 2014", // OperatingSystem - true, // SwapLimit - "/mnt/sda1/var/lib/docker", // DockerRootDir - null, // Labels - 2105585664, // MemTotal - 8, // NCPU - "7V5Y:IQ2M:HWIL:AZJV:HKRD:Q7OZ:3EQA:ZHMO:4LAD:OSIY:YBAA:BSX6", // ID - "boot2docker" // name - ); - } -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/NetworkParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/NetworkParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/NetworkParseTest.java deleted file mode 100644 index 9b4815c..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/NetworkParseTest.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.Map; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.Network; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; - -@Test(groups = "unit") -public class NetworkParseTest extends BaseDockerParseTest<Network> { - - @Override - public String resource() { - return "/network.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Network expected() { - - Map<String, String> options = ImmutableMap.<String, String> builder() - .put("com.docker.network.bridge.default_bridge", "true") - .put("com.docker.network.bridge.enable_icc", "true") - .put("com.docker.network.bridge.enable_ip_masquerade", "true") - .put("com.docker.network.bridge.host_binding_ipv4", "0.0.0.0") - .put("com.docker.network.bridge.name", "docker0") - .put("com.docker.network.driver.mtu", "1500") - .build(); - - return Network.create( - "bridge", // Name - "f2de39df4171b0dc801e8002d1d999b77256983dfc63041c0f34030aa3977566", // Id - "local", // Scope - "bridge", // Driver - Network.IPAM.create( - "default", // driver - ImmutableList.of(Network.IPAM.Config.create("172.17.0.0/16", null, null)) // config - ), - ImmutableMap.of("39b69226f9d79f5634485fb236a23b2fe4e96a0a94128390a7fbbcc167065867", - Network.Details.create( - "ed2419a97c1d9954d05b46e462e7002ea552f216e9b136b80a7db8d98b442eda", //endpointId - "02:42:ac:11:00:02", // MAC - "172.17.0.2/16", // ipv4address - "" // ipv6address - ) - ), - options); - } -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/NetworksParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/NetworksParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/NetworksParseTest.java deleted file mode 100644 index d9053f8..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/NetworksParseTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import java.util.List; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.Network; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; - -@Test(groups = "unit") -public class NetworksParseTest extends BaseDockerParseTest<List<Network>> { - - @Override - public String resource() { - return "/networks.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public List<Network> expected() { - return ImmutableList.of( - - Network.create( - "bridge", // Name - "f2de39df4171b0dc801e8002d1d999b77256983dfc63041c0f34030aa3977566", // Id - "local", // Scope - "bridge", // Driver - Network.IPAM.create( - "default", // driver - ImmutableList.of(Network.IPAM.Config.create("172.17.0.0/16", null, null)) // config - ), - ImmutableMap.of("39b69226f9d79f5634485fb236a23b2fe4e96a0a94128390a7fbbcc167065867", - Network.Details.create( - "ed2419a97c1d9954d05b46e462e7002ea552f216e9b136b80a7db8d98b442eda", //endpointId - "02:42:ac:11:00:02", // MAC - "172.17.0.2/16", // ipv4address - "" // ipv6address - ) - ), - ImmutableMap.<String, String> builder() - .put("com.docker.network.bridge.default_bridge", "true") - .put("com.docker.network.bridge.enable_icc", "true") - .put("com.docker.network.bridge.enable_ip_masquerade", "true") - .put("com.docker.network.bridge.host_binding_ipv4", "0.0.0.0") - .put("com.docker.network.bridge.name", "docker0") - .put("com.docker.network.driver.mtu", "1500") - .build() - ), - Network.create( - "none", // Name - "e086a3893b05ab69242d3c44e49483a3bbbd3a26b46baa8f61ab797c1088d794", // Id - "local", // Scope - "null", // Driver - Network.IPAM.create( - "default", // driver - ImmutableList.<Network.IPAM.Config>of() // config - ), - ImmutableMap.<String, Network.Details> of(), - ImmutableMap.<String, String> of() - ), - Network.create( - "host", // Name - "13e871235c677f196c4e1ecebb9dc733b9b2d2ab589e30c539efeda84a24215e", // Id - "local", // Scope - "host", // Driver - Network.IPAM.create( - "default", // driver - ImmutableList.<Network.IPAM.Config>of() // config - ), - ImmutableMap.<String, Network.Details> of(), - ImmutableMap.<String, String> of() - ) - ); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/java/org/jclouds/docker/parse/VersionParseTest.java ---------------------------------------------------------------------- diff --git a/docker/src/test/java/org/jclouds/docker/parse/VersionParseTest.java b/docker/src/test/java/org/jclouds/docker/parse/VersionParseTest.java deleted file mode 100644 index 2d9781b..0000000 --- a/docker/src/test/java/org/jclouds/docker/parse/VersionParseTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.docker.parse; - -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; - -import org.jclouds.docker.domain.Version; -import org.jclouds.docker.internal.BaseDockerParseTest; -import org.testng.annotations.Test; - -@Test(groups = "unit") -public class VersionParseTest extends BaseDockerParseTest<Version> { - - @Override - public String resource() { - return "/version.json"; - } - - @Override - @Consumes(MediaType.APPLICATION_JSON) - public Version expected() { - return Version.create( - "1.15", - "amd64", - "c78088f", - "go1.3.3", - "3.16.4-tinycore64", - "linux", - "1.3.0"); - } -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/Dockerfile ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/Dockerfile b/docker/src/test/resources/Dockerfile deleted file mode 100644 index 0cedc5e..0000000 --- a/docker/src/test/resources/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - - -FROM kwart/alpine-ext:3.3-ssh -MAINTAINER JClouds Dev <[email protected]> http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/SimpleDockerfile ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/SimpleDockerfile b/docker/src/test/resources/SimpleDockerfile deleted file mode 100644 index ecce563..0000000 --- a/docker/src/test/resources/SimpleDockerfile +++ /dev/null @@ -1,18 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -FROM scratch \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/cert.pem ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/cert.pem b/docker/src/test/resources/cert.pem deleted file mode 100644 index ab2c41a..0000000 --- a/docker/src/test/resources/cert.pem +++ /dev/null @@ -1,22 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDtTCCAp2gAwIBAgIJAL/TuOknjSR5MA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV -BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX -aWRnaXRzIFB0eSBMdGQwHhcNMTQxMjEyMTYwMDEyWhcNMjQxMjA5MTYwMDEyWjBF -MQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50 -ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB -CgKCAQEAuUQcWlhrMXmzLSLiHUADdF98IHKRde7I1eDT91NndOtx4pKfvVc3WPei -REIMksrU8F1r4A086h5++xxDf27LxR4EC9ry0Q6GgJ9Un9RB9clCWRhLw8awHAS7 -HgAEN8YOSCeF3qP+78muxyMkIKQbYn3TqqOzRZcK576hX+a6URNJDhbHHAzq2fxm -rOSRVdPXzKLl48ABfmqJ6+KiXc6e7mQSgmwBLfh51zxmJNNwZ5e+6sfZ8oz4yM4y -Kzek53GRSFj+VFNp5nS/x2072fUak2i6DGut5LibFfh1kqskIm+Iq5WwO15RbojZ -CR6fkktCl5QOtea5p8SETZpwWfaddQIDAQABo4GnMIGkMB0GA1UdDgQWBBQtOc1g -1gxisDQ7VTmRYI1U9WHVMDB1BgNVHSMEbjBsgBQtOc1g1gxisDQ7VTmRYI1U9WHV -MKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV -BAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAL/TuOknjSR5MAwGA1UdEwQF -MAMBAf8wDQYJKoZIhvcNAQEFBQADggEBABxYn5JdJYC8FUITqymJeNZ72/a2GVf8 -+gGlWH+DuiyviEAGMGpv7O4GXfS/6UiUBO7zMe2z15fUvNgd5RQBh4T+l5bA9aS0 -5JhENIpEApiIcEII4ISIk6pTLmAZjWvqq2kStiiFPNvdKFclYqFuKHv847EA8kGz -9u6MuUyFrJipWZ3g8zeYiwLWaAzvimbHomO7HU4pcvYaCSl7O5BQTToKwLfHcx5y -UG6uRf+0auC5QbotiXpYNdXhIbSD/2xXbjxGwYy4yRWHINcbwfK8iVRhR4eSvtBC -WvF3Vp8xLJxp6ujBd+a27AOWEiE1XM8oAoUpEzdIINY1GtUSbXzNboc= ------END CERTIFICATE----- http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/container-1.21-create.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/container-1.21-create.json b/docker/src/test/resources/container-1.21-create.json deleted file mode 100644 index 4998569..0000000 --- a/docker/src/test/resources/container-1.21-create.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Hostname": "", - "Domainname": "", - "User": "", - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "Tty": false, - "OpenStdin": false, - "StdinOnce": false, - "Env": [ - "FOO=bar", - "BAZ=quux" - ], - "Cmd": [ - "date" - ], - "Entrypoint": [""], - "Image": "ubuntu", - "Labels": { - "com.example.vendor": "Acme", - "com.example.license": "GPL", - "com.example.version": "1.0" - }, - "Volumes": { - "/volumes/data": {} - }, - "WorkingDir": "", - "NetworkDisabled": false, - "MacAddress": "12:34:56:78:9a:bc", - "ExposedPorts": { - "22/tcp": {} - }, - "StopSignal": "SIGTERM", - "HostConfig": { - "Binds": ["/tmp:/tmp"], - "Links": ["redis3:redis"], - "LxcConf": [{"lxc.utsname":"docker"}], - "Memory": 0, - "MemorySwap": 0, - "MemoryReservation": 0, - "KernelMemory": 0, - "CpuShares": 512, - "CpuPeriod": 100000, - "CpuQuota": 50000, - "CpusetCpus": "0,1", - "CpusetMems": "0,1", - "BlkioWeight": 300, - "MemorySwappiness": 60, - "OomKillDisable": false, - "PortBindings": { "22/tcp": [{ "HostPort": "11022" }] }, - "PublishAllPorts": false, - "Privileged": false, - "ReadonlyRootfs": false, - "Dns": ["8.8.8.8"], - "DnsOptions": [""], - "DnsSearch": [""], - "ExtraHosts": null, - "VolumesFrom": ["parent", "other:ro"], - "CapAdd": ["NET_ADMIN"], - "CapDrop": ["MKNOD"], - "GroupAdd": ["newgroup"], - "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 }, - "NetworkMode": "bridge", - "Devices": [], - "Ulimits": [{}], - "LogConfig": { "Type": "json-file", "Config": {} }, - "SecurityOpt": [], - "CgroupParent": "", - "VolumeDriver": "" - } - } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/container-1.21-inspect.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/container-1.21-inspect.json b/docker/src/test/resources/container-1.21-inspect.json deleted file mode 100644 index ade2851..0000000 --- a/docker/src/test/resources/container-1.21-inspect.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "AppArmorProfile": "", - "Args": [ - "-c", - "exit 9" - ], - "Config": { - "AttachStderr": true, - "AttachStdin": false, - "AttachStdout": true, - "Cmd": [ - "/bin/sh", - "-c", - "exit 9" - ], - "Domainname": "", - "Entrypoint": null, - "Env": [ - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - ], - "ExposedPorts": null, - "Hostname": "ba033ac44011", - "Image": "ubuntu", - "Labels": { - "com.example.vendor": "Acme", - "com.example.license": "GPL", - "com.example.version": "1.0" - }, - "MacAddress": "", - "NetworkDisabled": false, - "OnBuild": null, - "OpenStdin": false, - "StdinOnce": false, - "Tty": false, - "User": "", - "Volumes": null, - "WorkingDir": "", - "StopSignal": "SIGTERM" - }, - "Created": "2015-01-06T15:47:31.485331387Z", - "Driver": "devicemapper", - "ExecDriver": "native-0.2", - "ExecIDs": null, - "HostConfig": { - "Binds": null, - "BlkioWeight": 0, - "CapAdd": null, - "CapDrop": null, - "ContainerIDFile": "", - "CpusetCpus": "", - "CpusetMems": "", - "CpuShares": 0, - "CpuPeriod": 100000, - "Devices": [], - "Dns": null, - "DnsOptions": null, - "DnsSearch": null, - "ExtraHosts": null, - "IpcMode": "", - "Links": null, - "LxcConf": [], - "Memory": 0, - "MemorySwap": 0, - "MemoryReservation": 0, - "KernelMemory": 0, - "OomKillDisable": false, - "NetworkMode": "bridge", - "PortBindings": {}, - "Privileged": false, - "ReadonlyRootfs": false, - "PublishAllPorts": false, - "RestartPolicy": { - "MaximumRetryCount": 2, - "Name": "on-failure" - }, - "LogConfig": { - "Config": null, - "Type": "json-file" - }, - "SecurityOpt": null, - "VolumesFrom": null, - "Ulimits": [{}], - "VolumeDriver": "" - }, - "HostnamePath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hostname", - "HostsPath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hosts", - "LogPath": "/var/lib/docker/containers/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b-json.log", - "Id": "ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39", - "Image": "04c5d3b7b0656168630d3ba35d8889bd0e9caafcaeb3004d2bfbc47e7c5d35d2", - "MountLabel": "", - "Name": "/boring_euclid", - "NetworkSettings": { - "Bridge": "", - "SandboxID": "", - "HairpinMode": false, - "LinkLocalIPv6Address": "", - "LinkLocalIPv6PrefixLen": 0, - "Ports": null, - "SandboxKey": "", - "SecondaryIPAddresses": null, - "SecondaryIPv6Addresses": null, - "EndpointID": "", - "Gateway": "", - "GlobalIPv6Address": "", - "GlobalIPv6PrefixLen": 0, - "IPAddress": "", - "IPPrefixLen": 0, - "IPv6Gateway": "", - "MacAddress": "", - "Networks": { - "bridge": { - "EndpointID": "", - "Gateway": "", - "IPAddress": "", - "IPPrefixLen": 0, - "IPv6Gateway": "", - "GlobalIPv6Address": "", - "GlobalIPv6PrefixLen": 0, - "MacAddress": "" - } - } - }, - "Path": "/bin/sh", - "ProcessLabel": "", - "ResolvConfPath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/resolv.conf", - "RestartCount": 1, - "State": { - "Error": "", - "ExitCode": 9, - "FinishedAt": "2015-01-06T15:47:32.080254511Z", - "OOMKilled": false, - "Paused": false, - "Pid": 0, - "Restarting": false, - "Running": true, - "StartedAt": "2015-01-06T15:47:32.072697474Z", - "Status": "running" - }, - "Mounts": [ - { - "Source": "/data", - "Destination": "/data", - "Mode": "ro,Z", - "RW": false - } - ] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/container-creation.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/container-creation.json b/docker/src/test/resources/container-creation.json deleted file mode 100644 index 3e34e0b..0000000 --- a/docker/src/test/resources/container-creation.json +++ /dev/null @@ -1 +0,0 @@ -{"Id":"c6c74153ae4b1d1633d68890a68d89c40aa5e284a1ea016cbc6ef0e634ee37b2","Warnings":null} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/container.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/container.json b/docker/src/test/resources/container.json deleted file mode 100644 index 37c5db4..0000000 --- a/docker/src/test/resources/container.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "Args": [ - "-iface", - "ethwe", - "-wait", - "5", - "-name", - "7a:63:a2:39:7b:0f" - ], - "Config": { - "AttachStderr": false, - "AttachStdin": false, - "AttachStdout": false, - "Cmd": [ - "-name", - "7a:63:a2:39:7b:0f" - ], - "CpuShares": 0, - "Cpuset": "", - "Domainname": "", - "Entrypoint": [ - "/home/weave/weaver", - "-iface", - "ethwe", - "-wait", - "5" - ], - "Env": [ - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - ], - "ExposedPorts": { - "6783/tcp": {}, - "6783/udp": {} - }, - "Hostname": "6c9932f478bd", - "Image": "zettio/weave", - "Memory": 0, - "MemorySwap": 0, - "NetworkDisabled": false, - "OnBuild": null, - "OpenStdin": false, - "PortSpecs": null, - "SecurityOpts": null, - "StdinOnce": false, - "Tty": false, - "User": "", - "Volumes": null, - "WorkingDir": "/home/weave" - }, - "Created": "2014-10-31T17:00:21.544197943Z", - "Driver": "aufs", - "ExecDriver": "native-0.2", - "HostConfig": { - "Binds": null, - "CapAdd": ["NET_ADMIN"], - "CapDrop": ["MKNOD"], - "ContainerIDFile": "", - "Devices": [], - "Dns": [ - "8.8.8.8", - "8.8.4.4" - ], - "DnsSearch": null, - "ExtraHosts": ["extra:169.254.0.1"], - "Links": null, - "LxcConf": [], - "NetworkMode": "bridge", - "PortBindings": { - "6783/tcp": [ - { - "HostIp": "", - "HostPort": "6783" - } - ], - "6783/udp": [ - { - "HostIp": "", - "HostPort": "6783" - } - ] - }, - "Privileged": true, - "PublishAllPorts": false, - "RestartPolicy": { - "MaximumRetryCount": 0, - "Name": "" - }, - "VolumesFrom": null - }, - "HostnamePath": "/var/lib/docker/containers/6c9932f478bd761f32ddb54ed28ab42ab6fac6f2a279f561ea31503ee9d39524/hostname", - "HostsPath": "/var/lib/docker/containers/6c9932f478bd761f32ddb54ed28ab42ab6fac6f2a279f561ea31503ee9d39524/hosts", - "Id": "6c9932f478bd761f32ddb54ed28ab42ab6fac6f2a279f561ea31503ee9d39524", - "Image": "57e570db16baba1e8c0d6f3c15868ddb400f64ff76ec948e65c3ca3f15fb3587", - "MountLabel": "", - "Name": "/weave", - "NetworkSettings": { - "Bridge": "", - "SandboxID": "3ef128b055eb9ef62a6a2c281d97a2dfde5f47947d490f1dd2a81612611d961f", - "HairpinMode": false, - "LinkLocalIPv6Address": "", - "LinkLocalIPv6PrefixLen": 0, - "Ports": {}, - "SandboxKey": "/var/run/docker/netns/3ef128b055eb", - "SecondaryIPAddresses": null, - "SecondaryIPv6Addresses": null, - "EndpointID": "9e8dcc0c8288938a923018fee0728cee8e6de7c01a5150738ee6e51c1caf8cf6", - "Gateway": "172.17.0.1", - "GlobalIPv6Address": "", - "GlobalIPv6PrefixLen": 0, - "IPAddress": "172.17.0.2", - "IPPrefixLen": 16, - "IPv6Gateway": "", - "MacAddress": "02:42:ac:11:00:02", - "Networks": { - "JCLOUDS_NETWORK": { - "EndpointID": "04268fbb4dc368b5a53bb1c3f89294a4f0c72095deb944db3c4efc6d6a439304", - "Gateway": "172.19.0.1", - "IPAddress": "172.19.0.2", - "IPPrefixLen": 16, - "IPv6Gateway": "", - "GlobalIPv6Address": "", - "GlobalIPv6PrefixLen": 0, - "MacAddress": "02:42:ac:13:00:02" - }, - "bridge": { - "EndpointID": "9e8dcc0c8288938a923018fee0728cee8e6de7c01a5150738ee6e51c1caf8cf6", - "Gateway": "172.17.0.1", - "IPAddress": "172.17.0.2", - "IPPrefixLen": 16, - "IPv6Gateway": "", - "GlobalIPv6Address": "", - "GlobalIPv6PrefixLen": 0, - "MacAddress": "02:42:ac:11:00:02" - } - } - }, - "Node": { - "IP": "10.10.10.10" - }, - "Path": "/home/weave/weaver", - "ProcessLabel": "", - "ResolvConfPath": "/var/lib/docker/containers/6c9932f478bd761f32ddb54ed28ab42ab6fac6f2a279f561ea31503ee9d39524/resolv.conf", - "SecurityOpt": [], - "State": { - "Status": "running", - "Running": true, - "Paused": false, - "Restarting": false, - "OOMKilled": false, - "Dead": false, - "Pid": 10357, - "ExitCode": 0, - "Error": "", - "StartedAt": "2015-11-10T09:33:21.68146124Z", - "FinishedAt": "0001-01-01T00:00:00Z" - }, - "Volumes": {}, - "VolumesRW": {} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/containers.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/containers.json b/docker/src/test/resources/containers.json deleted file mode 100644 index e7e7e3b..0000000 --- a/docker/src/test/resources/containers.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "Command": "/usr/sbin/sshd -D", - "Created": 1395472605, - "Id": "6d35806c1bd2b25cd92bba2d2c2c5169dc2156f53ab45c2b62d76e2d2fee14a9", - "Image": "jclouds/ubuntu:latest", - "Names": [ - "/hopeful_mclean" - ], - "Ports": [ - { - "IP": "0.0.0.0", - "PrivatePort": 22, - "PublicPort": 49231, - "Type": "tcp" - } - ], - "Status": "Up 55 seconds" - }, - { - "Command": "/usr/sbin/sshd -D", - "Created": 1395472605, - "Id": "6d35806c1bd2b25cd92bba2d2c2c5169dc2156f53ab45c2b62d76e2d2fee14a2", - "Image": "jclouds/ubuntu:latest", - "Names": [ - "/hopeful_mclean" - ], - "Ports": [ - { - "PrivatePort": 22, - "Type": "tcp" - } - ], - "Status": "Up 55 seconds" - } -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/exec.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/exec.json b/docker/src/test/resources/exec.json deleted file mode 100644 index d5f6265..0000000 --- a/docker/src/test/resources/exec.json +++ /dev/null @@ -1 +0,0 @@ -{"Id":"dbf45d296388032ebb9872edb75847f6655a72b4e9ab0d99ae1c75589c4ca957"} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/exec.start ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/exec.start b/docker/src/test/resources/exec.start deleted file mode 100644 index 0d72624..0000000 Binary files a/docker/src/test/resources/exec.start and /dev/null differ http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/execInspect.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/execInspect.json b/docker/src/test/resources/execInspect.json deleted file mode 100644 index a47cf49..0000000 --- a/docker/src/test/resources/execInspect.json +++ /dev/null @@ -1 +0,0 @@ -{"ID":"fda1cf8064863fc0667c691c69793fdb7d0bd4a1fabb8250536abe5203e4208a","Running":false,"ExitCode":2,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"/bin/sh","arguments":["-c","echo -n Standard \u003e\u00261 \u0026\u0026 echo -n Error \u003e\u00262 \u0026\u0026 exit 2"]},"OpenStdin":false,"OpenStderr":true,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":1561,"ExitCode":0,"Error":"","StartedAt":"2015-09-29T12:36:21.011469908Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"07695c5170a1cbf3402552202fd28d2beb81fce5958a244e9ad7c8cb0ded936e","Created":"2015-09-29T12:36:19.829846377Z","Path":"/bin/sh","Args":["-c","touch hello; while true; do echo hello world; sleep 1; done"],"Config":{"Hostname":"07695c5170a1","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null ,"Cmd":["/bin/sh","-c","touch hello; while true; do echo hello world; sleep 1; done"],"Image":"ff8f955d1fed83a6239675b9a767fc9502db9934922a2f69ac6bf4cad8a7d7be","Volumes":null,"VolumeDriver":"","WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"MacAddress":"","OnBuild":null,"Labels":{},"Init":""},"Image":"ff8f955d1fed83a6239675b9a767fc9502db9934922a2f69ac6bf4cad8a7d7be","NetworkSettings":{"Bridge":"","EndpointID":"78d38a6f4d63966b16ca824a533b70f0a3a00490586688a188f67ec0bb07e68f","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"HairpinMode":false,"IPAddress":"172.17.0.3","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:03","NetworkID":"880f733909fa4ad45c8fbc95b80c83e22a7b46f8cd7fb23dea62b0996ef1c8c6","PortMapping":null,"Ports":{},"SandboxKey":"/var/run/docker/netns/07695c5170a1","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null},"ResolvConfPath":"/var/lib/docker/containers/07695c 5170a1cbf3402552202fd28d2beb81fce5958a244e9ad7c8cb0ded936e/resolv.conf","HostnamePath":"/var/lib/docker/containers/07695c5170a1cbf3402552202fd28d2beb81fce5958a244e9ad7c8cb0ded936e/hostname","HostsPath":"/var/lib/docker/containers/07695c5170a1cbf3402552202fd28d2beb81fce5958a244e9ad7c8cb0ded936e/hosts","LogPath":"/var/lib/docker/containers/07695c5170a1cbf3402552202fd28d2beb81fce5958a244e9ad7c8cb0ded936e/07695c5170a1cbf3402552202fd28d2beb81fce5958a244e9ad7c8cb0ded936e-json.log","Name":"/miscApiTest","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","RestartCount":0,"UpdateDns":false,"MountPoints":{},"Volumes":{},"VolumesRW":{},"Init":"","AppArmorProfile":""}} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/history-apiver22.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/history-apiver22.json b/docker/src/test/resources/history-apiver22.json deleted file mode 100644 index 87e1ddd..0000000 --- a/docker/src/test/resources/history-apiver22.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "Comment": "", - "Created": 1456304238, - "CreatedBy": "", - "Id": "sha256:fcf9d588ee9ab46c5a888e67f892fac66e6396eb195a743e50c0c5f9a4710e66", - "Size": 188605160, - "Tags": [ - "registry.acme.com:8888/jboss-eap-test/eap-test:1.0-3" - ] - }, - { - "Comment": "", - "Created": 1455838658, - "CreatedBy": "", - "Id": "<missing>", - "Size": 195019519, - "Tags": null - }, - { - "Comment": "Imported from -", - "Created": 1455812978, - "CreatedBy": "", - "Id": "<missing>", - "Size": 203250948, - "Tags": null - } -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/history.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/history.json b/docker/src/test/resources/history.json deleted file mode 100644 index d1c40a8..0000000 --- a/docker/src/test/resources/history.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "Id": "3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710", - "Created": 1398108230, - "CreatedBy": "/bin/sh -c #(nop) ADD file:eb15dbd63394e063b805a3c32ca7bf0266ef64676d5a6fab4801f2e81e2a5148 in /", - "Tags": [ - "ubuntu:lucid", - "ubuntu:10.04" - ], - "Size": 182964289, - "Comment": "" - }, - { - "Id": "6cfa4d1f33fb861d4d114f43b25abd0ac737509268065cdfd69d544a59c85ab8", - "Created": 1398108222, - "CreatedBy": "/bin/sh -c #(nop) MAINTAINER Tianon Gravi <[email protected]> - mkimage-debootstrap.sh -i iproute,iputils-ping,ubuntu-minimal -t lucid.tar.xz lucid http://archive.ubuntu.com/ubuntu/", - "Tags": null, - "Size": 0, - "Comment": "" - }, - { - "Id": "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158", - "Created": 1371157430, - "CreatedBy": "", - "Tags": [ - "scratch12:latest", - "scratch:latest" - ], - "Size": 0, - "Comment": "Imported from -" - } -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/image.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/image.json b/docker/src/test/resources/image.json deleted file mode 100644 index 8d34de7..0000000 --- a/docker/src/test/resources/image.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "Architecture": "amd64", - "Author": "author", - "Comment": "comment", - "Config": { - "AttachStderr": false, - "AttachStdin": false, - "AttachStdout": false, - "Cmd": [ - "/bin/sh", - "-c", - "echo hello world" - ], - "CpuShares": 0, - "Cpuset": "", - "Domainname": "", - "Entrypoint": null, - "Env": [ - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - "HOME=/root", - "JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" - ], - "ExposedPorts": { - "8081/tcp": {} - }, - "Hostname": "f22711318734", - "Image": "05794515afd5724df1cdf0e674ae932455fce7dea3c70a94d77119ad1fa954ba", - "Memory": 0, - "MemorySwap": 0, - "NetworkDisabled": false, - "OnBuild": [], - "OpenStdin": false, - "PortSpecs": null, - "StdinOnce": false, - "Tty": false, - "User": "user", - "Volumes": null, - "WorkingDir": "/home/user" - }, - "Container": "0d14967353dbbd2ee78abe209f026f71654da49692fa2b044296ec3c810027b3", - "ContainerConfig": { - "AttachStderr": false, - "AttachStdin": false, - "AttachStdout": false, - "Cmd": [ - "/bin/sh", - "-c", - "echo hello world" - ], - "CpuShares": 0, - "Cpuset": "", - "Domainname": "", - "Entrypoint": null, - "Env": [ - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - "HOME=/root", - "JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" - ], - "ExposedPorts": { - "8081/tcp": {} - }, - "Hostname": "f22711318734", - "Image": "05794515afd5724df1cdf0e674ae932455fce7dea3c70a94d77119ad1fa954ba", - "Memory": 0, - "MemorySwap": 0, - "NetworkDisabled": false, - "OnBuild": [], - "OpenStdin": false, - "PortSpecs": null, - "StdinOnce": false, - "Tty": false, - "User": "user", - "Volumes": null, - "WorkingDir": "/home/user" - }, - "Created": "2014-11-24T11:09:20.310023104Z", - "DockerVersion": "1.3.1", - "Id": "cbba6639a342646deed70d7ea6162fa2a0acea9300f911f4e014555fe37d3456", - "Os": "linux", - "Parent": "05794515afd5724df1cdf0e674ae932455fce7dea3c70a94d77119ad1fa954ba", - "Size": 0, - "VirtualSize": 808709069 -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/images.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/images.json b/docker/src/test/resources/images.json deleted file mode 100644 index 63bec4f..0000000 --- a/docker/src/test/resources/images.json +++ /dev/null @@ -1,53 +0,0 @@ -[ - { - "Created": 1442866547, - "Id": "d7057cb020844f245031d27b76cb18af05db1cc3a96a29fa7777af75f5ac91a3", - "Labels": null, - "ParentId": "cfa753dfea5e68a24366dfba16e6edf573daa447abf65bc11619c1a98a3aff54", - "RepoDigests": [], - "RepoTags": [ - "docker.io/busybox:1.23.2", - "docker.io/busybox:latest" - ], - "Size": 0, - "VirtualSize": 1095501 - }, - { - "Created": 1442598293, - "Id": "633fcd11259e8d6bccfbb59a4086b95b0d0fb44edfc3912000ef1f70e8a7bfc6", - "Labels": null, - "ParentId": "b65c936b5fb601d680ed656b1ccf8ab857c0e5cb521043a005405c194e9a69f3", - "RepoDigests": [], - "RepoTags": [ - "docker.io/busybox:ubuntu-14.04", - "jclouds:testTag" - ], - "Size": 0, - "VirtualSize": 5607885 - }, - { - "Created": 1442260874, - "Id": "f4fddc471ec22fc1f7d37768132f1753bc171121e30ac2af7fcb0302588197c0", - "Labels": null, - "ParentId": "", - "RepoDigests": [], - "RepoTags": [ - "docker.io/alpine:3.2" - ], - "Size": 5244426, - "VirtualSize": 5244426 - }, - { - "Created": 1440102075, - "Id": "91e54dfb11794fad694460162bf0cb0a4fa710cfa3f60979c177d920813e267c", - "Labels": {}, - "ParentId": "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82", - "RepoDigests": [], - "RepoTags": [ - "docker.io/ubuntu:14.04", - "docker.io/ubuntu:latest" - ], - "Size": 0, - "VirtualSize": 188333286 - } -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/info.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/info.json b/docker/src/test/resources/info.json deleted file mode 100644 index 4c67e6a..0000000 --- a/docker/src/test/resources/info.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "Containers": 0, - "Debug": true, - "DockerRootDir": "/mnt/sda1/var/lib/docker", - "Driver": "aufs", - "DriverStatus": [ - [ - "Root Dir", - "/mnt/sda1/var/lib/docker/aufs" - ], - [ - "Dirs", - "46" - ] - ], - "ExecutionDriver": "native-0.2", - "ID": "7V5Y:IQ2M:HWIL:AZJV:HKRD:Q7OZ:3EQA:ZHMO:4LAD:OSIY:YBAA:BSX6", - "IPv4Forwarding": true, - "Images": 46, - "IndexServerAddress": "https://index.docker.io/v1/", - "InitPath": "/usr/local/bin/docker", - "InitSha1": "", - "KernelVersion": "3.16.7-tinycore64", - "Labels": null, - "MemTotal": 2105585664, - "MemoryLimit": true, - "NCPU": 8, - "NEventsListener": 0, - "NFd": 10, - "NGoroutines": 11, - "Name": "boot2docker", - "OperatingSystem": "Boot2Docker 1.4.1 (TCL 5.4); master : 86f7ec8 - Tue Dec 16 23:11:29 UTC 2014", - "SwapLimit": true -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/info2.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/info2.json b/docker/src/test/resources/info2.json deleted file mode 100644 index 11a13d5..0000000 --- a/docker/src/test/resources/info2.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Architecture": "x86_64", - "BridgeNfIp6tables": true, - "BridgeNfIptables": true, - "CPUSet": true, - "CPUShares": true, - "CgroupDriver": "cgroupfs", - "ClusterAdvertise": "", - "ClusterStore": "", - "Containers": 0, - "ContainersPaused": 0, - "ContainersRunning": 0, - "ContainersStopped": 0, - "CpuCfsPeriod": true, - "CpuCfsQuota": true, - "Debug": false, - "DockerRootDir": "/var/lib/docker", - "Driver": "aufs", - "DriverStatus": [ - [ - "Root Dir", - "/var/lib/docker/aufs" - ], - [ - "Backing Filesystem", - "extfs" - ], - [ - "Dirs", - "117" - ], - [ - "Dirperm1 Supported", - "true" - ] - ], - "ExecutionDriver": "", - "ExperimentalBuild": false, - "HttpProxy": "", - "HttpsProxy": "", - "ID": "KFWR:PMVY:BEWE:TD52:5WEU:NXF4:I6S3:WDIE:GCRD:L3YA:VWC4:ZRYZ", - "IPv4Forwarding": true, - "Images": 39, - "IndexServerAddress": "https://index.docker.io/v1/", - "KernelMemory": true, - "KernelVersion": "4.4.0-22-generic", - "Labels": null, - "LoggingDriver": "json-file", - "MemTotal": 8248356864, - "MemoryLimit": true, - "NCPU": 4, - "NEventsListener": 0, - "NFd": 33, - "NGoroutines": 83, - "Name": "test", - "NoProxy": "", - "OSType": "linux", - "OomKillDisable": true, - "OperatingSystem": "Ubuntu 16.04 LTS", - "Plugins": { - "Authorization": null, - "Network": [ - "bridge", - "null", - "host" - ], - "Volume": [ - "local" - ] - }, - "RegistryConfig": { - "IndexConfigs": { - "docker.io": { - "Mirrors": null, - "Name": "docker.io", - "Official": true, - "Secure": true - } - }, - "InsecureRegistryCIDRs": [ - "0.0.0.0/0", - "127.0.0.0/8" - ], - "Mirrors": null - }, - "ServerVersion": "1.11.1", - "SwapLimit": false, - "SystemStatus": null, - "SystemTime": "2016-05-24T15:20:15.407969411+02:00" -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/key.pem ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/key.pem b/docker/src/test/resources/key.pem deleted file mode 100644 index 23ebe5e..0000000 --- a/docker/src/test/resources/key.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEogIBAAKCAQEAuUQcWlhrMXmzLSLiHUADdF98IHKRde7I1eDT91NndOtx4pKf -vVc3WPeiREIMksrU8F1r4A086h5++xxDf27LxR4EC9ry0Q6GgJ9Un9RB9clCWRhL -w8awHAS7HgAEN8YOSCeF3qP+78muxyMkIKQbYn3TqqOzRZcK576hX+a6URNJDhbH -HAzq2fxmrOSRVdPXzKLl48ABfmqJ6+KiXc6e7mQSgmwBLfh51zxmJNNwZ5e+6sfZ -8oz4yM4yKzek53GRSFj+VFNp5nS/x2072fUak2i6DGut5LibFfh1kqskIm+Iq5Ww -O15RbojZCR6fkktCl5QOtea5p8SETZpwWfaddQIDAQABAoIBAAoj2zVqr3tGwPLQ -fPXC4i2FaGLSQnnk9uMV6iQYUYpJtLME+W9Ajcv1ydDYmJ2UMnFxe40IzHO39ZVC -58LaypZgXTJU6oNcuynhDp2s3WtZd6MuvD7b6hmufJtYvuJamb+DQkV8TmDLdiB6 -IOkUcldCscoeKZq+eJ9UhLqeA0aaosVUa2cfxJM2seGhF6iJmrJChvaKlc0xfqxG -l3Y+w01YNQgFBT7vxMzfXHZkVjY8jrrsxhhfyVKiheyaBZ0G3hQCZkBywR6h2bns -2rWM2mOcaWL7+lJiMB0d9el58HzTxFVxuPENbE2Li1SqTG1pn+Fif0VwG3Te0lPo -xz7EL8UCgYEA3wJLL2nfVqS73yf5k2w1+uiBHK4RVHaJeQgxv1QlgeunCwOWZ0dp -MDPQVi9CfWhEQUZKYr118V3ikecOYh+o8ruStz9fNTeA+7IXtBaE1cAbqU9ZgeS2 -vcAIfEzQmN9JtSiFsywJKLON4/aDYXGR1NZDSaXouFQ7T0F/SaL/CUsCgYEA1Kxu -1QjOwFC1tdB/2MF9Fn7X+YWBQsdE66a5HO30FTlMmLb/ecmngB5OxvdvpfMRMQeD -mhifSzAfnTBAzBcuz9/il6sKygfhQX6PyxtTJ5o4XlwOArkaBew8H0gBXwfAL33G -816rNF2kCfgDJisj9iPrl+QAgrg3sJsfIwk5fD8CgYAx075eyqYHIumDM9hUsyHg -fOCUOuROXenbbBRJbpCu1atOD7AkRVVgWsNa7lZJ1OkjOIRYSYK3ukVsWhbhn7dM -/NIMNZGdP1iHZERdjYaCh9jmXH9gQWz/Oo/qzfLxpTo/yt0MqnMlb/DtFWBHfmua -BYGlS/eSb+eMjtLU7iFTvwKBgDiGuFKhK6rMCPARQdnP27p97lOg23FvW28y+iKp -UGXPu/8fLJonMgEIjTGvFJrMFzar45uyjaxDVzPFXoOgac3QmP5s9Mor/AAXboqy -cZCmGfNijkrE/hiy6Gv8DHlAqyE0Ugvfjqu1c+M+az/a2Y0TkQvnCwezhQHIySbb -zc6rAoGAcg9GZnYk64V2c4uzaeTekkLkZhPTv4F7xFWb0JmTurL5BR//TDDk9Oy8 -pd5VoiBnKyCRTo2oC8J8COobxJXbl5qUxEeapjtKlQeBiROWE51K2DHacD2SDgKu -nzn5qonnU2659Aw95bfv+rGljttOu8ySZXVhs4UUKgrQvXErXhU= ------END RSA PRIVATE KEY----- http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/logback.xml ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/logback.xml b/docker/src/test/resources/logback.xml deleted file mode 100644 index 94835c5..0000000 --- a/docker/src/test/resources/logback.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<configuration> - <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> - <encoder> - <pattern>- %msg%n</pattern> - </encoder> - </appender> - <root level="info"> - <appender-ref ref="STDOUT"/> - </root> - <logger name="jclouds.compute" level="debug"/> - <logger name="net.schmizz" level="warn"/> - <logger name="jclouds.wire" level="debug"/> - <logger name="jclouds.headers" level="debug"/> - <logger name="jclouds.ssh" level="debug"/> -</configuration> http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/network-creation.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/network-creation.json b/docker/src/test/resources/network-creation.json deleted file mode 100644 index 63b70e4..0000000 --- a/docker/src/test/resources/network-creation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Id": "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30", - "Warning": "" -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/network.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/network.json b/docker/src/test/resources/network.json deleted file mode 100644 index 1e6c422..0000000 --- a/docker/src/test/resources/network.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "Name": "bridge", - "Id": "f2de39df4171b0dc801e8002d1d999b77256983dfc63041c0f34030aa3977566", - "Scope": "local", - "Driver": "bridge", - "IPAM": { - "Driver": "default", - "Config": [ - { - "Subnet": "172.17.0.0/16" - } - ] - }, - "Containers": { - "39b69226f9d79f5634485fb236a23b2fe4e96a0a94128390a7fbbcc167065867": { - "EndpointID": "ed2419a97c1d9954d05b46e462e7002ea552f216e9b136b80a7db8d98b442eda", - "MacAddress": "02:42:ac:11:00:02", - "IPv4Address": "172.17.0.2/16", - "IPv6Address": "" - } - }, - "Options": { - "com.docker.network.bridge.default_bridge": "true", - "com.docker.network.bridge.enable_icc": "true", - "com.docker.network.bridge.enable_ip_masquerade": "true", - "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0", - "com.docker.network.bridge.name": "docker0", - "com.docker.network.driver.mtu": "1500" - } -} http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/networks.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/networks.json b/docker/src/test/resources/networks.json deleted file mode 100644 index af81f03..0000000 --- a/docker/src/test/resources/networks.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "Name": "bridge", - "Id": "f2de39df4171b0dc801e8002d1d999b77256983dfc63041c0f34030aa3977566", - "Scope": "local", - "Driver": "bridge", - "IPAM": { - "Driver": "default", - "Config": [ - { - "Subnet": "172.17.0.0/16" - } - ] - }, - "Containers": { - "39b69226f9d79f5634485fb236a23b2fe4e96a0a94128390a7fbbcc167065867": { - "EndpointID": "ed2419a97c1d9954d05b46e462e7002ea552f216e9b136b80a7db8d98b442eda", - "MacAddress": "02:42:ac:11:00:02", - "IPv4Address": "172.17.0.2/16", - "IPv6Address": "" - } - }, - "Options": { - "com.docker.network.bridge.default_bridge": "true", - "com.docker.network.bridge.enable_icc": "true", - "com.docker.network.bridge.enable_ip_masquerade": "true", - "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0", - "com.docker.network.bridge.name": "docker0", - "com.docker.network.driver.mtu": "1500" - } - }, - { - "Name": "none", - "Id": "e086a3893b05ab69242d3c44e49483a3bbbd3a26b46baa8f61ab797c1088d794", - "Scope": "local", - "Driver": "null", - "IPAM": { - "Driver": "default", - "Config": [] - }, - "Containers": {}, - "Options": {} - }, - { - "Name": "host", - "Id": "13e871235c677f196c4e1ecebb9dc733b9b2d2ab589e30c539efeda84a24215e", - "Scope": "local", - "Driver": "host", - "IPAM": { - "Driver": "default", - "Config": [] - }, - "Containers": {}, - "Options": {} - } -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/docker/src/test/resources/version.json ---------------------------------------------------------------------- diff --git a/docker/src/test/resources/version.json b/docker/src/test/resources/version.json deleted file mode 100644 index 53706b7..0000000 --- a/docker/src/test/resources/version.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ApiVersion": "1.15", - "Arch": "amd64", - "GitCommit": "c78088f", - "GoVersion": "go1.3.3", - "KernelVersion": "3.16.4-tinycore64", - "Os": "linux", - "Version": "1.3.0" -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/39cd6698/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index eefd791..47919b8 100644 --- a/pom.xml +++ b/pom.xml @@ -67,7 +67,6 @@ <module>azurecompute-arm</module> <module>azurecompute</module> <module>b2</module> - <module>docker</module> <module>cdmi</module> <module>cloudsigma2</module> <module>cloudsigma2-hnl</module> @@ -194,4 +193,4 @@ </build> </profile> </profiles> -</project> \ No newline at end of file +</project>
