This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/tasks.bats
Joel Longtine 380c15f5f4 engine.#WriteFile
Signed-off-by: Joel Longtine <joel@dagger.io>
2021-12-15 10:27:37 -08:00

26 lines
494 B
Bash

setup() {
load 'helpers'
common_setup
}
@test "task: #Pull" {
cd "$TESTDIR"/tasks/pull
dagger --europa up
}
@test "task: #ReadFile" {
cd "$TESTDIR"/tasks/readfile
dagger --europa up
}
@test "task: #WriteFile" {
cd "$TESTDIR"
dagger --europa up ./tasks/write_file/write_file.cue
}
@test "task: #WriteFile failure: different contents" {
cd "$TESTDIR"
run dagger --europa up ./tasks/write_file/write_file_failure_diff_contents.cue
assert_failure
}