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_host_sriov_spec.rb | |
parent | d3ae675747a70eb49cd2d732e5ac61b012a0389e (diff) | |
parent | 223c88460baf33f62acd9d089351b61306e42d72 (diff) |
Merge "Add in rspec-puppet-facts support"
Diffstat (limited to 'spec/classes/tripleo_host_sriov_spec.rb')
-rw-r--r-- | spec/classes/tripleo_host_sriov_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/classes/tripleo_host_sriov_spec.rb b/spec/classes/tripleo_host_sriov_spec.rb index 15d3813..920eb9b 100644 --- a/spec/classes/tripleo_host_sriov_spec.rb +++ b/spec/classes/tripleo_host_sriov_spec.rb @@ -2,15 +2,7 @@ require 'spec_helper' describe 'tripleo::host::sriov' do - shared_examples_for 'sriov vfs configuration for Red Hat distributions' do - - let :facts do - { - :osfamily => 'RedHat', - :operatingsystemmajrelease => 7, - } - end - + shared_examples_for 'tripleo::host::sriov' do let :params do {:number_of_vfs => []} end @@ -35,5 +27,13 @@ describe 'tripleo::host::sriov' do end end - it_configures 'sriov vfs configuration for Red Hat distributions' + on_supported_os.each do |os, facts| + context "on #{os}" do + let(:facts) do + facts.merge({}) + end + + it_behaves_like 'tripleo::host::sriov' + end + end end |