-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from bkw/fixUiDir
remove superfluous subdir consol_ui
- Loading branch information
Showing
5 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require 'spec_helper' | ||
|
||
describe file('/var/lib/consul/ui/index.html') do | ||
it { should be_file } | ||
end | ||
|
||
describe command('wget -q -O- http://0.0.0.0:8500/ui/index.html') do | ||
it { should return_exit_status 0 } | ||
its(:stdout) { should == File.read('/var/lib/consul/ui/index.html') } | ||
end | ||
|
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,16 @@ | ||
begin | ||
require 'rspec/its' | ||
rescue LoadError | ||
require 'rubygems/dependency_installer' | ||
Gem::DependencyInstaller.new.install('rspec-its') | ||
require 'rspec/its' | ||
end | ||
|
||
require 'serverspec' | ||
|
||
include SpecInfra::Helper::Exec | ||
include SpecInfra::Helper::DetectOS | ||
|
||
RSpec.configure do |c| | ||
c.path = '/usr/local/bin:/sbin:/bin:/usr/bin' | ||
end |