[bitnami/metallb-controller] Add VIB tests (#34397)

* [bitnami/metallb-controller] Add VIB tests

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Add trigger

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Remove trigger

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

---------

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Miguel Ruiz
2023-05-25 11:04:01 +02:00
committed by GitHub
parent 486358ad04
commit ad2e6d2858
5 changed files with 60 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
gossfile:
# Goss tests exclusive to the current container
../../metallb-controller/goss/metallb-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,10 @@
command:
# The metallb-controller binary does not have a --version flag, but starting it displays the version
check-app-version:
exec: controller
exit-status: 1
stdout:
- {{ .Env.APP_VERSION }}
check-metallb-controller-help:
exec: controller --help
exit-status: 0

View File

@@ -0,0 +1,3 @@
binaries:
- controller
root_dir: /opt/bitnami