[bitnami/wavefront-proxy] Add VIB tests (#35005)

* [bitnami/wavefront-proxy] Add initial tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/wavefront-proxy] Fix check version test

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/wavefront-proxy] Add change in docker-compose file to trigger tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/wavefront-proxy] Delete check for symlink

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/wavefront-proxy] Delete trigger in docker-compose file

Signed-off-by: Cori Avila <amisericordi@vmware.com>

---------

Signed-off-by: Cori Avila <amisericordi@vmware.com>
This commit is contained in:
Cori Avila
2023-05-26 16:26:50 +02:00
committed by GitHub
parent 9ee3dd95f7
commit 74e0a61de2
5 changed files with 77 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
gossfile:
# Goss tests exclusive to the current container
../../wavefront-proxy/goss/wavefront-proxy.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: {}
+10
View File
@@ -0,0 +1,10 @@
binaries:
- java
directories:
- mode: "0775"
paths:
- /opt/bitnami/tmp
- /var/log/wavefront
- paths:
- /etc/wavefront
root_dir: /opt/bitnami
@@ -0,0 +1,22 @@
file:
/opt/wavefront:
exists: true
filetype: symlink
linked-to: /opt/bitnami
/etc/wavefront/wavefront-proxy:
exists: true
filetype: symlink
linked-to: /opt/bitnami/wavefront-proxy/etc
/var/spool/wavefront-proxy:
exists: true
filetype: symlink
linked-to: /opt/bitnami/wavefront-proxy/tmp
/run.sh:
exists: true
filetype: symlink
mode: "0777"
linked-to: /opt/bitnami/wavefront-proxy/scripts/run.sh
command:
check-app-version:
exec: java -jar /opt/bitnami/wavefront-proxy/wavefront-proxy.jar --version 2>&1 | grep "$(echo $APP_VERSION | sed -E 's|([0-9]+\.[0-9]+)\.0$|\1|g')"
exit-status: 0
+17 -1
View File
@@ -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": "wavefront-proxy/goss/goss.yaml",
"vars_file": "wavefront-proxy/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-wavefront-proxy"
}
}
}
},
{
"action_id": "trivy",
"params": {
+17 -1
View File
@@ -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": "wavefront-proxy/goss/goss.yaml",
"vars_file": "wavefront-proxy/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-wavefront-proxy"
}
}
}
},
{
"action_id": "trivy",
"params": {