<commit_before>describe file('/var/lib/drone/drone.sqlite') do
  it { should be_file }
end

describe port(80) do
  it { should be_listening }
end

# Ubuntu image doesn't doesn't have cURL by default but wget can be used.
describe command("wget -q --no-check-certificate http://localhost") do
  its(:exit_status) { should eq 0 }
end

# No logs from agent (meaning no errors)
describe command("docker logs agent") do
  its(:exit_status) { should eq 0 }
  its(:stderr) { should include('connection established, ready to process builds') }
end

# Make sure correct docker version installed
describe command("docker version") do
  its(:stdout) { should include('Version:      17.04.0-ce') }
end

# Make sure running in host network mode
describe command("docker inspect drone") do<commit_msg>Don't care docker version installed when not specified<commit_after>describe file('/var/lib/drone/drone.sqlite') do
  it { should be_file }
end

describe port(80) do
  it { should be_listening }
end

# Ubuntu image doesn't doesn't have cURL by default but wget can be used.
describe command("wget -q --no-check-certificate http://localhost") do
  its(:exit_status) { should eq 0 }
end

# No logs from agent (meaning no errors)
describe command("docker logs agent") do
  its(:exit_status) { should eq 0 }
  its(:stderr) { should include('connection established, ready to process builds') }
end

# Make sure running in host network mode
describe command("docker inspect drone") do
{'fraction_non_alphanumeric': 0.10307167235494881, 'fraction_numerical': 0.008873720136518772, 'mean_word_length': 4.532075471698113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2968071', 'n_tokens_mistral': 463, 'n_tokens_neox': 421, 'n_words': 171}