<commit_before>require "spec_helper_#{ENV['SPEC_TARGET_BACKEND']}"

describe command('consul version') do
  its(:exit_status) { should eq 0 }
end

describe command('consul version'), :if => ['alpine', 'debian'].include?(os[:family]) do
  its(:stdout) { should contain("Consul v0.6.4") }
end

describe file('/usr/local/bin/consul') do
  it { should be_executable }
end

[
  "#{ENV['CONSUL_CONFIG_REMOTE_DIR']}/web.json",
  "#{ENV['CONSUL_CONFIG_REMOTE_DIR']}/db.json"
].each do |f|
  describe file(f) do
    it { should be_file }
    it { should be_readable }
    it { should be_owned_by ENV['CONSUL_CONFIG_OWNER'] }
    it { should be_grouped_into ENV['CONSUL_CONFIG_GROUP'] }
  end
end<commit_msg>Update spec about Consul version on Linux.<commit_after>require "spec_helper_#{ENV['SPEC_TARGET_BACKEND']}"

describe command('consul version') do
  its(:exit_status) { should eq 0 }
end

describe command('consul version'), :if => ['alpine', 'debian'].include?(os[:family]) do
  its(:stdout) { should contain("Consul v0.7.0") }
end

describe file('/usr/local/bin/consul') do
  it { should be_executable }
end

[
  "#{ENV['CONSUL_CONFIG_REMOTE_DIR']}/web.json",
  "#{ENV['CONSUL_CONFIG_REMOTE_DIR']}/db.json"
].each do |f|
  describe file(f) do
    it { should be_file }
    it { should be_readable }
    it { should be_owned_by ENV['CONSUL_CONFIG_OWNER'] }
    it { should be_grouped_into ENV['CONSUL_CONFIG_GROUP'] }
  end
end
{'fraction_non_alphanumeric': 0.1550877192982456, 'fraction_numerical': 0.005614035087719298, 'mean_word_length': 4.991596638655462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1027587', 'n_tokens_mistral': 546, 'n_tokens_neox': 527, 'n_words': 113}