[bitnami/percona-mysql] Add VIB tests (#29983)

* [bitnami/percona-mysql] Add VIB tests

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

* Remove unnecessary binary checks and trigger VIB

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

* Add mysql-shell binary check

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

* Remove unused goss template

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

* Remove VIB trigger

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

* Apply suggestions

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 12:39:50 +02:00
committed by GitHub
parent 6d81068fb5
commit 62e8107a91
5 changed files with 81 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
gossfile:
# Goss tests exclusive to the current container
../../percona-mysql/goss/percona-mysql.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: {}

View File

@@ -0,0 +1,11 @@
file:
# Checks there is a template already loaded as a config file
/opt/bitnami/mysql/conf/my.cnf:
exists: true
filetype: file
contains:
- socket=/opt/bitnami/mysql/tmp/mysql.sock
/opt/bitnami/mysql/logs/mysqld.log:
exists: true
filetype: symlink
linked-to: /dev/stdout

View File

@@ -0,0 +1,21 @@
binaries:
- gosu
- ini-file
- mysql
- mysqld
- mysqlsh
- xtrabackup
directories:
- mode: "0775"
paths:
- /bitnami/mysql
- /bitnami/mysql/data
- /opt/bitnami/mysql/conf
- /opt/bitnami/mysql/conf/bitnami
- /opt/bitnami/mysql/logs
- /opt/bitnami/mysql/tmp
- /.mysqlsh
root_dir: /opt/bitnami
version:
bin_name: mysql
flag: --version