Basic ODL Puppet mod skeleton
[integration/packaging/puppet-opendaylight.git] / spec / acceptance / class_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'opendaylight class' do
4
5   context 'default parameters' do
6     # Using puppet_apply as a helper
7     it 'should work idempotently with no errors' do
8       pp = <<-EOS
9       class { 'opendaylight': }
10       EOS
11
12       # Run it twice and test for idempotency
13       apply_manifest(pp, :catch_failures => true)
14       apply_manifest(pp, :catch_changes  => true)
15     end
16
17     describe package('opendaylight') do
18       it { is_expected.to be_installed }
19     end
20
21     describe service('opendaylight') do
22       it { is_expected.to be_enabled }
23       it { is_expected.to be_running }
24     end
25   end
26 end