Update argoCD test

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-09-09 13:03:07 +02:00
committed by Sam Alba
parent a73b34d096
commit 2a91ae1d80
5 changed files with 143 additions and 98 deletions

View File

@@ -1,19 +1,18 @@
package app
package argocd
import (
"alpha.dagger.io/argocd"
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
)
TestConfig: argocdConfig: argocd.#Config & {
version: "v2.0.5"
server: "dagger-example-argocd-server.tld"
token: dagger.#Secret & dagger.#Input
TestConfig: argocdConfig: #Config & {
version: dagger.#Input & {*"v2.0.5" | string}
server: dagger.#Input & {*"dagger-example-argocd-server.tld" | string}
token: dagger.#Input & {dagger.#Secret}
}
TestArgoCD2: os.#Container & {
image: argocd.#CLI & {
TestArgoCD: os.#Container & {
image: #CLI & {
config: TestConfig.argocdConfig
}
always: true
@@ -22,3 +21,8 @@ TestArgoCD2: os.#Container & {
"""#
env: VERSION: TestConfig.argocdConfig.version
}
TestArgoCDStatus: #Status & {
config: TestConfig.argocdConfig
name: "test"
}