mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 10:47:34 -05:00
24 lines
544 B
HCL
24 lines
544 B
HCL
# This is the default "docker" provider for this file:
|
|
provider "docker" {
|
|
host = "tcp://0.0.0.0:2376"
|
|
}
|
|
|
|
# This will be the override:
|
|
provider "docker" {
|
|
alias = "unixsocket"
|
|
host = "unix:///var/run/docker.sock"
|
|
}
|
|
|
|
run "sockettest" {
|
|
# Replace the "docker" provider for this test case only:
|
|
providers = {
|
|
docker = docker.unixsocket
|
|
}
|
|
|
|
assert {
|
|
condition = docker_image.build.name == "myapp"
|
|
error_message = "Missing build resource"
|
|
}
|
|
}
|
|
|
|
// Add other tests with the original provider here. |