Skip to content

Fix tests, drop support for proxysql versions < 2.2 #112

Fix tests, drop support for proxysql versions < 2.2

Fix tests, drop support for proxysql versions < 2.2 #112

Triggered via pull request October 23, 2024 13:58
@sazsaz
opened #216
fix-tests
Status Cancelled
Total duration 4m 5s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
31s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

15 errors
Puppet / 7 - CentOS 7
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L9
proxysql class version 1.4 works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140108178.9Ek4i9.pp Last 10 lines of output were: �[mNotice: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Dependency Package[proxysql] has failures: true Warning: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Service/Service[proxysql]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Service/Exec[wait_for_admin_socket_to_open]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Admin_credentials/Exec[proxysql-admin-credentials]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Admin_credentials/File[root-mycnf-file]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Skipping because of failed dependencies Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 8.35 seconds
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L22
proxysql class version 1.4 Package "proxysql" is expected to be installed Failure/Error: it { is_expected.to be_installed } expected Package "proxysql" to be installed
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L26
proxysql class version 1.4 Service "proxysql" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "proxysql" to be enabled
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L27
proxysql class version 1.4 Service "proxysql" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "proxysql" to be running
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L31
proxysql class version 1.4 Command "proxysql --version" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 127 (compared using ==)
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L32
proxysql class version 1.4 Command "proxysql --version" stderr is expected to match /^ProxySQL version 1\.4\./ Failure/Error: its(:stderr) { is_expected.to match %r{^ProxySQL version 1\.4\.} } expected "/bin/sh: proxysql: command not found\n" to match /^ProxySQL version 1\.4\./ Diff: @@ -1 +1 @@ -/^ProxySQL version 1\.4\./ +/bin/sh: proxysql: command not found
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L38
proxysql class Upgrading to version 2.0 works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140119901.Ga2X0f.pp Last 10 lines of output were: Warning: /Stage[main]/Proxysql::Service/Systemd::Dropin_file[proxysql ExecStart override]/File[/etc/systemd/system/proxysql.service.d/puppet.conf]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Service/Systemd::Dropin_file[proxysql ExecStart override]/Systemd::Daemon_reload[proxysql.service]/Exec[systemd-proxysql.service-systemctl-daemon-reload]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Service/Service[proxysql]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Service/Exec[wait_for_admin_socket_to_open]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Admin_credentials/Exec[proxysql-admin-credentials]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Admin_credentials/File[root-mycnf-file]: Skipping because of failed dependencies Warning: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Skipping because of failed dependencies Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 4.03 seconds
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L55
proxysql class Upgrading to version 2.0 Package "proxysql" is expected to be installed Failure/Error: it { is_expected.to be_installed } expected Package "proxysql" to be installed
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L59
proxysql class Upgrading to version 2.0 Service "proxysql" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "proxysql" to be enabled
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L60
proxysql class Upgrading to version 2.0 Service "proxysql" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "proxysql" to be running
Puppet / 7 - Ubuntu 20.04
Canceling since a higher priority waiting request for '216/merge' exists
Puppet / 7 - Ubuntu 20.04
The operation was canceled.