mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 17:06:21 +02:00
[bitnami/gotrue] Add VIB tests (#33351)
* [bitnami/gotrue] Add VIB tests Signed-off-by: Andrés Bono <andresbono@vmware.com> * Apply suggestions from review Signed-off-by: Andrés Bono <andresbono@vmware.com> --------- Signed-off-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../gotrue/goss/gotrue.yaml: {}
|
||||
# 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-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
@@ -0,0 +1,10 @@
|
||||
command:
|
||||
# Migration files should be present
|
||||
check-migrations-files:
|
||||
exec: find /opt/bitnami/gotrue -name "*.sql" | wc -l
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- /^[1-9]/
|
||||
check-gotrue-help:
|
||||
exec: gotrue help
|
||||
exit-status: 0
|
||||
@@ -0,0 +1,3 @@
|
||||
binaries:
|
||||
- gotrue
|
||||
root_dir: /opt/bitnami
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -69,6 +70,21 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "gotrue/goss/goss.yaml",
|
||||
"vars_file": "gotrue/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-gotrue"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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": "gotrue/goss/goss.yaml",
|
||||
"vars_file": "gotrue/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-gotrue"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user