Move private repository tests + implement env helper function
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package op
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/os"
|
||||
"alpha.dagger.io/dagger"
|
||||
"alpha.dagger.io/dagger/op"
|
||||
)
|
||||
|
||||
// Github PAT
|
||||
TestPAT: dagger.#Input & {dagger.#Secret}
|
||||
|
||||
TestRepo: #up: [op.#FetchGit & {
|
||||
remote: "https://github.com/dagger/dagger.git"
|
||||
ref: "main"
|
||||
authTokenSecret: TestPAT
|
||||
}]
|
||||
|
||||
TestContent: os.#Container & {
|
||||
always: true
|
||||
command: "ls -l /input/repo | grep 'universe -> stdlib'"
|
||||
mount: "/input/repo": from: TestRepo
|
||||
}
|
@@ -8,11 +8,6 @@ setup() {
|
||||
dagger -e sanity-check up
|
||||
}
|
||||
|
||||
@test "op-fetch-git" {
|
||||
# This test should be in `tests/ops.bats` but dagger compute doesn't handle `dagger.#Secret`
|
||||
dagger -e op-fetch-git up
|
||||
}
|
||||
|
||||
@test "os" {
|
||||
dagger -e os up
|
||||
}
|
||||
|
Reference in New Issue
Block a user