[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:
Andrés Bono
2023-05-16 13:25:34 +02:00
committed by GitHub
parent e4755eae4d
commit e730ad42cf
5 changed files with 57 additions and 2 deletions
+10
View File
@@ -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: {}
+10
View File
@@ -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
+3
View File
@@ -0,0 +1,3 @@
binaries:
- gotrue
root_dir: /opt/bitnami
+17 -1
View File
@@ -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"
}
}
}
}
]
},
+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": "gotrue/goss/goss.yaml",
"vars_file": "gotrue/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-gotrue"
}
}
}
}
]
}