Skip to content

Commit

Permalink
Add acceptance test for ovs_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunge committed Oct 12, 2020
1 parent ff706d5 commit 3261fc5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions spec/acceptance/class_plugin_ovs_stats_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require 'spec_helper_acceptance'

describe 'collectd::plugin::ovs_stats class' do
context 'basic parameters' do
# Using puppet_apply as a helper
it 'works idempotently with no errors' do
pp = <<-EOS
class{'collectd':}
class { 'collectd::plugin::ovs_stats':
port => 6639
}
EOS
# Run 3 times since the collectd_version
# fact is impossible until collectd is
# installed.
apply_manifest(pp, catch_failures: false)
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
# Wait to get some data
shell('sleep 10')
end

describe service('collectd') do
it { is_expected.to be_running }
end
end
end

0 comments on commit 3261fc5

Please sign in to comment.