Add #TrimSecret task

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-03-03 14:58:30 -01:00
parent de703b1a3f
commit 5ca5f8a729
4 changed files with 92 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ setup() {
@test "task: #WriteFile failure: different contents" {
cd "$TESTDIR"/tasks/writefile
run "$DAGGER" up ./writefile_failure_diff_contents.cue
assert_failure
assert_failure
}
@test "task: #Exec" {
@@ -102,7 +102,7 @@ setup() {
run "$DAGGER" up ./subdir_invalid_path.cue
assert_failure
run "$DAGGER" up ./subdir_invalid_exec.cue
assert_failure
}
@@ -134,6 +134,12 @@ setup() {
"$DAGGER" up ./newsecret.cue
}
@test "task: #TrimSecret" {
cd "$TESTDIR"/tasks/trimsecret
"$DAGGER" up ./trimsecret.cue
}
@test "task: #Source" {
cd "$TESTDIR"/tasks/source
"$DAGGER" up ./source.cue