Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS/Colima integration test #367

Merged
merged 2 commits into from
Dec 2, 2023
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 @@ -107,7 +107,7 @@ class DockerPluginIntegrationTest extends Specification {
result.task(':dockerPullPrivate').outcome == TaskOutcome.SUCCESS
}

def "test push"() {
def "test push to the official registry"() {
given:
def dockerClient = new DockerClientImpl()
dockerClient.tag(testImage.imageWithTag, "gesellix/example")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class GenericDockerTaskSpec extends Specification {
DockerClientImpl dockerClient = task.dockerClient

then:
dockerClient.env.dockerHost == DockerEnv.getDefaultDockerHost()
dockerClient.env.dockerHost in [
DockerEnv.getDefaultDockerHost(),
// for GitHub, where integration tests use a Colima based Docker engine
"unix:///Users/runner/.colima/default/docker.sock"
]
}

def "delegates to dockerClient with configured dockerHost"() {
Expand Down
Loading