[bitnami/pgbouncer] Add VIB tests (#30024)

* [bitnami/pgbouncer] Add VIB tests

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Trigger VIB

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:
Francisco de Paz Galan
2023-04-12 14:25:19 +02:00
committed by GitHub
parent b4f40dbd24
commit d3e3183023
4 changed files with 66 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
gossfile:
# 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: {}

View File

@@ -0,0 +1,19 @@
binaries:
- gosu
- ini-file
- psql
- pgbouncer
- wait-for-port
directories:
- mode: "0775"
paths:
- /bitnami/pgbouncer
- /bitnami/pgbouncer/conf
- /opt/bitnami/pgbouncer/conf
- /opt/bitnami/pgbouncer/logs
- /opt/bitnami/pgbouncer/tmp
- /docker-entrypoint-initdb.d
root_dir: /opt/bitnami
version:
bin_name: pgbouncer
flag: --version

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{VIB_ENV_CONTAINER_URL}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@@ -77,9 +78,24 @@
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
"path": "/{VIB_ENV_PATH}",
"authn": {
"header": "Authorization",
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
}
"header": "Authorization",
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
}
}
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "pgbouncer/goss/goss.yaml",
"vars_file": "pgbouncer/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-pgbouncer"
}
}
}
}

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": "pgbouncer/goss/goss.yaml",
"vars_file": "pgbouncer/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-pgbouncer"
}
}
}
}
]
}