Fix tests, drop support for proxysql versions < 2.2 #112
Annotations
2 errors
Run tests:
spec/classes/proxysql_spec.rb#L111
proxysql supported operating systems on ubuntu-20.04-x86_64 proxysql class without any parameters is expected to contain Exec[wait_for_admin_socket_to_open] with command => "test -S /var/lib/proxysql/proxysql_admin.sock", unless => "test -S /var/lib/proxysql/proxysql_admin.sock", tries => 3, try_sleep => 10, require => "Service[proxysql]" and path => "/bin:/usr/bin"
Failure/Error:
is_expected.to contain_exec('wait_for_admin_socket_to_open').with(
command: "test -S #{admin_socket}",
unless: "test -S #{admin_socket}",
tries: 3,
try_sleep: 10,
require: 'Service[proxysql]',
path: '/bin:/usr/bin'
)
expected that the catalogue would contain Exec[wait_for_admin_socket_to_open] with command set to "test -S /var/lib/proxysql/proxysql_admin.sock" but it is set to "test -S /tmp/proxysql_admin.sock", and parameter unless set to "test -S /var/lib/proxysql/proxysql_admin.sock" but it is set to "test -S /tmp/proxysql_admin.sock"
Diff:
@@ -1,4 +1,4 @@
-test -S /var/lib/proxysql/proxysql_admin.sock
+test -S /tmp/proxysql_admin.sock
-test -S /var/lib/proxysql/proxysql_admin.sock
+test -S /tmp/proxysql_admin.sock
|
Run tests
Process completed with exit code 1.
|
Loading