argocd.#Sync
now retrieve status
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
// Wait the application to sync correctly
|
||||
wait: dagger.#Input & {*false | bool}
|
||||
|
||||
os.#Container & {
|
||||
ctr: os.#Container & {
|
||||
image: #CLI & {
|
||||
"config": config
|
||||
}
|
||||
@@ -33,4 +33,9 @@ import (
|
||||
env: WAIT_FLAG: "wait"
|
||||
}
|
||||
}
|
||||
|
||||
status: #Status & {
|
||||
config: ctr.image.config
|
||||
name: application
|
||||
}
|
||||
}
|
||||
|
@@ -34,4 +34,5 @@ TestApp: #App & {
|
||||
TestArgoCDStatus: #Sync & {
|
||||
config: TestApp.config
|
||||
application: TestApp.name
|
||||
wait: true
|
||||
}
|
||||
|
@@ -237,4 +237,9 @@ setup() {
|
||||
|
||||
# Kill Pid
|
||||
pgrep kubectl && pkill kubectl
|
||||
|
||||
# Check output
|
||||
run dagger -e argocd query TestArgoCDStatus.status.outputs.health -f json
|
||||
assert_success
|
||||
assert_output "\"Healthy\""
|
||||
}
|
||||
|
Reference in New Issue
Block a user