Add test on op.#FetchGit
for private repository
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
committed by
Guillaume de Rouville
parent
d7194f161d
commit
a987d1dc34
22
stdlib/dagger/op/tests/fetch-git/fetch-git.cue
Normal file
22
stdlib/dagger/op/tests/fetch-git/fetch-git.cue
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user