[bitnami/keycloak-config-cli] Add VIB tests (#30718)
* [bitnami/keycloak-cli-exporter] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Fix goss tests and trigger VIB Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
parent
85e2ad5409
commit
7976aece5f
|
|
@ -0,0 +1,9 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../keycloak-config-cli/goss/keycloak-config-cli.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
command:
|
||||
# The cli jar doesn't really have a help flag
|
||||
# and exits with a "status=1" when not properly started.
|
||||
check-keycloak-config-cli:
|
||||
exec: java -jar /opt/bitnami/keycloak-config-cli/keycloak-config-cli.jar
|
||||
exit-status: 1
|
||||
timeout: 10000
|
||||
stdout:
|
||||
- Started KeycloakConfigApplication
|
||||
# Besides the default one, we are packaging
|
||||
# one cli per keycloak major as done by upstream
|
||||
check-per-major-clis:
|
||||
exec: if [ $(ls /opt/bitnami/keycloak-config-cli/keycloak-config-cli-*.jar | wc -l) -eq 0 ]; then exit 1; fi
|
||||
exit-status: 0
|
||||
|
|
@ -0,0 +1 @@
|
|||
root_dir: /opt/bitnami
|
||||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -77,9 +78,24 @@
|
|||
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
|
||||
"path": "/{VIB_ENV_PATH}",
|
||||
"authn": {
|
||||
"header": "Authorization",
|
||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||
}
|
||||
"header": "Authorization",
|
||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "keycloak-config-cli/goss/goss.yaml",
|
||||
"vars_file": "keycloak-config-cli/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-keycloak-config-cli"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -46,6 +47,21 @@
|
|||
"OS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "keycloak-config-cli/goss/goss.yaml",
|
||||
"vars_file": "keycloak-config-cli/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-keycloak-config-cli"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue