[bitnami/argo-workflow-exec] Add argo-workflow exec VIB tests (#34268)

* [bitnami/argo-workflow-exec] Add VIB tests

Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
Michiel
2023-05-29 15:32:45 +02:00
committed by GitHub
parent 0c1c1fe47d
commit 315da20b01
5 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
directory:
/opt/bitnami/argo-workflow-exec/hack/git:
exists: false

View File

@@ -0,0 +1,12 @@
gossfile:
# Goss tests exclusive to the current container
../../argo-workflow-exec/goss/argo-workflow-exec.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-directories.yaml: {}
../../common/goss/templates/check-linked-libraries.yaml: {}
../../common/goss/templates/check-sed-in-place.yaml: {}
../../common/goss/templates/check-spdx.yaml: {}

View File

@@ -0,0 +1,16 @@
binaries:
- argoexec
- kubectl
directories:
- paths:
- /etc/ssh
- /opt/bitnami/argo-workflow-exec/hack
files:
- paths:
- /etc/ssh/ssh_known_hosts
- /etc/nsswitch.conf
root_dir: /opt/bitnami
version:
bin_name: argoexec
flag: version

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": "argo-workflow-exec/goss/goss.yaml",
"vars_file": "argo-workflow-exec/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-argo-workflow-exec"
}
}
}
},
{
"action_id": "trivy",
"params": {

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": "argo-workflow-exec/goss/goss.yaml",
"vars_file": "argo-workflow-exec/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-argo-workflow-exec"
}
}
}
},
{
"action_id": "trivy",
"params": {