aboutsummaryrefslogtreecommitdiffstats
path: root/spec/classes
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-09-20 07:50:44 -0400
committerFeng Pan <fpan@redhat.com>2017-09-20 17:54:27 -0400
commit19fa56176090ca9a1dbce1dff944d8946d15b20a (patch)
tree37432599bc63f625ac9d3f326f9ce79c1a1a619c /spec/classes
parentdcda81db3eb61bdf69751ce6963b564abf7b7e0c (diff)
Add tuntap/tapcli configuration support
JIRA: PUP-3 Change-Id: Ia3e00887289b7b069ac8e3e39943bed264b78982 Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'spec/classes')
-rw-r--r--spec/classes/fdio_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/classes/fdio_spec.rb b/spec/classes/fdio_spec.rb
index 4786ac0..3b260ca 100644
--- a/spec/classes/fdio_spec.rb
+++ b/spec/classes/fdio_spec.rb
@@ -86,6 +86,21 @@ describe 'fdio' do
is_expected.to contain_vpp_config('vhost-user/dont-dump-memory').with_ensure('present')
end
end
+
+ context 'with tuntap/tapcli' do
+ before :each do
+ params.merge!(
+ :vpp_tuntap_enable => true,
+ :vpp_tuntap_mtu => 9000,
+ :vpp_tapcli_mtu => 9000
+ )
+ end
+ it 'should configure vhost-user options' do
+ is_expected.to contain_vpp_config('tuntap/enable').with_ensure('present')
+ is_expected.to contain_vpp_config('tuntap/mtu').with_value('9000')
+ is_expected.to contain_vpp_config('tapcli/mtu').with_value('9000')
+ end
+ end
end
shared_examples_for 'fdio - service' do