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:
@@ -210,6 +210,11 @@ class MysqlsTest extends TestCase
|
|||||||
$dbm = new \Froxlor\Database\DbManager(\Froxlor\FroxlorLogger::getInstanceOf());
|
$dbm = new \Froxlor\Database\DbManager(\Froxlor\FroxlorLogger::getInstanceOf());
|
||||||
$users = $dbm->getManager()->getAllSqlUsers(false);
|
$users = $dbm->getManager()->getAllSqlUsers(false);
|
||||||
foreach ($users as $user => $data) {
|
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 . '"');
|
$this->assertNotEmpty($data['password'], 'No password for user "' . $user . '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user