Skip to content

Commit

Permalink
make acceptance tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Oct 23, 2024
1 parent db76d47 commit cda2710
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ class { 'proxysql':
it 'works idempotently with no errors' do

Check failure on line 40 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

proxysql class extended testing works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140632691.VB7BMu.pp Last 10 lines of output were: Warning: /Stage[main]/Main/Proxy_mysql_user[tester]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Proxy_mysql_user[tester1]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Proxy_mysql_user[tester2]: Skipping because of failed dependencies Error: Could not prefetch proxy_mysql_server provider 'proxysql': Execution of '/usr/bin/mysql -NBe SELECT `hostname`, `port`, `hostgroup_id` FROM `mysql_servers`' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Warning: /Stage[main]/Main/Proxy_mysql_server[127.0.0.1:3307-1]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Proxy_mysql_server[127.0.0.1:3307-2]: Skipping because of failed dependencies Error: Could not prefetch proxy_mysql_query_rule provider 'proxysql': Execution of '/usr/bin/mysql -NBe SELECT `rule_id` FROM `mysql_query_rules`' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Warning: /Stage[main]/Main/Proxy_mysql_query_rule[mysql_query_rule-1]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Proxy_mysql_query_rule[mysql_query_rule-2]: Skipping because of failed dependencies �[mNotice: Applied catalog in 90.47 seconds
pp = <<-EOS
class { 'proxysql':
listen_port => 3306,
admin_username => 'admin',
admin_password => Sensitive('654321'),
stats_username => 'stats',
stats_password => Sensitive('567890'),
monitor_username => 'monitor',
monitor_password => Sensitive('123456'),
override_config_settings => {
mysql_variables => {
'monitor_writer_is_also_reader' => false,
}
},
}
proxy_mysql_replication_hostgroup { '10-20':
Expand Down Expand Up @@ -322,18 +310,6 @@ class { 'proxysql':
pp = <<-EOS
class { 'proxysql':
restart => true,
listen_port => 3306,
admin_username => 'admin',
admin_password => Sensitive('654321'),
stats_username => 'stats',
stats_password => Sensitive('567890'),
monitor_username => 'monitor',
monitor_password => Sensitive('123456'),
override_config_settings => {
mysql_variables => {
'monitor_writer_is_also_reader' => true,
}
},
}
EOS
apply_manifest(pp, catch_failures: true)
Expand Down

0 comments on commit cda2710

Please sign in to comment.