Move private repository tests + implement env helper function
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
2
tests/ops/fetch-git/private-repo/.dagger/env/op-fetch-git/.gitignore
vendored
Normal file
2
tests/ops/fetch-git/private-repo/.dagger/env/op-fetch-git/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger state
|
||||
state/**
|
26
tests/ops/fetch-git/private-repo/.dagger/env/op-fetch-git/values.yaml
vendored
Normal file
26
tests/ops/fetch-git/private-repo/.dagger/env/op-fetch-git/values.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
plan:
|
||||
package: .
|
||||
name: op-fetch-git
|
||||
inputs:
|
||||
TestPAT:
|
||||
secret: ENC[AES256_GCM,data:TVMwgMe+Q/BzQ/rxKIr9lRPuu2FpVQXppufy33lWQ8An+c9cTSVLCQ==,iv:Xpe54Llfcu1aTWkzNxUtcRrrqIlI/i4pdshOCVKeREY=,tag:Ugwzcpmddzhq62gPKpAkkQ==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age:
|
||||
- recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk
|
||||
enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBoamxhWnpyQzJRcE9TRldj
|
||||
Rmd6eHV5TnpReENzNHI3MFZRZWpqaGJoRzFjClMyQW1raVNiSU84blhhSzRja01F
|
||||
cjVpVmxJS1o0NEdlTXYvQ290Rjdma0kKLS0tIDkrTjRHTEtaaDY2QzhBaVJYRjhn
|
||||
OXA2TkFjYlVNMFFEblA2MUZRWVB3T3MKhunM53KD+jGvdAInPbr+N6YrpirLIp4V
|
||||
seb6c4bryHPL+zZWSX1H04sCWgGOypLfYq/fUyPOunbs/b+AWn8chw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2021-08-26T09:34:51Z"
|
||||
mac: ENC[AES256_GCM,data:JUo5COutVZMqJN2UNhqL842hhGsMdCLOFFo5g4HDFMQLG3M1iQ2M0i8AjnAlPGMukNoF3qr/rTf6FCNdpeXc/oXiOM+q0w9xp+jGup5uplhXUWw+au4YHXbSezxCVtmKCRIzkDBiN5x2zKLg7qBzsqKdzyeBiBI/QAPCoXuTk4g=,iv:m4GKvZ8g4dniAbTnUO+wjZlYx6uCJcCwkanoAzjciuY=,tag:vUUHFcGg5OIjDHeI0B+RGw==,type:str]
|
||||
pgp: []
|
||||
encrypted_suffix: secret
|
||||
version: 3.7.1
|
1
tests/ops/fetch-git/private-repo/cue.mod/module.cue
Normal file
1
tests/ops/fetch-git/private-repo/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/ops/fetch-git/private-repo/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/ops/fetch-git/private-repo/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
22
tests/ops/fetch-git/private-repo/fetch-git.cue
Normal file
22
tests/ops/fetch-git/private-repo/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