diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-17 00:07:15 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-17 00:07:15 +0000 |
commit | 430e1b89ba95bcc7cdff2964025da2205f05606d (patch) | |
tree | 3817f6a008661b006394e5fe8a4a387e1b17508c /spec | |
parent | 3f700ce7c0b939db28f0149008f4090896d48e7c (diff) | |
parent | 9a79bdab86224e678414fd98ba2e888836083e79 (diff) |
Merge "Call VF configuration from udev rules"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/defines/tripleo_host_sriov_numvfs_persistence_spec.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/defines/tripleo_host_sriov_numvfs_persistence_spec.rb b/spec/defines/tripleo_host_sriov_numvfs_persistence_spec.rb index 57559a2..153b105 100644 --- a/spec/defines/tripleo_host_sriov_numvfs_persistence_spec.rb +++ b/spec/defines/tripleo_host_sriov_numvfs_persistence_spec.rb @@ -12,7 +12,8 @@ describe 'tripleo::host::sriov::numvfs_persistence' do { :name => 'persistence', :vf_defs => ['eth0:10','eth1:8'], - :content_string => "Hashbang\n" + :content_string => "Hashbang\n", + :udev_rules => "" } end @@ -31,6 +32,14 @@ describe 'tripleo::host::sriov::numvfs_persistence' do :content => '#!/bin/bash', :replace => false, ) + is_expected.to contain_file('/etc/udev/rules.d/70-tripleo-reset-sriov.rules').with( + :ensure => 'file', + :content => "KERNEL==\"eth0\", RUN+=\"/etc/sysconfig/allocate_vfs %k\"\nKERNEL==\"eth1\", RUN+=\"/etc/sysconfig/allocate_vfs %k\"\n", + :group => 'root', + :mode => '0755', + :owner => 'root', + :replace => true + ) is_expected.to contain_file_line('call_ifup-local').with( :path => '/sbin/ifup-local', :line => '/etc/sysconfig/allocate_vfs $1', |