Update argoCD test
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user