forked from criteo-forks/consul-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added required ACL token to Windows reload action. Added windows_clie…
…nt suite
- Loading branch information
Graham Davison
committed
Jul 6, 2017
1 parent
a552ae7
commit 073dfc1
Showing
6 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require_relative '../spec_helper' | ||
|
||
consul_executable = "C:\\Program\ Files\\consul\\#{consul_version}\\consul.exe" | ||
consul_command = "& '#{consul_executable}'" | ||
|
||
config_file = 'C:\Program Files\consul\consul.json' | ||
config_dir = 'C:\Program Files\consul\conf.d' | ||
|
||
describe file(consul_executable) do | ||
it { should be_file } | ||
end | ||
|
||
describe service('consul') do | ||
it { should be_enabled } | ||
it { should be_running } | ||
end | ||
|
||
[8500, 8600].each do |p| | ||
describe port(p) do | ||
it { should be_listening } | ||
end | ||
end | ||
|
||
describe command("#{consul_command} members -detailed -token=doublesecret") do | ||
its(:exit_status) { should eq 0 } | ||
its(:stdout) { should include 'alive' } | ||
its(:stdout) { should include 'role=node' } | ||
end | ||
|
||
describe file(config_file) do | ||
it { should be_file } | ||
end | ||
|
||
describe file(config_dir) do | ||
it { should be_directory } | ||
end |