[bitnami/alertmanager] Add VIB tests (#30856)
* [bitnami/alertmanager] Add initial tests Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/alertmanager] Add change in docker-compose file to trigger tests Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/alertmanager] Modify order of items in goss.yaml file Signed-off-by: corico44 <42420333+corico44@users.noreply.github.com> * [bitnami/alertmanager] Delete blank space Signed-off-by: corico44 <42420333+corico44@users.noreply.github.com> * [bitnami/alertmanager] Fix check-app-version test Signed-off-by: corico44 <42420333+corico44@users.noreply.github.com> * [bitnami/alertmanager] Delete test for secondary binary and modify check-version test Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/alertmanager] Delete check for directories and add check app run test Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/alertmanager] Delete files check test Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/alertmanager] Delete trigger in docker-compose file Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com> --------- Signed-off-by: Cori Avila <amisericordi@vmware.com> Signed-off-by: corico44 <42420333+corico44@users.noreply.github.com> Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com>
This commit is contained in:
parent
3186b26e4c
commit
ceb03ba1c4
|
|
@ -0,0 +1,4 @@
|
|||
command:
|
||||
check-app-run:
|
||||
exec: timeout --preserve-status 5 /opt/bitnami/alertmanager/bin/alertmanager --config.file=/opt/bitnami/alertmanager/conf/config.yml --storage.path=/opt/bitnami/alertmanager/data
|
||||
exit-status: 0
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../alertmanager/goss/alertmanager.yaml: { }
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-app-version.yaml: {}
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../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,7 @@
|
|||
binaries:
|
||||
- alertmanager
|
||||
- amtool
|
||||
version:
|
||||
bin_name: alertmanager
|
||||
flag: --version
|
||||
root_dir: /opt/bitnami
|
||||
|
|
@ -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": "alertmanager/goss/goss.yaml",
|
||||
"vars_file": "alertmanager/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-alertmanager"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "alertmanager/goss/goss.yaml",
|
||||
"vars_file": "alertmanager/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-alertmanager"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue