Skip to content

Commit

Permalink
Merge pull request #11 from voxpupuli/server
Browse files Browse the repository at this point in the history
Add acceptance tests
  • Loading branch information
bastelfreak authored Sep 22, 2020
2 parents 61620b0 + 3eb7b49 commit 739dcf8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
14 changes: 0 additions & 14 deletions spec/acceptance/class_spec.rb

This file was deleted.

22 changes: 22 additions & 0 deletions spec/acceptance/server_spec.rb
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

0 comments on commit 739dcf8

Please sign in to comment.