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

* [bitnami/gitlab-runner] Check if gitlab-runner file exists

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

* [bitnami/gitlab-runner] Check text inside file for gitlab-runner test

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

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

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

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

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

* [bitnami/gitlab-runner] Add check for gosu and remove checks for files

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

* [bitnami/gitlab-runner] Add version and sed checks

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

* [bitnami/gitlab-runner] Delete directories checker and check version

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

* [bitnami/gitlab-runner] Delete files checker

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

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

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

* [bitnami/gitlab-runner] 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:23:28 +02:00 committed by GitHub
parent 34cef929c7
commit 8a7e506f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 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,7 @@
binaries:
- gitlab-runner
- gosu
root_dir: /opt/bitnami
version:
bin_name: gitlab-runner
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/goss/goss.yaml",
"vars_file": "gitlab-runner/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-gitlab-runner"
}
}
}
},
{
"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/goss/goss.yaml",
"vars_file": "gitlab-runner/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-gitlab-runner"
}
}
}
},
{
"action_id": "trivy",
"params": {