Skip to content

Commit b1b50a6

Browse files
committedSep 1, 2017
Update tests
1 parent c74a74b commit b1b50a6

File tree

1 file changed

+10
-10
lines changed
  • chef/cookbooks/metasploitable/test/linux

1 file changed

+10
-10
lines changed
 

‎chef/cookbooks/metasploitable/test/linux/flags.rb

+10-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
describe file('/home/artoo_detoo/music/10_of_clubs.wav') do
77
it { should be_file }
88
it { should be_owned_by 'artoo_detoo' }
9-
its('mode') { should cmp '0400' }
9+
its('mode') { should cmp '0410' }
1010
its('md5sum') { should eq '5b97f084aa90c4b9504725519cf5204e' }
1111
end
1212

@@ -33,14 +33,14 @@
3333
# NOTE: The chatbot can get a little laggy if there is a lot of data in the log.
3434
# This can cause this test to fail incorrectly.
3535
# To remedy, clear the /var/www/log.html file on metasploitable and restart the chatbot service.
36-
# describe 'ace_of_clubs' do
37-
# let(:host_ip) { command("ip addr | grep 'state UP' -A2 | grep 'eth0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/'").stdout.strip }
38-
#
39-
# it 'should print out the correct base64 flag' do
40-
# ct = ChatTest.new(host_ip)
41-
# expect(ct.check_chat_bot).to eq true #TODO: Make this output more meaningful. e.g. output what was returned and what was expected.
42-
# end
43-
# end
36+
describe 'ace_of_clubs' do
37+
let(:host_ip) { command("ip addr | grep 'state UP' -A2 | grep 'eth0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/'").stdout.strip }
38+
39+
it 'should print out the correct base64 flag' do
40+
ct = ChatTest.new(host_ip)
41+
expect(ct.check_chat_bot).to eq true #TODO: Make this output more meaningful. e.g. output what was returned and what was expected.
42+
end
43+
end
4444

4545
# Tests for "Hard mode" flags
4646
if ENV['MS3_LINUX_HARD']
@@ -119,7 +119,7 @@
119119
# 9 of Diamonds tests
120120
describe file('/home/kylo_ren/.secret_files/my_recordings_do_not_open.iso') do
121121
it { should be_file }
122-
its('mode') { should cmp '0600' }
122+
its('mode') { should cmp '0610' }
123123
its('owner') { should eq 'kylo_ren' }
124124
its('group') { should eq 'users' }
125125
end

0 commit comments

Comments
 (0)
Please sign in to comment.