File: 10_basic_cloudkitty_spec.rb

package info (click to toggle)
puppet-module-cloudkitty 16.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: ruby: 2,189; python: 33; makefile: 10; sh: 10
file content (31 lines) | stat: -rw-r--r-- 806 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'spec_helper_acceptance'

describe 'basic cloudkitty' do

  context 'default parameters' do

    it 'should work with no errors' do
      pp= <<-EOS
      include openstack_integration
      include openstack_integration::repos
      include openstack_integration::apache
      include openstack_integration::rabbitmq
      include openstack_integration::memcached
      include openstack_integration::mysql
      include openstack_integration::redis
      include openstack_integration::keystone
      include openstack_integration::cloudkitty
      EOS

      # Run it twice and test for idempotency
      apply_manifest(pp, :catch_failures => true)
      apply_manifest(pp, :catch_changes => true)
    end

    describe port(8889) do
      it { is_expected.to be_listening }
    end

  end

end