test: added test for ignoring .dagger directory in input dir

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-06-21 15:14:18 +02:00
parent 21c76f2873
commit f4afe5d129
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package testing
import (
"dagger.io/dagger/op"
"dagger.io/dagger"
)
source: dagger.#Artifact
#up: [
op.#FetchContainer & {ref: "busybox"},
op.#Exec & {
args: ["sh", "-c", """
set -exu
[ -f /source/testfile ]
[ ! -d /source/.dagger ]
"""]
mount: "/source": from: source
},
]

View File

View File

@@ -0,0 +1 @@
thisisatest