[bitnami/kong-ingress-controller] Add VIB tests (#31886)

* [bitnami/kong-ingress-controller] Add initial tests

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

* [bitnami/kong-ingress-controller] Add change in docker-compose file to trigger tests

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

* [bitnami/kong-ingress-controller] 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: Cori Avila <42420333+corico44@users.noreply.github.com>
This commit is contained in:
Cori Avila 2023-05-15 16:22:49 +02:00 committed by GitHub
parent 251166ed8b
commit 3186b26e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 2 deletions

View File

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

View File

@ -0,0 +1,4 @@
command:
check-app-binary:
exec: kong-ingress-controller --help
exit-status: 0

View File

@ -0,0 +1,4 @@
binaries:
- kong-ingress-controller
- wait-for-port
root_dir: /opt/bitnami

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