[bitnami/vault-k8s] Add VIB tests (#34960)

* [bitnami/vault-k8s] Add VIB tests

Signed-off-by: Andrés Bono <andresbono@vmware.com>

* Add version check

Signed-off-by: Andrés Bono <andresbono@vmware.com>

---------

Signed-off-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
Andrés Bono
2023-05-24 12:37:48 +02:00
committed by GitHub
parent ab3fe75e03
commit f6e10960b8
4 changed files with 49 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
gossfile:
# 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: {}
+6
View File
@@ -0,0 +1,6 @@
binaries:
- vault-k8s
root_dir: /opt/bitnami
version:
bin_name: vault-k8s
flag: version
+17 -1
View File
@@ -3,7 +3,8 @@
"resources": {
"url": "{VIB_ENV_CONTAINER_URL}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@@ -82,6 +83,21 @@
}
}
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "vault-k8s/goss/goss.yaml",
"vars_file": "vault-k8s/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-vault-k8s"
}
}
}
}
]
},
+17 -1
View File
@@ -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": "vault-k8s/goss/goss.yaml",
"vars_file": "vault-k8s/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-vault-k8s"
}
}
}
}
]
}