[bitnami/mariadb] Add Helm Chart tests for MariaDB (#10503)

* Added antiflake pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Diversified the pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Make a change to trigger TKG

Signed-off-by: alukic <alukic@vmware.com>

* Replaced FIPS with normal AKS

Signed-off-by: alukic <alukic@vmware.com>

* Added extra workflow for Grafana Loki

Signed-off-by: alukic <alukic@vmware.com>

* Changed the pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Modified the workflow

Signed-off-by: alukic <alukic@vmware.com>

* Removed Grafana Loki

Signed-off-by: alukic <alukic@vmware.com>

* Added some tests from Content Platform Examples

Signed-off-by: alukic <alukic@vmware.com>

* Modified the Goss test

Signed-off-by: alukic <alukic@vmware.com>

* Modified tests and added VIB trigger

Signed-off-by: alukic <alukic@vmware.com>

* Modified the verification pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Change the VIB pipeline workload

Signed-off-by: alukic <alukic@vmware.com>

* Removed root and non root test

Signed-off-by: alukic <alukic@vmware.com>

* Removed  a Goss test, added Goss action to VIB publish

Signed-off-by: alukic <alukic@vmware.com>

* Undo changes on unrelated files

Signed-off-by: alukic <alukic@vmware.com>

* Renamed a test

Signed-off-by: alukic <alukic@vmware.com>

* Applied CR suggestions

Signed-off-by: alukic <alukic@vmware.com>

* Make changes to the vib-publish pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Change the size of the platform

Signed-off-by: alukic <alukic@vmware.com>

* A size typo

Signed-off-by: alukic <alukic@vmware.com>
This commit is contained in:
superaleks
2022-06-03 16:38:41 +02:00
committed by GitHub
parent 4d67b975c6
commit 08f26da95f
3 changed files with 84 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
port:
tcp6:3306:
listening: true
ip:
- '::'
process:
mysqld:
running: true
file:
{{ printf "/bitnami/mariadb/data/%s:" .Env.MARIADB_DATABASE }}:
mode: "2700"
filetype: directory
exists: true
/opt/bitnami/mariadb/conf/my.cnf:
mode: "0644"
filetype: file
contains: [
"[mysqld]",
"basedir=/opt/bitnami/mariadb",
"socket=/opt/bitnami/mariadb/tmp/mysql.sock"]
exists: true
command:
user-id-test:
exec: if [ "$(id -u)" -eq 0 ]; then exit 1; fi
exit-status: 0
stdout: []
stderr: []
create-table-test:
exec: mariadb -h localhost -u root -p"$MARIADB_ROOT_PASSWORD" "$MARIADB_DATABASE" -e 'DROP TABLE IF EXISTS TEST; create table TEST( test_id int auto_increment, test_value int, primary key(test_id)); INSERT INTO TEST (TEST_VALUE) VALUES (1989);SELECT * FROM TEST'
exit-status: 0
stdout:
- 1989
stderr: []
timeout: 9000

View File

@@ -17,14 +17,37 @@
]
},
"verify": {
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "/bitnami/mariadb"
},
"runtime_parameters": "YXV0aDoKICBkYXRhYmFzZTogdGVzdF9kYXRhYmFzZQogIHVzZXJuYW1lOiAidXNlciIKICBwYXNzd29yZDogIkNvbXBsaWNhdGVkUGFzc3dvcmQxMjMhNCI=",
"target_platform": {
"target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
"size": {
"name": "S4"
}
}
},
"actions": [
{
"action_id": "trivy",
"params": {
"threshold": "CRITICAL",
"vuln_type": [
"OS"
]
"vuln_type": ["OS"]
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib/mariadb/goss"
},
"remote": {
"workload": "sts-mariadb"
}
}
}
]

View File

@@ -17,6 +17,19 @@
]
},
"verify": {
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "/bitnami/mariadb"
},
"runtime_parameters": "YXV0aDoKICBkYXRhYmFzZTogdGVzdF9kYXRhYmFzZQogIHVzZXJuYW1lOiAidXNlciIKICBwYXNzd29yZDogIkNvbXBsaWNhdGVkUGFzc3dvcmQxMjMhNCI=",
"target_platform": {
"target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
"size": {
"name": "S4"
}
}
},
"actions": [
{
"action_id": "trivy",
@@ -24,6 +37,17 @@
"threshold": "CRITICAL",
"vuln_type": ["OS"]
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib/mariadb/goss"
},
"remote": {
"workload": "sts-mariadb"
}
}
}
]
}