[bitnami/attu,milvus] chore: 👷 Add VIB integration (#38448)

* [bitnami/attu,milvus] chore: 👷 Add VIB integration

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Fix incorrect parameters

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Update directory test

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Adapt to current testing standards

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Remove http tests

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

---------

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2023-06-22 17:39:44 +02:00
committed by GitHub
parent fb9a1bc540
commit b1a869aa94
10 changed files with 453 additions and 0 deletions

22
.vib/attu/goss/attu.yaml Normal file
View File

@@ -0,0 +1,22 @@
user:
attu:
exists: true
uid: 1001
gid: 0
file:
/app:
exists: true
filetype: symlink
linked-to: /opt/bitnami/attu
command:
attu-command-available:
exec: cd /opt/bitnami/attu; npm run
exit-status: 0
stdout:
- start:prod
run-attu:
exec: cd /opt/bitnami/attu; timeout --preserve-status 5 milvus run standalone || true
timeout: 8000
exit-status: 0
stdout:
- Attu server started

12
.vib/attu/goss/goss.yaml Normal file
View File

@@ -0,0 +1,12 @@
gossfile:
# Goss tests exclusive to the current container
../../attu/goss/attu.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version.yaml: {}
../../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-linked-libraries.yaml: {}
../../common/goss/templates/check-sed-in-place.yaml: {}
../../common/goss/templates/check-spdx.yaml: {}

13
.vib/attu/goss/vars.yaml Normal file
View File

@@ -0,0 +1,13 @@
binaries:
- node
- yarn
- npm
root_dir: /opt/bitnami
directories:
- paths:
# Paths to the client and server directories
- /opt/bitnami/attu/dist
- /opt/bitnami/attu/build
version:
bin_name: npm
flag: list /opt/bitnami/attu