[bitnami/gitlab-runner-helper] Add VIB tests (#29328)

* [bitnami/gitlab-runner-helper] Add tests for gitlab-runner-helper

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

* [bitnami/gitlab-runner-helper] Fix indentation

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

* [bitnami/gitlab-runner-helper] Add comment to try tests

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

* [bitnami/gitlab-runner-helper] Delete comment to try tests

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

* [bitnami/gitlab-runner-helper] Add gosu check, add template checks and remove directories checks

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

* [bitnami/gitlab-runner-helper] Add version checker

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

* [bitnami/gitlab-runner-helper] Delete directories checker

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

* [bitnami/gitlab-runner-helper] Add change to docker-compose to trigger tests

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

* [bitnami/gitlab-runner-helper] Delete changes in docker-compose

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

* [bitnami/gitlab-runner-helper] Check gitlab-runner-build binary

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

* [bitnami/gitlab-runner-helper] Add change in docker-compose to trigger tests

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

* [bitnami/gitlab-runner-helper] Delete change in docker-compose

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

---------

Signed-off-by: Cori Avila <amisericordi@vmware.com>
This commit is contained in:
corico44 2023-04-12 16:22:49 +02:00 committed by GitHub
parent 4160a2c995
commit 34cef929c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 2 deletions

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: {}

View File

@ -0,0 +1,8 @@
binaries:
- gitlab-runner-helper
- gitlab-runner-build
- gosu
root_dir: /opt/bitnami
version:
bin_name: gitlab-runner-helper
flag: -v

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