-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 voxpupuli/server
Add acceptance tests
- Loading branch information
Showing
2 changed files
with
22 additions
and
14 deletions.
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,22 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'hyperglass::server class' do | ||
context 'default parameters' do | ||
# Using puppet_apply as a helper | ||
it 'works with no errors' do | ||
pp = 'include hyperglass::server' | ||
|
||
# Run it three times and test for idempotency | ||
# redis dependency needs two run twice to start properly on selinux nodes | ||
# selinux is only enabled in vagrant images, not docker | ||
apply_manifest(pp, catch_failures: true) | ||
apply_manifest(pp, catch_failures: true) | ||
apply_manifest(pp, catch_changes: true) | ||
end | ||
|
||
describe service('hyperglass') do | ||
it { is_expected.to be_running } | ||
it { is_expected.to be_enabled } | ||
end | ||
end | ||
end |