socket: add tests

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-09-17 11:51:06 -07:00
parent 5480fb991d
commit 408f147fab
3 changed files with 32 additions and 21 deletions

View File

@@ -148,9 +148,15 @@ setup() {
assert_output --partial "secret=mySecret;hash="
}
@test "compute: docker socket" {
skip "docker socket support disabled"
run "$DAGGER" compute "$TESTDIR"/compute/dockersocket
@test "core: socket" {
dagger init
dagger_new_with_plan test-socket "$TESTDIR"/core/socket
# Set dir input
"$DAGGER" input socket dockersocket /var/run/docker.sock
"$DAGGER" up
}
@test "compute: exclude" {