File: nova_cell_v2_simple_setup_spec.rb

package info (click to toggle)
puppet-module-nova 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,100 kB
  • sloc: ruby: 11,433; python: 38; sh: 10; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (4)
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
32
33
34
35
require 'spec_helper'

describe 'nova::cell_v2::simple_setup' do

  shared_examples_for 'nova::cell_v2::simple_setup' do
    context 'with defaults' do

      it {
        is_expected.to contain_class('nova::cell_v2::map_cell0')
        is_expected.to contain_nova_cell_v2('cell0').with(
          :database_connection => 'default'
        )
        is_expected.to contain_nova_cell_v2('default').with(
          :transport_url       => 'default',
          :database_connection => 'default'
        )
        is_expected.to contain_class('nova::cell_v2::discover_hosts')
      }
    end
  end


  on_supported_os({
    :supported_os   => OSDefaults.get_supported_os
  }).each do |os,facts|
    context "on #{os}" do
      let (:facts) do
        facts.merge(OSDefaults.get_facts())
      end

      it_configures 'nova::cell_v2::simple_setup'
    end
  end

end