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 'ubuntu1804-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_142210034.aadWhL.pp
Last 10 lines of output were:
validate Checks if a given job specification is valid
version Prints the Nomad version
�[mNotice: /Stage[main]/Nomad::Config/File[/etc/nomad.d/nomad.env]/ensure: defined content as '{sha256}01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b'
Info: Class[Nomad::Config]: Unscheduling all events on Class[Nomad::Config]
�[mNotice: /Stage[main]/Nomad::Run_service/Service[nomad]: Dependency File[nomad config.json] has failures: true
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: Class[Nomad]: Unscheduling all events on Class[Nomad]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 7.67 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...efined 'message' as 'nomad_version: 0.4.0'\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 ubuntu1804-64-puppet8.example.com in environment production in 0.01 seconds
+Info: Using environment 'production'
+Info: Applying configuration version '1732026147'
+�[mNotice: nomad_node_id:
+�[mNotice: /Stage[main]/Main/Notify[nomad_node_id: ]/message: defined 'message' as 'nomad_node_id: '
+�[mNotice: nomad_version: 0.4.0
+�[mNotice: /Stage[main]/Main/Notify[nomad_version: 0.4.0]/message: defined 'message' as 'nomad_version: 0.4.0'
+�[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 'ubuntu1804-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_142227402.1fnE6H.pp
Last 10 lines of output were:
server-join Join server nodes together
server-members Display a list of known servers and their status
status Display status information about jobs
stop Stop a running job
validate Checks if a given job specification is valid
version Prints the Nomad version
�[mNotice: /Stage[main]/Nomad::Run_service/Service[nomad]: Dependency File[nomad config.json] has failures: true
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.21 seconds
|
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 'ubuntu1804-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_142238502.B0sJSF.pp
Last 10 lines of output were:
server-join Join server nodes together
server-members Display a list of known servers and their status
status Display status information about jobs
stop Stop a running job
validate Checks if a given job specification is valid
version Prints the Nomad version
�[mNotice: /Stage[main]/Nomad::Run_service/Service[nomad]: Dependency File[nomad config.json] has failures: true
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.25 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...efined 'message' as 'nomad_version: 0.4.0'\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 ubuntu1804-64-puppet8.example.com in environment production in 0.01 seconds
+Info: Using environment 'production'
+Info: Applying configuration version '1732026169'
+�[mNotice: nomad_node_id:
+�[mNotice: /Stage[main]/Main/Notify[nomad_node_id: ]/message: defined 'message' as 'nomad_node_id: '
+�[mNotice: nomad_version: 0.4.0
+�[mNotice: /Stage[main]/Main/Notify[nomad_version: 0.4.0]/message: defined 'message' as 'nomad_version: 0.4.0'
+�[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"
|
Run tests:
spec/acceptance/server_recover_spec.rb#L47
nomad class server_recovery File "/tmp/peers.json" is expected to contain "192.168.1.10"
Failure/Error: it { is_expected.to contain '192.168.1.10' }
expected File "/tmp/peers.json" to contain "192.168.1.10"
|
Loading