[bitnami/pgpool] Add VIB tests (#35104)
Signed-off-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
parent
1ed97d2a37
commit
da201655cf
|
|
@ -0,0 +1,13 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../pgpool/goss/pgpool.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-files.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,12 @@
|
|||
command:
|
||||
check-pgpool-compilation-options:
|
||||
exec: ldd /opt/bitnami/pgpool/bin/pgpool
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- libpam.so
|
||||
- libssl.so
|
||||
file:
|
||||
/opt/bitnami/pgpool/logs/pgpool.log:
|
||||
exists: true
|
||||
filetype: symlink
|
||||
linked-to: /dev/stdout
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
binaries:
|
||||
- psql
|
||||
- wait-for-port
|
||||
- pgpool
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /docker-entrypoint-initdb.d
|
||||
- /opt/bitnami/pgpool/tmp
|
||||
- /opt/bitnami/pgpool/logs
|
||||
- /opt/bitnami/pgpool/conf
|
||||
- /opt/bitnami/pgpool/etc
|
||||
- /opt/bitnami/pgpool/data
|
||||
- /var/run/nslcd
|
||||
files:
|
||||
- mode: "0660"
|
||||
paths:
|
||||
- /etc/nslcd.conf
|
||||
- paths:
|
||||
- /etc/pam.d/pgpool
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: pgpool
|
||||
flag: --version
|
||||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -82,6 +83,21 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "pgpool/goss/goss.yaml",
|
||||
"vars_file": "pgpool/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-pgpool"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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": "pgpool/goss/goss.yaml",
|
||||
"vars_file": "pgpool/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-pgpool"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue