diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index 75d6784e4..29828d71e 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -21,4 +21,18 @@ class { 'collectd': } it { should be_running } end end + + context 'install memory plugin' do + it 'works idemptontently' do + pp = <<-EOS + class { '::collectd': } + + class { '::collectd::plugin::memory': } + EOS + + # Run it twice and test for idempotency + apply_manifest(pp, catch_failures: true) + apply_manifest(pp, catch_changes: true) + end + end end