[bitnami/seaweedfs] Configure tests (#64646)

* [bitnami/seaweedfs] Initial vib configuration

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Add vib tests

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Change entrypoint for testing

Signed-off-by: Fran Mulero <fmulero@vmware.com>

---------

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero 2024-04-04 12:00:04 +02:00 committed by GitHub
parent 8617c26650
commit f13da7a9c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,13 @@
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../seaweedfs/goss/seaweedfs.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: {}

View File

@ -0,0 +1,12 @@
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
command:
check-app-version:
exec: weed version | grep "$(echo $APP_VERSION | sed -E 's|([0-9]+\.[0-9]+)\.0$|\1|g')"
exit-status: 0
check-seaweedfs-help:
exec: weed help
exit-status: 0
stdout:
- "Usage"

View File

@ -0,0 +1,6 @@
binaries:
- weed
root_dir: /opt/bitnami
directories:
- paths:
- /opt/bitnami/seaweedfs

View File

@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@ -50,6 +51,21 @@
"OS"
]
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "seaweedfs/goss/goss.yaml",
"vars_file": "seaweedfs/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-seaweedfs"
}
}
}
}
]
}