Update argoCD test file to use os.#Container
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
parent
7299cb4d1d
commit
f038e11fc5
@ -3,7 +3,7 @@ package app
|
|||||||
import (
|
import (
|
||||||
"alpha.dagger.io/argocd"
|
"alpha.dagger.io/argocd"
|
||||||
"alpha.dagger.io/dagger"
|
"alpha.dagger.io/dagger"
|
||||||
"alpha.dagger.io/dagger/op"
|
"alpha.dagger.io/os"
|
||||||
)
|
)
|
||||||
|
|
||||||
TestConfig: argocdConfig: argocd.#Config & {
|
TestConfig: argocdConfig: argocd.#Config & {
|
||||||
@ -12,22 +12,13 @@ TestConfig: argocdConfig: argocd.#Config & {
|
|||||||
token: dagger.#Secret & dagger.#Input
|
token: dagger.#Secret & dagger.#Input
|
||||||
}
|
}
|
||||||
|
|
||||||
TestArgocd: #up: [
|
TestArgoCD2: os.#Container & {
|
||||||
// Initialize ArgoCD CLI binary
|
image: argocd.#CLI & {
|
||||||
op.#Load & {
|
config: TestConfig.argocdConfig
|
||||||
from: argocd.#CLI & {
|
}
|
||||||
config: TestConfig.argocdConfig
|
always: true
|
||||||
}
|
command: #"""
|
||||||
},
|
argocd version --output json | jq -e 'all(.client.Version; startswith("$VERSION"))'
|
||||||
|
"""#
|
||||||
// Check the binary and its version
|
env: VERSION: TestConfig.argocdConfig.version
|
||||||
op.#Exec & {
|
}
|
||||||
args: [
|
|
||||||
"sh", "-c",
|
|
||||||
#"""
|
|
||||||
argocd version --output json | jq -e 'all(.client.Version; startswith("$VERSION"))'
|
|
||||||
"""#,
|
|
||||||
]
|
|
||||||
env: VERSION: TestConfig.argocdConfig.version
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
@ -76,7 +76,7 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "docker run: local" {
|
@test "docker run: local" {
|
||||||
skip "Not implemented yet + missing inputs leading to failure"
|
skip "Not implemented yet + missing inputs leading to failure"
|
||||||
# dagger -e docker-run-local up
|
# dagger -e docker-run-local up
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,6 +217,6 @@ setup() {
|
|||||||
|
|
||||||
|
|
||||||
@test "argocd" {
|
@test "argocd" {
|
||||||
skip "ArgoCD CI secrets not yet generated"
|
skip "ArgoCD CI secrets not yet generated - Infra not implemented yet"
|
||||||
#dagger -e argocd up
|
#dagger -e argocd up
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user