This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
forked from bdangit/chef-influxdb
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 bdangit#50 from mistsys/rberger/test_zero_nine
Make test/integration/zero_nine a copy instead of a symbolic link of test/integration/default
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
require 'serverspec' | ||
|
||
# Required by serverspec | ||
set :backend, :exec | ||
|
||
# include Serverspec::Helper::Exec | ||
# include Serverspec::Helper::DetectOS | ||
Serverspec.describe "influxdb" do | ||
before(:all) do | ||
status = `service influxdb status` | ||
unless status =~ /OK/ | ||
puts "STARTING INFLUXDB: " | ||
puts `service influxdb start` | ||
sleep 1 | ||
end | ||
end | ||
|
||
describe user('influxdb') do | ||
it { should exist } | ||
end | ||
|
||
describe service('influxdb') do | ||
it { should be_running } | ||
end | ||
|
||
describe port(8083) do | ||
it { should be_listening } | ||
end | ||
|
||
describe port(8086) do | ||
it { should be_listening } | ||
end | ||
end |