aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/acceptance/fdio_spec.rb6
-rw-r--r--spec/classes/fdio_spec.rb15
2 files changed, 21 insertions, 0 deletions
diff --git a/spec/acceptance/fdio_spec.rb b/spec/acceptance/fdio_spec.rb
index 68f2013..4be1865 100644
--- a/spec/acceptance/fdio_spec.rb
+++ b/spec/acceptance/fdio_spec.rb
@@ -41,6 +41,9 @@ describe 'fdio' do
vpp_vhostuser_coalesce_frames => 32,
vpp_vhostuser_coalesce_time => 0.05,
vpp_vhostuser_dont_dump_memory => true,
+ vpp_tuntap_enable => true,
+ vpp_tuntap_mtu => 9000,
+ vpp_tapcli_mtu => 8000,
}
EOS
@@ -54,6 +57,9 @@ describe 'fdio' do
its(:content) { should match /coalesce-frames\s+32/ }
its(:content) { should match /coalesce-time\s+0.05/ }
its(:content) { should match /dont-dump-memory/ }
+ its(:content) { should match /enable/ }
+ its(:content) { should match /mtu 9000/ }
+ its(:content) { should match /mtu 8000/ }
end
end
end
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