Report error if FS is incorrectly handled on client filesystem read
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -85,14 +85,23 @@ setup() {
|
||||
}
|
||||
|
||||
|
||||
@test "plan/client/filesystem/read/fs/invalid" {
|
||||
cd "$TESTDIR/plan/client/filesystem/read/fs/invalid"
|
||||
@test "plan/client/filesystem/read/fs/invalid_fs_input" {
|
||||
cd "$TESTDIR/plan/client/filesystem/read/fs/invalid_fs_input"
|
||||
|
||||
run "$DAGGER" "do" -p . test
|
||||
assert_failure
|
||||
assert_output --partial 'test.txt" is not a directory'
|
||||
}
|
||||
|
||||
|
||||
@test "plan/client/filesystem/read/fs/invalid_fs_type" {
|
||||
cd "$TESTDIR/plan/client/filesystem/read/fs/invalid_fs_type"
|
||||
|
||||
run "$DAGGER" "do" -p . test
|
||||
assert_failure
|
||||
assert_output --partial 'rootfs" cannot be a directory'
|
||||
}
|
||||
|
||||
@test "plan/client/filesystem/read/fs/relative" {
|
||||
cd "$TESTDIR/plan/client/filesystem/read/fs/relative"
|
||||
|
||||
@@ -230,4 +239,4 @@ setup() {
|
||||
# Run with invalid platform
|
||||
run "$DAGGER" "do" -p./plan/platform/config_platform_failure_invalid_platform.cue verify
|
||||
assert_failure
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user