cue fmt
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
c422512155
commit
7601433729
@ -7,22 +7,20 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should fail
|
||||
// should fail
|
||||
context: services: dockerSocket: {}
|
||||
|
||||
actions: {
|
||||
test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
}
|
||||
]
|
||||
}
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
@ -7,22 +7,20 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should succeed
|
||||
// should succeed
|
||||
context: services: dockerSocket: unix: string
|
||||
|
||||
actions: {
|
||||
test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
}
|
||||
]
|
||||
}
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
@ -7,22 +7,20 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should fail because of misspelled key
|
||||
// should fail because of misspelled key
|
||||
context: services: dockerSocket: unx: "/var/run/docker.soc"
|
||||
|
||||
actions: {
|
||||
test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
}
|
||||
]
|
||||
}
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
@ -7,22 +7,20 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should fail because of misspelled value
|
||||
// should fail because of misspelled value
|
||||
context: services: dockerSocket: unix: "/var/run/docker.soc"
|
||||
|
||||
actions: {
|
||||
test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
}
|
||||
]
|
||||
}
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
@ -7,22 +7,20 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should succeed
|
||||
// should succeed
|
||||
context: services: dockerSocket: unix: "/var/run/docker.sock"
|
||||
|
||||
actions: {
|
||||
test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
}
|
||||
]
|
||||
}
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user