Fix flaky tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
@@ -7,12 +7,12 @@ import (
|
||||
dagger.#Plan & {
|
||||
actions: data: dagger.#WriteFile & {
|
||||
input: dagger.#Scratch
|
||||
path: "/test"
|
||||
path: "/test_outputs"
|
||||
permissions: 0o600
|
||||
contents: "foobar"
|
||||
}
|
||||
|
||||
outputs: directories: test: {
|
||||
outputs: directories: test_outputs: {
|
||||
contents: actions.data.output
|
||||
dest: "./out"
|
||||
}
|
||||
|
19
tests/plan/outputs/directories/relative.cue
Normal file
19
tests/plan/outputs/directories/relative.cue
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: data: dagger.#WriteFile & {
|
||||
input: dagger.#Scratch
|
||||
path: "/test_relative"
|
||||
permissions: 0o600
|
||||
contents: "foobar"
|
||||
}
|
||||
|
||||
outputs: directories: test_relative: {
|
||||
contents: actions.data.output
|
||||
dest: "./out"
|
||||
}
|
||||
}
|
@@ -5,6 +5,6 @@ import "dagger.io/dagger"
|
||||
dagger.#Plan & {
|
||||
outputs: files: test: {
|
||||
contents: "foobar"
|
||||
dest: "./test"
|
||||
dest: "./test_default_permissions"
|
||||
}
|
||||
}
|
||||
|
@@ -3,5 +3,5 @@ package main
|
||||
import "dagger.io/dagger"
|
||||
|
||||
dagger.#Plan & {
|
||||
outputs: files: test: dest: "./test"
|
||||
outputs: files: test: dest: "./test_no_contents"
|
||||
}
|
||||
|
15
tests/plan/outputs/files/relative.cue
Normal file
15
tests/plan/outputs/files/relative.cue
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import "dagger.io/dagger"
|
||||
|
||||
dagger.#Plan & {
|
||||
outputs: files: {
|
||||
[path=string]: dest: path
|
||||
test_relative: contents: """
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
echo "Hello World!"
|
||||
|
||||
"""
|
||||
}
|
||||
}
|
@@ -5,7 +5,7 @@ import "dagger.io/dagger"
|
||||
dagger.#Plan & {
|
||||
outputs: files: {
|
||||
[path=string]: dest: path
|
||||
"test.sh": {
|
||||
test_usage: {
|
||||
contents: """
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
Reference in New Issue
Block a user