mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 23:38:32 +08:00
[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:
committed by
GitHub
parent
6d81068fb5
commit
62e8107a91
12
.vib/percona-mysql/goss/goss.yaml
Normal file
12
.vib/percona-mysql/goss/goss.yaml
Normal 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: {}
|
||||
11
.vib/percona-mysql/goss/percona-mysql.yaml
Normal file
11
.vib/percona-mysql/goss/percona-mysql.yaml
Normal 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
|
||||
21
.vib/percona-mysql/goss/vars.yaml
Normal file
21
.vib/percona-mysql/goss/vars.yaml
Normal 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
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -64,9 +65,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": "percona-mysql/goss/goss.yaml",
|
||||
"vars_file": "percona-mysql/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-percona-mysql"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": "percona-mysql/goss/goss.yaml",
|
||||
"vars_file": "percona-mysql/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-percona-mysql"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user