Skip to content

Commit

Permalink
Add acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Sep 22, 2020
1 parent c022d13 commit 3eb7b49
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 3eb7b49

Please sign in to comment.