Skip to content

Instantly share code, notes, and snippets.

@chris-rock
Created December 28, 2015 13:40
Show Gist options
  • Save chris-rock/bda25ab266c90e6c2455 to your computer and use it in GitHub Desktop.
Save chris-rock/bda25ab266c90e6c2455 to your computer and use it in GitHub Desktop.
Inspec AIX 7.2
"You are currently running on OS family: aix, OS release: 7.2"
...........F....................F......F.....F...........................................FFFF..............F.
Failures:
1) Csv /tmp/example.csv name should eq ["addressable", "ast", "astrolabe", "berkshelf"]
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected: ["addressable", "ast", "astrolabe", "berkshelf"]
got: ["addressable", "ast", "astrolabe", "berkshelf", nil]
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-["addressable", "ast", "astrolabe", "berkshelf"]
+["addressable", "ast", "astrolabe", "berkshelf", nil]
# ./test/integration/test/integration/default/csv_spec.rb:4:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
2) File /tmp/file should be readable by user root
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected File /tmp/file to be readable by user root
# ./test/integration/test/integration/default/file_spec.rb:59:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
3) File /tmp/file should be writable by user root
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected File /tmp/file to be writable by user root
# ./test/integration/test/integration/default/file_spec.rb:68:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
4) File /tmp/file should be executable by user root
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected File /tmp/file to be executable by user root
# ./test/integration/test/integration/default/file_spec.rb:77:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
5) Port 22 should be listening
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected `Port 22.listening?` to return true, got false
# ./test/integration/test/integration/default/port_spec.rb:6:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
6) Port 22 protocols should include "tcp"
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected nil to include "tcp", but it does not respond to `include?`
# ./test/integration/test/integration/default/port_spec.rb:7:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
7) Port 22 protocols should not include "udp"
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected nil not to include "udp", but it does not respond to `include?`
# ./test/integration/test/integration/default/port_spec.rb:8:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
8) Port 22 processes should include "sshd"
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected nil to include "sshd", but it does not respond to `include?`
# ./test/integration/test/integration/default/port_spec.rb:9:in `block (2 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
9) User bin warndays should eq 0
Failure/Error: rspec_runner.run_specs(@tests.ordered_example_groups)
expected: 0
got: nil
(compared using ==)
# ./test/integration/test/integration/default/user_spec.rb:69:in `block (3 levels) in load'
# ./lib/inspec/runner.rb:103:in `run_with'
# ./lib/inspec/runner.rb:99:in `run'
Finished in 8 seconds (files took 5.9 seconds to load)
109 examples, 9 failures
Failed examples:
rspec # Csv /tmp/example.csv name should eq ["addressable", "ast", "astrolabe", "berkshelf"]
rspec # File /tmp/file should be readable by user root
rspec # File /tmp/file should be writable by user root
rspec # File /tmp/file should be executable by user root
rspec # Port 22 should be listening
rspec # Port 22 protocols should include "tcp"
rspec # Port 22 protocols should not include "udp"
rspec # Port 22 processes should include "sshd"
rspec # User bin warndays should eq 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment