fix against rubocop #174
Annotations
10 errors
Run tests:
spec/acceptance/fact_spec.rb#L35
nomad class facts sets up nomad
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian10-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_142157004.rfeEsW.pp
Last 10 lines of output were:
�[mNotice: /Stage[main]/Nomad::Install/File[/var/lib/nomad]: Dependency Package[nomad] has failures: true
Warning: /Stage[main]/Nomad::Install/File[/var/lib/nomad]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/usr/local/bin/config_validate.rb]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/etc/nomad.d]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[nomad config.json]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/etc/nomad.d/nomad.env]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Run_service/Service[nomad]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Reload_service/Exec[reload nomad service]: Skipping because of failed dependencies
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 3.70 seconds
|
Run tests:
spec/acceptance/fact_spec.rb#L39
nomad class facts outputs nomad facts when installed
Failure/Error: expect(r.stdout).to match(%r{nomad_node_id: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}})
expected "\e[0;32mInfo: Loading facts\e[0m\n\e[0;32mInfo: Loading facts\e[0m\n\e[0;32mInfo: Loading facts\e[0m...ge: defined 'message' as 'nomad_version: '\e[0m\n\e[mNotice: Applied catalog in 0.01 seconds\e[0m\n" to match /nomad_node_id: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}/
Diff:
@@ -1,13 +1,25 @@
-/nomad_node_id: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}/
+Info: Loading facts
+Info: Loading facts
+Info: Loading facts
+Info: Loading facts
+Info: Loading facts
+�[mNotice: Compiled catalog for debian10-64-puppet8.example.com in environment production in 0.01 seconds
+Info: Using environment 'production'
+Info: Applying configuration version '1732026128'
+�[mNotice: nomad_node_id:
+�[mNotice: /Stage[main]/Main/Notify[nomad_node_id: ]/message: defined 'message' as 'nomad_node_id: '
+�[mNotice: nomad_version:
+�[mNotice: /Stage[main]/Main/Notify[nomad_version: ]/message: defined 'message' as 'nomad_version: '
+�[mNotice: Applied catalog in 0.01 seconds
|
Run tests:
spec/acceptance/package_spec.rb#L8
nomad class default parameters works with no errors based on the example
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian10-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_142208161.QJPI6l.pp
Last 10 lines of output were:
E: Unable to locate package nomad
�[mNotice: /Stage[main]/Nomad::Install/File[/var/lib/nomad]: Dependency Package[nomad] has failures: true
Warning: /Stage[main]/Nomad::Install/File[/var/lib/nomad]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/usr/local/bin/config_validate.rb]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/etc/nomad.d]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[nomad config.json]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/etc/nomad.d/nomad.env]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Run_service/Service[nomad]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Reload_service/Exec[reload nomad service]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 1.97 seconds
|
Run tests:
spec/acceptance/package_spec.rb#L31
nomad class default parameters File "/var/lib/nomad" is expected to be directory
Failure/Error: it { is_expected.to be_directory }
expected `File "/var/lib/nomad".directory?` to be truthy, got false
|
Run tests:
spec/acceptance/package_spec.rb#L35
nomad class default parameters Service "nomad" is expected to be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "nomad" to be enabled
|
Run tests:
spec/acceptance/package_spec.rb#L36
nomad class default parameters Service "nomad" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "nomad" to be running
|
Run tests:
spec/acceptance/server_recover_spec.rb#L40
nomad class server_recovery sets up nomad
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian10-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_142219059.blyro5.pp
Last 10 lines of output were:
E: Unable to locate package nomad
�[mNotice: /Stage[main]/Nomad::Install/File[/var/lib/nomad]: Dependency Package[nomad] has failures: true
Warning: /Stage[main]/Nomad::Install/File[/var/lib/nomad]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/usr/local/bin/config_validate.rb]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/etc/nomad.d]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[nomad config.json]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Config/File[/etc/nomad.d/nomad.env]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Run_service/Service[nomad]: Skipping because of failed dependencies
Warning: /Stage[main]/Nomad::Reload_service/Exec[reload nomad service]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 1.90 seconds
|
Run tests:
spec/acceptance/server_recover_spec.rb#L52
nomad class server_recovery outputs nomad facts when installed
Failure/Error: expect(r.stdout).to match(%r{nomad_node_id: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}})
expected "\e[0;32mInfo: Loading facts\e[0m\n\e[0;32mInfo: Loading facts\e[0m\n\e[0;32mInfo: Loading facts\e[0m...ge: defined 'message' as 'nomad_version: '\e[0m\n\e[mNotice: Applied catalog in 0.01 seconds\e[0m\n" to match /nomad_node_id: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}/
Diff:
@@ -1,13 +1,25 @@
-/nomad_node_id: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}/
+Info: Loading facts
+Info: Loading facts
+Info: Loading facts
+Info: Loading facts
+Info: Loading facts
+�[mNotice: Compiled catalog for debian10-64-puppet8.example.com in environment production in 0.01 seconds
+Info: Using environment 'production'
+Info: Applying configuration version '1732026148'
+�[mNotice: nomad_node_id:
+�[mNotice: /Stage[main]/Main/Notify[nomad_node_id: ]/message: defined 'message' as 'nomad_node_id: '
+�[mNotice: nomad_version:
+�[mNotice: /Stage[main]/Main/Notify[nomad_version: ]/message: defined 'message' as 'nomad_version: '
+�[mNotice: Applied catalog in 0.01 seconds
|
Run tests:
spec/acceptance/server_recover_spec.rb#L45
nomad class server_recovery File "/tmp/peers.json" is expected to be file
Failure/Error: it { is_expected.to be_file }
expected `File "/tmp/peers.json".file?` to be truthy, got false
|
Run tests:
spec/acceptance/server_recover_spec.rb#L46
nomad class server_recovery File "/tmp/peers.json" is expected to contain "a1b2c3d4-1234-5678-9012-3456789abcde"
Failure/Error: it { is_expected.to contain 'a1b2c3d4-1234-5678-9012-3456789abcde' }
expected File "/tmp/peers.json" to contain "a1b2c3d4-1234-5678-9012-3456789abcde"
|
Loading