[bitnami/express] Add VIB tests (#24282)
* [bitnami/express] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Update pipelines' DSL definitions 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:
parent
c73f596657
commit
1b5764e74f
|
|
@ -0,0 +1,8 @@
|
||||||
|
gossfile:
|
||||||
|
# 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-directories.yaml: {}
|
||||||
|
../../common/goss/templates/check-files.yaml: {}
|
||||||
|
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
binaries:
|
||||||
|
- express
|
||||||
|
- gosu
|
||||||
|
- node
|
||||||
|
- python
|
||||||
|
- wait-for-port
|
||||||
|
directories:
|
||||||
|
- mode: "0775"
|
||||||
|
paths:
|
||||||
|
- /app
|
||||||
|
# We'll only look for the additional modules
|
||||||
|
# added at compilation time
|
||||||
|
- paths:
|
||||||
|
- /opt/bitnami/express/node_modules/angular
|
||||||
|
- /opt/bitnami/express/node_modules/bower
|
||||||
|
- /opt/bitnami/express/node_modules/mongoose
|
||||||
|
files:
|
||||||
|
- paths:
|
||||||
|
- /opt/bitnami/express/app.js
|
||||||
|
root_dir: /opt/bitnami
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
"resources": {
|
"resources": {
|
||||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||||
"path": "{VIB_ENV_PATH}"
|
"path": "{VIB_ENV_PATH}"
|
||||||
}
|
},
|
||||||
|
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||||
},
|
},
|
||||||
"phases": {
|
"phases": {
|
||||||
"package": {
|
"package": {
|
||||||
|
|
@ -33,6 +34,21 @@
|
||||||
},
|
},
|
||||||
"verify": {
|
"verify": {
|
||||||
"actions": [
|
"actions": [
|
||||||
|
{
|
||||||
|
"action_id": "goss",
|
||||||
|
"params": {
|
||||||
|
"resources": {
|
||||||
|
"path": "/.vib"
|
||||||
|
},
|
||||||
|
"tests_file": "express/goss/goss.yaml",
|
||||||
|
"vars_file": "express/goss/vars.yaml",
|
||||||
|
"remote": {
|
||||||
|
"pod": {
|
||||||
|
"workload": "deploy-express"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"action_id": "trivy",
|
"action_id": "trivy",
|
||||||
"params": {
|
"params": {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
"resources": {
|
"resources": {
|
||||||
"url": "{SHA_ARCHIVE}",
|
"url": "{SHA_ARCHIVE}",
|
||||||
"path": "{VIB_ENV_PATH}"
|
"path": "{VIB_ENV_PATH}"
|
||||||
}
|
},
|
||||||
|
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||||
},
|
},
|
||||||
"phases": {
|
"phases": {
|
||||||
"package": {
|
"package": {
|
||||||
|
|
@ -29,6 +30,21 @@
|
||||||
},
|
},
|
||||||
"verify": {
|
"verify": {
|
||||||
"actions": [
|
"actions": [
|
||||||
|
{
|
||||||
|
"action_id": "goss",
|
||||||
|
"params": {
|
||||||
|
"resources": {
|
||||||
|
"path": "/.vib"
|
||||||
|
},
|
||||||
|
"tests_file": "express/goss/goss.yaml",
|
||||||
|
"vars_file": "express/goss/vars.yaml",
|
||||||
|
"remote": {
|
||||||
|
"pod": {
|
||||||
|
"workload": "deploy-express"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"action_id": "trivy",
|
"action_id": "trivy",
|
||||||
"params": {
|
"params": {
|
||||||
|
|
@ -50,4 +66,4 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue