Merge "Try to use mariadb in unittest again"
This commit is contained in:
+2
-2
@@ -59,7 +59,7 @@
|
||||
description: |
|
||||
Zuul unit tests with ZooKeeper running
|
||||
parent: nox
|
||||
nodeset: ubuntu-jammy
|
||||
nodeset: debian-bookworm
|
||||
pre-run: playbooks/zuul-nox/pre.yaml
|
||||
post-run: playbooks/zuul-nox/post-system-logs.yaml
|
||||
vars:
|
||||
@@ -79,7 +79,7 @@
|
||||
- job:
|
||||
name: zuul-nox-remote
|
||||
parent: nox
|
||||
nodeset: ubuntu-jammy
|
||||
nodeset: debian-bookworm
|
||||
timeout: 2700 # 45 minutes
|
||||
pre-run: playbooks/zuul-nox/pre.yaml
|
||||
post-run: playbooks/zuul-nox/post-system-logs.yaml
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
# This is a cross-platform list tracking distribution packages needed by tests;
|
||||
# see http://docs.openstack.org/infra/bindep/ for additional information.
|
||||
|
||||
mysql-client [test !platform:rpm]
|
||||
mariadb-client [test !platform:rpm]
|
||||
mariadb-server [test]
|
||||
mysql [test platform:rpm]
|
||||
mysql-server [test]
|
||||
postgresql [test]
|
||||
openssl [test]
|
||||
musl-dev [compile test platform:apk]
|
||||
|
||||
+1
-1
@@ -1729,7 +1729,7 @@ class MySQLSchemaFixture(fixtures.Fixture):
|
||||
if connected:
|
||||
db.close()
|
||||
|
||||
self.dburi = 'mysql+pymysql://{name}:{passwd}@{host}:{port}/{name}'\
|
||||
self.dburi = 'mariadb+pymysql://{name}:{passwd}@{host}:{port}/{name}'\
|
||||
.format(
|
||||
name=self.name,
|
||||
passwd=self.passwd,
|
||||
|
||||
@@ -2,8 +2,9 @@ version: "3"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
container_name: zuul-test-mysql
|
||||
image: mysql:8.0
|
||||
container_name: zuul-test-mariadb
|
||||
# Roughly matches version in Ubuntu Noble
|
||||
image: mariadb:10.11
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=insecure_worker
|
||||
ports:
|
||||
|
||||
@@ -40,7 +40,7 @@ else
|
||||
fi
|
||||
|
||||
|
||||
MYSQL="${DOCKER} exec zuul-test-mysql mysql -u root -pinsecure_worker"
|
||||
MYSQL="${DOCKER} exec zuul-test-mariadb mysql -u root -pinsecure_worker"
|
||||
|
||||
if [ "${COMPOSE}" == "docker-compose" ]; then
|
||||
${ROOTCMD} docker-compose rm -sf
|
||||
|
||||
Reference in New Issue
Block a user