[bitnami/bitnami-shell] Add VIB tests (#30868)

* [bitnami/bitnami-shell] Add VIB tests

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Remove VIB trigger

Signed-off-by: FraPazGal <fdepaz@vmware.com>

---------

Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
Francisco de Paz Galan
2023-04-20 16:24:05 +02:00
committed by GitHub
parent 18dc254b03
commit 743f423c95
5 changed files with 51 additions and 5 deletions
@@ -0,0 +1,6 @@
command:
check-distro-version:
exec: grep VERSION_ID /etc/os-release
exit-status: 0
stdout:
- {{ .Env.APP_VERSION }}
+7
View File
@@ -0,0 +1,7 @@
gossfile:
# Goss tests exclusive to the current container
../../bitnami-shell/goss/bitnami-shell.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-broken-symlinks.yaml: {}
../../common/goss/templates/check-linked-libraries.yaml: {}
../../common/goss/templates/check-sed-in-place.yaml: {}
+1
View File
@@ -0,0 +1 @@
root_dir: /opt/bitnami
+20 -4
View File
@@ -3,7 +3,8 @@
"resources": {
"url": "{VIB_ENV_CONTAINER_URL}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@@ -77,9 +78,24 @@
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
"path": "/{VIB_ENV_PATH}",
"authn": {
"header": "Authorization",
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
}
"header": "Authorization",
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
}
}
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "bitnami-shell/goss/goss.yaml",
"vars_file": "bitnami-shell/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-bitnami-shell"
}
}
}
}
+17 -1
View File
@@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@@ -46,6 +47,21 @@
"OS"
]
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "bitnami-shell/goss/goss.yaml",
"vars_file": "bitnami-shell/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-bitnami-shell"
}
}
}
}
]
}