File: keystone_deps_spec.rb

package info (click to toggle)
puppet-module-keystone 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,428 kB
  • sloc: ruby: 9,684; pascal: 295; python: 38; makefile: 10; sh: 10
file content (32 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download | duplicates (3)
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
require 'spec_helper'

describe 'keystone::deps' do
  shared_examples 'keystone::deps' do
    context 'with default params' do
      it {
        is_expected.to contain_anchor('keystone::install::begin')
        is_expected.to contain_anchor('keystone::install::end')
        is_expected.to contain_anchor('keystone::config::begin')
        is_expected.to contain_anchor('keystone::config::end')
        is_expected.to contain_anchor('keystone::db::begin')
        is_expected.to contain_anchor('keystone::db::end')
        is_expected.to contain_anchor('keystone::dbsync::begin')
        is_expected.to contain_anchor('keystone::dbsync::end')
        is_expected.to contain_anchor('keystone::service::begin')
        is_expected.to contain_anchor('keystone::service::end')
      }
    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_behaves_like 'keystone::deps'
    end
  end
end