Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,23 @@ class OkDockerClientIntegrationSpec extends Specification {

@Requires({ LocalDocker.isUnixSocket() })
def "should support unix socket connections (Linux native or Docker for Mac)"() {
def client = new OkDockerClient("unix:///var/run/docker.sock")
def client = new OkDockerClient()
when:
def response = client.request(new EngineRequest(GET, "/info"))
then:
def dockerHost = client.getDockerClientConfig().getEnv().getDockerHost()
dockerHost.startsWith("unix://")
response.status.code == 200
}

@Requires({ LocalDocker.isNamedPipe() })
def "should support named pipe socket connections (Docker for Windows)"() {
def client = new OkDockerClient("npipe:////./pipe/docker_engine")
def client = new OkDockerClient()
when:
def response = client.request(new EngineRequest(GET, "/info"))
then:
def dockerHost = client.getDockerClientConfig().getEnv().getDockerHost()
dockerHost.startsWith("npipe://")
response.status.code == 200
}

Expand Down Expand Up @@ -169,8 +173,7 @@ class OkDockerClientIntegrationSpec extends Specification {
if (stdout.toString() == expectedOutput) {
log.info("[attach (interactive)] consumed (complete: ${stdout.toString() == expectedOutput})\n${stdout.toString()}")
onSourceConsumed.countDown()
}
else {
} else {
log.info("[attach (interactive)] consumed (complete: ${stdout.toString() == expectedOutput})\n${stdout.toString()}")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ class TestConstants {
imageName = "$imageRepo:$imageTag"

versionDetails = [
ApiVersion : { it in ["1.43", "1.44"] },
ApiVersion : { it in ["1.43", "1.44", "1.45"] },
Arch : { it in ["amd64", "arm64"] },
BuildTime : { it =~ "\\d{4}-\\d{2}-\\d{2}T\\w+" },
GitCommit : { it =~ "\\w{6,}" },
GoVersion : { it =~ "go\\d+.\\d+.\\d+" },
KernelVersion: { it =~ "\\d.\\d{1,2}.\\d{1,2}\\w*" },
MinAPIVersion: { it == "1.12" },
MinAPIVersion: { it in ["1.12", "1.24"] },
Os : { it == "linux" },
Version : { it == "master" || it =~ "\\d{1,2}.\\d{1,2}.\\d{1,2}\\w*" }]
if (LocalDocker.isNativeWindows()) {
versionDetails.MinAPIVersion = { it == "1.24" }
versionDetails.Os = { it == "windows" }
}
}
Expand Down