[bitnami/argo-cd] Add VIB tests (#34279)
* [bitnami/argo-cd] Add VIB tests Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
parent
1bc209135a
commit
e22c314f10
|
|
@ -0,0 +1,16 @@
|
|||
command:
|
||||
check-app-version:
|
||||
# argocd version exits with exit code 1
|
||||
exec: argocd version
|
||||
exit-status: 1
|
||||
stdout:
|
||||
- {{ .Env.APP_VERSION }}
|
||||
file:
|
||||
/opt/bitnami/argo-cd/bin/argocd-server:
|
||||
exists: true
|
||||
filetype: symlink
|
||||
linked-to: "/opt/bitnami/argo-cd/bin/argocd"
|
||||
/opt/bitnami/argo-cd/bin/argocd-util:
|
||||
exists: true
|
||||
filetype: symlink
|
||||
linked-to: "/opt/bitnami/argo-cd/bin/argocd"
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../argo-cd/goss/argo-cd.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-directories.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,19 @@
|
|||
binaries:
|
||||
- argocd
|
||||
- argocd-server
|
||||
- argocd-util
|
||||
directories:
|
||||
- paths:
|
||||
- /.argocd
|
||||
- /app/config/gpg/keys
|
||||
- /app/config/gpg/source
|
||||
- /bitnami/argocd
|
||||
mode: "0775"
|
||||
- paths:
|
||||
- /opt/bitnami/argo-cd/app
|
||||
- /opt/bitnami/argo-cd/bin
|
||||
root_dir: /opt/bitnami
|
||||
sed_in_place:
|
||||
exclude_paths:
|
||||
# Ignore hack directory (not bitnami-related)
|
||||
- /opt/bitnami/argo-cd/hack
|
||||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -33,6 +34,21 @@
|
|||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "argo-cd/goss/goss.yaml",
|
||||
"vars_file": "argo-cd/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-argo-cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -29,6 +30,21 @@
|
|||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "argo-cd/goss/goss.yaml",
|
||||
"vars_file": "argo-cd/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-argo-cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue