do not check for mariadb.sys user on mariadb-10.4 when testing with travis

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2020-05-23 21:17:43 +02:00
parent 7000fd2c30
commit 65b2e4efa7

View File

@@ -210,6 +210,11 @@ class MysqlsTest extends TestCase
$dbm = new \Froxlor\Database\DbManager(\Froxlor\FroxlorLogger::getInstanceOf());
$users = $dbm->getManager()->getAllSqlUsers(false);
foreach ($users as $user => $data) {
if (TRAVIS_CI == 1 && strtolower($user) == 'mariadb.sys') {
// travis seems to have a user for mariadb on version 10.4
// we do not want to test that one
continue;
}
$this->assertNotEmpty($data['password'], 'No password for user "' . $user . '"');
}