@Test public void testGetImageId() throws Exception { String imageId = DockerClientExecutor.getImageId(FULL_LOG); Assert.assertNotNull("Pattern matching failed", imageId); Matcher m = HEXA_PATTERN.matcher(imageId); Assert.assertTrue("imageId is not an hexadecimal digit string", m.matches()); }
public static String getImageId(String fullLog) { Matcher m = IMAGEID_PATTERN.matcher(fullLog); String imageId = null; if (m.find()) { imageId = m.group(1); } return imageId; }
DockerClientExecutor { public static String getImageId(String fullLog) { Matcher m = IMAGEID_PATTERN.matcher(fullLog); String imageId = null; if (m.find()) { imageId = m.group(1); } return imageId; } }
DockerClientExecutor { public static String getImageId(String fullLog) { Matcher m = IMAGEID_PATTERN.matcher(fullLog); String imageId = null; if (m.find()) { imageId = m.group(1); } return imageId; } DockerClientExecutor(CubeDockerConfiguration cdc); }
DockerClientExecutor { public static String getImageId(String fullLog) { Matcher m = IMAGEID_PATTERN.matcher(fullLog); String imageId = null; if (m.find()) { imageId = m.group(1); } return imageId; } DockerClientExecutor(CubeDockerConfiguration cdc); static String getImageId(String fullLog); DockerClient buildDockerClient(); List<Container> listRunningContainers(); String createContainer(String name, CubeContainer containerConfiguration); void startContainer(String id, CubeContainer containerConfiguration); Statistics statsContainer(String id); void killContainer(String containerId); void stopContainer(String containerId); void removeContainer(String containerId, boolean removeVolumes); InspectContainerResponse inspectContainer(String containerId); int waitContainer(String containerId); Version dockerHostVersion(); void pingDockerServer(); void removeImage(String contaierID, Boolean force); String containerLog(String containerId); void pullImage(String imageName); CubeOutput execStart(String containerId, String... commands); void execStartDetached(String containerId, String... commands); ExecInspection execStartVerbose(String containerId, String... commands); List<org.arquillian.cube.ChangeLog> inspectChangesOnContainerFilesystem(String containerId); TopContainer top(String containerId); InputStream getFileOrDirectoryFromContainerAsTar(String containerId, String from); void copyStreamToContainer(String containerId, File from); void copyStreamToContainer(String containerId, File from, File to); void copyStreamToContainer(String containerId, File from, String to); void connectToNetwork(String networkId, String containerID); void copyLog(String containerId, boolean follow, boolean stdout, boolean stderr, boolean timestamps, int tail,
                        OutputStream outputStream); String createNetwork(String id, Network network); void removeNetwork(String id); List<com.github.dockerjava.api.model.Network> getNetworks(); URI getDockerUri(); boolean isDockerInsideDockerResolution(); DockerClient getDockerClient(); String getDockerServerIp(); }
DockerClientExecutor { public static String getImageId(String fullLog) { Matcher m = IMAGEID_PATTERN.matcher(fullLog); String imageId = null; if (m.find()) { imageId = m.group(1); } return imageId; } DockerClientExecutor(CubeDockerConfiguration cdc); static String getImageId(String fullLog); DockerClient buildDockerClient(); List<Container> listRunningContainers(); String createContainer(String name, CubeContainer containerConfiguration); void startContainer(String id, CubeContainer containerConfiguration); Statistics statsContainer(String id); void killContainer(String containerId); void stopContainer(String containerId); void removeContainer(String containerId, boolean removeVolumes); InspectContainerResponse inspectContainer(String containerId); int waitContainer(String containerId); Version dockerHostVersion(); void pingDockerServer(); void removeImage(String contaierID, Boolean force); String containerLog(String containerId); void pullImage(String imageName); CubeOutput execStart(String containerId, String... commands); void execStartDetached(String containerId, String... commands); ExecInspection execStartVerbose(String containerId, String... commands); List<org.arquillian.cube.ChangeLog> inspectChangesOnContainerFilesystem(String containerId); TopContainer top(String containerId); InputStream getFileOrDirectoryFromContainerAsTar(String containerId, String from); void copyStreamToContainer(String containerId, File from); void copyStreamToContainer(String containerId, File from, File to); void copyStreamToContainer(String containerId, File from, String to); void connectToNetwork(String networkId, String containerID); void copyLog(String containerId, boolean follow, boolean stdout, boolean stderr, boolean timestamps, int tail,
                        OutputStream outputStream); String createNetwork(String id, Network network); void removeNetwork(String id); List<com.github.dockerjava.api.model.Network> getNetworks(); URI getDockerUri(); boolean isDockerInsideDockerResolution(); DockerClient getDockerClient(); String getDockerServerIp(); static final String PATH_IN_CONTAINER; static final String PATH_ON_HOST; static final String C_GROUP_PERMISSIONS; static final String PORTS_SEPARATOR; static final String TAG_SEPARATOR; static final String RESTART_POLICY; static final String CAP_DROP; static final String CAP_ADD; static final String DEVICES; static final String DNS_SEARCH; static final String NETWORK_MODE; static final String PUBLISH_ALL_PORTS; static final String PRIVILEGED; static final String PORT_BINDINGS; static final String LINKS; static final String BINDS; static final String VOLUMES_FROM; static final String VOLUMES; static final String DNS; static final String CMD; static final String ENV; static final String EXPOSED_PORTS; static final String ATTACH_STDERR; static final String ATTACH_STDIN; static final String CPU_SHARES; static final String MEMORY_SWAP; static final String MEMORY_LIMIT; static final String STDIN_ONCE; static final String STDIN_OPEN; static final String TTY; static final String USER; static final String PORT_SPECS; static final String HOST_NAME; static final String DISABLE_NETWORK; static final String WORKING_DIR; static final String IMAGE; static final String BUILD_IMAGE; static final String DOCKERFILE_LOCATION; static final String NO_CACHE; static final String REMOVE; static final String ALWAYS_PULL; static final String ENTRYPOINT; static final String CPU_SET; static final String DOCKERFILE_NAME; static final String EXTRA_HOSTS; static final String READ_ONLY_ROOT_FS; static final String LABELS; static final String DOMAINNAME; }