diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-23 19:25:35 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-23 19:25:36 +0000 |
commit | 942b2a2b8c87b471b57b7d304be923c81d7eb55f (patch) | |
tree | 468add724830a18dc791e221e3da2728b607355c /spec/classes/tripleo_midonet_agent_spec.rb | |
parent | d3ae675747a70eb49cd2d732e5ac61b012a0389e (diff) | |
parent | 223c88460baf33f62acd9d089351b61306e42d72 (diff) |
Merge "Add in rspec-puppet-facts support"
Diffstat (limited to 'spec/classes/tripleo_midonet_agent_spec.rb')
-rw-r--r-- | spec/classes/tripleo_midonet_agent_spec.rb | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/spec/classes/tripleo_midonet_agent_spec.rb b/spec/classes/tripleo_midonet_agent_spec.rb index eb3abfe..73d90b6 100644 --- a/spec/classes/tripleo_midonet_agent_spec.rb +++ b/spec/classes/tripleo_midonet_agent_spec.rb @@ -19,17 +19,7 @@ require 'spec_helper' describe 'tripleo::network::midonet::agent' do - let :facts do - { - :hostname => 'host2.midonet', - :osfamily => 'RedHat', - :operatingsystem => 'CentOS', - :operatingsystemrelease => '7.1', - :operatingsystemmajrelease => 7, - } - end - - shared_examples_for 'midonet agent test' do + shared_examples_for 'tripleo::network::midonet::agent' do let :params do { @@ -56,7 +46,13 @@ describe 'tripleo::network::midonet::agent' do end end - it_configures 'midonet agent test' - + on_supported_os.each do |os, facts| + context "on #{os}" do + let(:facts) do + facts.merge({}) + end + it_behaves_like 'tripleo::network::midonet::agent' + end + end end |