mirror of
https://github.com/bitnami/containers.git
synced 2026-03-10 06:59:47 +08:00
[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:
9
.vib/gitlab-runner/goss/goss.yaml
Normal file
9
.vib/gitlab-runner/goss/goss.yaml
Normal 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: {}
|
||||
7
.vib/gitlab-runner/goss/vars.yaml
Normal file
7
.vib/gitlab-runner/goss/vars.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
binaries:
|
||||
- gitlab-runner
|
||||
- gosu
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: gitlab-runner
|
||||
flag: -v
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user