xtrabackup: handle missing facts gracefully #195
Annotations
10 errors
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on debian-11-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["BINLOG MONITOR", "RELOAD", "PROCESS", "LOCK TABLES", "BACKUP_ADMIN"] but it is set to ["BINLOG MONITOR", "RELOAD", "PROCESS", "LOCK TABLES"]
Diff:
@@ -5,6 +5,4 @@
PROCESS
LOCK TABLES
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on redhat-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on redhat-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on oraclelinux-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on ubuntu-20.04-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on debian-10-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on sles-12-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on rocky-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on scientific-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Run tests:
spec/classes/mysql_backup_xtrabackup_spec.rb#L150
mysql::backup::xtrabackup on sles-15-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost]
Failure/Error:
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',
user: 'backupuser@localhost',
table: '*.*',
privileges:
if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) ||
(facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0)
['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN']
else
expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"]
Diff:
@@ -5,6 +5,4 @@
LOCK TABLES
REPLICATION CLIENT
-
-BACKUP_ADMIN
|
Loading