3 describe 'opendaylight' do
4 # All tests that check OS support/not-support
5 describe 'OS support tests' do
6 # All tests for OSs in the Red Hat family (CentOS, Fedora)
7 describe 'OS family Red Hat ' do
11 operatingsystem = 'Fedora'
13 # All tests for supported versions of Fedora
14 ['25', '26'].each do |operatingsystemmajrelease|
15 context "#{operatingsystemmajrelease}" do
17 :osfamily => osfamily,
18 :operatingsystem => operatingsystem,
19 :operatingsystemmajrelease => operatingsystemmajrelease,
21 # Run shared tests applicable to all supported OSs
22 # Note that this function is defined in spec_helper
25 # Run tests that specialize in checking rpm-based installs
26 # NB: Only testing defaults here, specialized rpm tests elsewhere
27 # Note that this function is defined in spec_helper
28 rpm_install_tests(operatingsystem: operatingsystem)
30 # Run tests that specialize in checking Karaf feature installs
31 # NB: Only testing defaults here, specialized Karaf tests elsewhere
32 # Note that this function is defined in spec_helper
35 # Run tests that specialize in checking ODL's REST port config
36 # NB: Only testing defaults here, specialized log level tests elsewhere
37 # Note that this function is defined in spec_helper
40 # Run tests that specialize in checking custom log level config
41 # NB: Only testing defaults here, specialized log level tests elsewhere
42 # Note that this function is defined in spec_helper
45 # Run tests that specialize in checking ODL OVSDB HA config
46 # NB: Only testing defaults here, specialized enabling HA tests elsewhere
47 # Note that this function is defined in spec_helper
50 # Run tests that specialize in checking log file settings
51 # NB: Only testing defaults here, specialized log file settings tests elsewhere
52 # Note that this function is defined in spec_helper
57 # All tests for unsupported versions of Fedora
58 ['23'].each do |operatingsystemmajrelease|
59 context "#{operatingsystemmajrelease}" do
61 :osfamily => osfamily,
62 :operatingsystem => operatingsystem,
63 :operatingsystemmajrelease => operatingsystemmajrelease,
65 # Run shared tests applicable to all unsupported OSs
66 # Note that this function is defined in spec_helper
67 expected_msg = "Unsupported OS: #{operatingsystem} #{operatingsystemmajrelease}"
68 unsupported_os_tests(expected_msg: expected_msg)
73 # All tests for CentOS
75 operatingsystem = 'CentOS'
77 # All tests for supported versions of CentOS
78 ['7'].each do |operatingsystemmajrelease|
79 context "#{operatingsystemmajrelease}" do
81 :osfamily => osfamily,
82 :operatingsystem => operatingsystem,
83 :operatingsystemmajrelease => operatingsystemmajrelease,
85 # Run shared tests applicable to all supported OSs
86 # Note that this function is defined in spec_helper
89 # Run test that specialize in checking rpm-based installs
90 # NB: Only testing defaults here, specialized rpm tests elsewhere
91 # Note that this function is defined in spec_helper
94 # Run test that specialize in checking Karaf feature installs
95 # NB: Only testing defaults here, specialized Karaf tests elsewhere
96 # Note that this function is defined in spec_helper
99 # Run tests that specialize in checking ODL's REST port config
100 # NB: Only testing defaults here, specialized log level tests elsewhere
101 # Note that this function is defined in spec_helper
104 # Run test that specialize in checking custom log level config
105 # NB: Only testing defaults here, specialized log level tests elsewhere
106 # Note that this function is defined in spec_helper
109 # Run tests that specialize in checking ODL OVSDB HA config
110 # NB: Only testing defaults here, specialized enabling HA tests elsewhere
111 # Note that this function is defined in spec_helper
114 # Run tests that specialize in checking log file settings
115 # NB: Only testing defaults here, specialized log file settings tests elsewhere
116 # Note that this function is defined in spec_helper
121 # All tests for unsupported versions of CentOS
122 ['6'].each do |operatingsystemmajrelease|
123 context "#{operatingsystemmajrelease}" do
125 :osfamily => osfamily,
126 :operatingsystem => operatingsystem,
127 :operatingsystemmajrelease => operatingsystemmajrelease,
129 # Run shared tests applicable to all unsupported OSs
130 # Note that this function is defined in spec_helper
131 expected_msg = "Unsupported OS: #{operatingsystem} #{operatingsystemmajrelease}"
132 unsupported_os_tests(expected_msg: expected_msg)
138 # All tests for OSs in the Debian family (Ubuntu)
139 describe 'OS family Debian' do
142 # All tests for Ubuntu 16.04
144 operatingsystem = 'Ubuntu'
146 # All tests for supported versions of Ubuntu
147 ['16.04'].each do |operatingsystemrelease|
148 context "#{operatingsystemrelease}" do
150 :osfamily => osfamily,
151 :operatingsystem => operatingsystem,
152 :operatingsystemrelease => operatingsystemrelease,
153 :lsbdistid => operatingsystem,
154 :lsbdistrelease => operatingsystemrelease,
155 :lsbdistcodename => 'xenial',
156 :puppetversion => '4.9.0',
157 :path => ['/usr/local/bin', '/usr/bin', '/bin'],
160 # Run shared tests applicable to all supported OSs
161 # Note that this function is defined in spec_helper
164 # Run test that specialize in checking deb-based installs
165 # Note that this function is defined in spec_helper
168 # Run test that specialize in checking Karaf feature installs
169 # NB: Only testing defaults here, specialized Karaf tests elsewhere
170 # Note that this function is defined in spec_helper
173 # Run tests that specialize in checking ODL's REST port config
174 # NB: Only testing defaults here, specialized log level tests elsewhere
175 # Note that this function is defined in spec_helper
178 # Run test that specialize in checking custom log level config
179 # NB: Only testing defaults here, specialized log level tests elsewhere
180 # Note that this function is defined in spec_helper
183 # Run tests that specialize in checking ODL OVSDB HA config
184 # NB: Only testing defaults here, specialized enabling HA tests elsewhere
185 # Note that this function is defined in spec_helper
188 # Run tests that specialize in checking log file settings
189 # NB: Only testing defaults here, specialized log file settings tests elsewhere
190 # Note that this function is defined in spec_helper
195 # All tests for unsupported versions of Ubuntu
196 ['12.04', '14.04', '15.10'].each do |operatingsystemrelease|
197 context "#{operatingsystemrelease}" do
199 :osfamily => osfamily,
200 :operatingsystem => operatingsystem,
201 :operatingsystemrelease => operatingsystemrelease,
202 :lsbdistid => operatingsystem,
203 :lsbdistrelease => operatingsystemrelease,
204 :lsbdistcodename => 'xenial',
205 :puppetversion => '4.9.0',
207 # Run shared tests applicable to all unsupported OSs
208 # Note that this function is defined in spec_helper
209 expected_msg = "Unsupported OS: #{operatingsystem} #{operatingsystemrelease}"
210 unsupported_os_tests(expected_msg: expected_msg)
216 # All tests for unsupported OS families
217 ['Suse', 'Solaris'].each do |osfamily|
218 context "OS family #{osfamily}" do
220 :osfamily => osfamily,
223 # Run shared tests applicable to all unsupported OSs
224 # Note that this function is defined in spec_helper
225 expected_msg = "Unsupported OS family: #{osfamily}"
226 unsupported_os_tests(expected_msg: expected_msg)
231 # All Karaf feature tests
232 describe 'Karaf feature tests' do
233 # Non-OS-type tests assume CentOS 7
234 # See issue #43 for reasoning:
235 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
237 operatingsystem = 'CentOS'
238 operatingsystemmajrelease = '7'
239 describe 'using default features' do
240 context 'and not passing extra features' do
242 :osfamily => osfamily,
243 :operatingsystem => operatingsystem,
244 :operatingsystemmajrelease => operatingsystemmajrelease,
249 # Run shared tests applicable to all supported OSs
250 # Note that this function is defined in spec_helper
253 # Run test that specialize in checking Karaf feature installs
254 # Note that this function is defined in spec_helper
258 context 'and passing extra features' do
260 :osfamily => osfamily,
261 :operatingsystem => operatingsystem,
262 :operatingsystemmajrelease => operatingsystemmajrelease,
265 # These are real but arbitrarily chosen features
266 extra_features = ['odl-base-all', 'odl-ovsdb-all']
268 :extra_features => extra_features,
271 # Run shared tests applicable to all supported OSs
272 # Note that this function is defined in spec_helper
275 # Run test that specialize in checking Karaf feature installs
276 # Note that this function is defined in spec_helper
277 karaf_feature_tests(extra_features: extra_features)
281 describe 'overriding default features' do
282 default_features = ['standard', 'ssh']
283 context 'and not passing extra features' do
285 :osfamily => osfamily,
286 :operatingsystem => operatingsystem,
287 :operatingsystemmajrelease => operatingsystemmajrelease,
291 :default_features => default_features,
294 # Run shared tests applicable to all supported OSs
295 # Note that this function is defined in spec_helper
298 # Run test that specialize in checking Karaf feature installs
299 # Note that this function is defined in spec_helper
300 karaf_feature_tests(default_features: default_features)
303 context 'and passing extra features' do
305 :osfamily => osfamily,
306 :operatingsystem => operatingsystem,
307 :operatingsystemmajrelease => operatingsystemmajrelease,
310 # These are real but arbitrarily chosen features
311 extra_features = ['odl-base-all', 'odl-ovsdb-all']
313 :default_features => default_features,
314 :extra_features => extra_features,
317 # Run shared tests applicable to all supported OSs
318 # Note that this function is defined in spec_helper
321 # Run test that specialize in checking Karaf feature installs
322 # Note that this function is defined in spec_helper
323 karaf_feature_tests(default_features: default_features, extra_features: extra_features)
328 # All ODL REST port tests
329 describe 'REST port tests' do
330 # Non-OS-type tests assume CentOS 7
331 # See issue #43 for reasoning:
332 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
334 operatingsystem = 'CentOS'
335 operatingsystemmajrelease = '7'
336 context 'using default REST port' do
338 :osfamily => osfamily,
339 :operatingsystem => operatingsystem,
340 :operatingsystemmajrelease => operatingsystemmajrelease,
345 # Run shared tests applicable to all supported OSs
346 # Note that this function is defined in spec_helper
349 # Run test that specialize in checking ODL REST port config
350 # Note that this function is defined in spec_helper
354 context 'overriding default REST and IP port' do
356 :osfamily => osfamily,
357 :operatingsystem => operatingsystem,
358 :operatingsystemmajrelease => operatingsystemmajrelease,
362 :odl_rest_port => 7777,
363 :odl_bind_ip => '127.0.0.1'
366 # Run shared tests applicable to all supported OSs
367 # Note that this function is defined in spec_helper
370 # Run test that specialize in checking ODL REST port config
371 # Note that this function is defined in spec_helper
372 odl_rest_port_tests(odl_rest_port: 7777, odl_bind_ip: '127.0.0.1')
376 # All custom log level tests
377 describe 'custom log level tests' do
378 # Non-OS-type tests assume CentOS 7
379 # See issue #43 for reasoning:
380 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
382 operatingsystem = 'CentOS'
383 operatingsystemmajrelease = '7'
384 context 'using default log levels' do
386 :osfamily => osfamily,
387 :operatingsystem => operatingsystem,
388 :operatingsystemmajrelease => operatingsystemmajrelease,
393 # Run shared tests applicable to all supported OSs
394 # Note that this function is defined in spec_helper
397 # Run test that specialize in checking custom log level config
398 # Note that this function is defined in spec_helper
402 context 'adding one custom log level' do
404 :osfamily => osfamily,
405 :operatingsystem => operatingsystem,
406 :operatingsystemmajrelease => operatingsystemmajrelease,
409 custom_log_levels = { 'org.opendaylight.ovsdb' => 'TRACE' }
412 :log_levels => custom_log_levels,
415 # Run shared tests applicable to all supported OSs
416 # Note that this function is defined in spec_helper
419 # Run test that specialize in checking log level config
420 # Note that this function is defined in spec_helper
421 log_level_tests(log_levels: custom_log_levels)
424 context 'adding two custom log levels' do
426 :osfamily => osfamily,
427 :operatingsystem => operatingsystem,
428 :operatingsystemmajrelease => operatingsystemmajrelease,
431 custom_log_levels = { 'org.opendaylight.ovsdb' => 'TRACE',
432 'org.opendaylight.ovsdb.lib' => 'INFO' }
435 :log_levels => custom_log_levels,
438 # Run shared tests applicable to all supported OSs
439 # Note that this function is defined in spec_helper
442 # Run test that specialize in checking log level config
443 # Note that this function is defined in spec_helper
444 log_level_tests(log_levels: custom_log_levels)
448 describe 'log mechanism settings' do
449 # Non-OS-type tests assume CentOS 7
450 # See issue #43 for reasoning:
451 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
453 operatingsystem = 'CentOS'
454 operatingsystemmajrelease = '7'
456 # All custom log file size and rollover tests
457 context 'log to file using default size and rollover' do
459 :osfamily => osfamily,
460 :operatingsystem => operatingsystem,
461 :operatingsystemmajrelease => operatingsystemmajrelease,
466 # Run shared tests applicable to all supported OSs
467 # Note that this function is defined in spec_helper
470 # Run test specific to log settings
474 context 'log to file customizing size' do
476 :osfamily => osfamily,
477 :operatingsystem => operatingsystem,
478 :operatingsystemmajrelease => operatingsystemmajrelease,
482 :log_max_size => '1GB',
485 # Run shared tests applicable to all supported OSs
486 # Note that this function is defined in spec_helper
489 # Run test specific to log settings
490 log_settings(log_max_size: '1GB')
493 context 'log to file customizing rollover' do
495 :osfamily => osfamily,
496 :operatingsystem => operatingsystem,
497 :operatingsystemmajrelease => operatingsystemmajrelease,
501 :log_max_rollover => 3,
504 # Run shared tests applicable to all supported OSs
505 # Note that this function is defined in spec_helper
508 # Run test specific to log settings
509 log_settings(log_max_rollover: 3)
512 context 'log to file customizing size and rollover' do
514 :osfamily => osfamily,
515 :operatingsystem => operatingsystem,
516 :operatingsystemmajrelease => operatingsystemmajrelease,
520 :log_max_size => '1GB',
521 :log_max_rollover => 3,
524 # Run shared tests applicable to all supported OSs
525 # Note that this function is defined in spec_helper
528 # Run test specific to log settings
529 log_settings(log_max_size: '1GB',
533 context 'log to console' do
535 :osfamily => osfamily,
536 :operatingsystem => operatingsystem,
537 :operatingsystemmajrelease => operatingsystemmajrelease,
541 :log_mechanism => 'console',
544 # Run shared tests applicable to all supported OSs
545 # Note that this function is defined in spec_helper
548 # Run test specific to log settings
549 log_settings(log_mechanism: 'console')
553 # All OVSDB HA enable/disable tests
554 describe 'OVSDB HA enable/disable tests' do
555 # Non-OS-type tests assume CentOS 7
556 # See issue #43 for reasoning:
557 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
559 operatingsystem = 'CentOS'
560 operatingsystemmajrelease = '7'
561 context 'using enable_ha default' do
563 :osfamily => osfamily,
564 :operatingsystem => operatingsystem,
565 :operatingsystemmajrelease => operatingsystemmajrelease,
570 # Run shared tests applicable to all supported OSs
571 # Note that this function is defined in spec_helper
574 # Run test that specialize in checking ODL OVSDB HA config
575 # Note that this function is defined in spec_helper
579 context 'using false for enable_ha' do
581 :osfamily => osfamily,
582 :operatingsystem => operatingsystem,
583 :operatingsystemmajrelease => operatingsystemmajrelease,
590 # Run shared tests applicable to all supported OSs
591 # Note that this function is defined in spec_helper
594 # Run test that specialize in checking ODL OVSDB HA config
595 # Note that this function is defined in spec_helper
596 enable_ha_tests(enable_ha: false)
599 context 'using true for enable_ha' do
600 context 'using ha_node_count >=2' do
602 :osfamily => osfamily,
603 :operatingsystem => operatingsystem,
604 :operatingsystemmajrelease => operatingsystemmajrelease,
609 :ha_node_ips => ['0.0.0.0', '127.0.0.1']
612 # Run shared tests applicable to all supported OSs
613 # Note that this function is defined in spec_helper
616 # Run test that specialize in checking ODL OVSDB HA config
617 # Note that this function is defined in spec_helper
618 enable_ha_tests(enable_ha: true, ha_node_ips: ['0.0.0.0', '127.0.0.1'])
621 context 'using custom modules for sharding' do
623 :osfamily => osfamily,
624 :operatingsystem => operatingsystem,
625 :operatingsystemmajrelease => operatingsystemmajrelease,
630 :ha_node_ips => ['0.0.0.0', '127.0.0.1'],
631 :ha_db_modules => {'default' => false, 'topology' => 'urn:opendaylight:topology'}
634 # Run shared tests applicable to all supported OSs
635 # Note that this function is defined in spec_helper
638 # Run test that specialize in checking ODL OVSDB HA config
639 # Note that this function is defined in spec_helper
640 enable_ha_tests(enable_ha: true, ha_node_ips: ['0.0.0.0', '127.0.0.1'])
646 # All install method tests
647 describe 'install method tests' do
649 # All tests for RPM install method
651 # Non-OS-type tests assume CentOS 7
652 # See issue #43 for reasoning:
653 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
655 operatingsystem = 'CentOS'
656 operatingsystemrelease = '7.0'
657 operatingsystemmajrelease = '7'
659 context 'installing from default repo' do
661 :osfamily => osfamily,
662 :operatingsystem => operatingsystem,
663 :operatingsystemmajrelease => operatingsystemmajrelease,
666 # Run shared tests applicable to all supported OSs
667 # Note that this function is defined in spec_helper
670 # Run test that specialize in checking RPM-based installs
671 # Note that this function is defined in spec_helper
675 context 'installing from Nexus repo' do
676 rpm_repo = 'https://nexus.opendaylight.org/content/repositories/opendaylight-fluorine-epel-7-$basearch-devel'
678 :osfamily => osfamily,
679 :operatingsystem => operatingsystem,
680 :operatingsystemmajrelease => operatingsystemmajrelease,
684 :rpm_repo => rpm_repo,
687 # Run shared tests applicable to all supported OSs
688 # Note that this function is defined in spec_helper
691 # Run test that specialize in checking RPM-based installs
692 # Note that this function is defined in spec_helper
693 rpm_install_tests(rpm_repo: rpm_repo)
697 # All tests for Deb install method
700 operatingsystem = 'Ubuntu'
701 operatingsystemrelease = '16.04'
702 operatingsystemmajrelease = '16'
703 lsbdistcodename = 'xenial'
705 context 'installing Deb' do
707 :osfamily => osfamily,
708 :operatingsystem => operatingsystem,
709 :operatingsystemrelease => operatingsystemrelease,
710 :operatingsystemmajrelease => operatingsystemmajrelease,
711 :lsbdistid => operatingsystem,
712 :lsbdistrelease => operatingsystemrelease,
713 :lsbmajdistrelease => operatingsystemmajrelease,
714 :lsbdistcodename => lsbdistcodename,
715 :puppetversion => Puppet.version,
718 # Run shared tests applicable to all supported OSs
719 # Note that this function is defined in spec_helper
722 # Run test that specialize in checking RPM-based installs
723 # Note that this function is defined in spec_helper
727 context 'installing Nitrogen Deb' do
728 deb_repo = 'ppa:odl-team/nitrogen'
730 :osfamily => osfamily,
731 :operatingsystem => operatingsystem,
732 :operatingsystemrelease => operatingsystemrelease,
733 :operatingsystemmajrelease => operatingsystemmajrelease,
734 :lsbdistid => operatingsystem,
735 :lsbdistrelease => operatingsystemrelease,
736 :lsbmajdistrelease => operatingsystemmajrelease,
737 :lsbdistcodename => lsbdistcodename,
738 :puppetversion => Puppet.version,
742 :deb_repo => deb_repo,
745 # Run shared tests applicable to all supported OSs
746 # Note that this function is defined in spec_helper
749 # Run test that specialize in checking RPM-based installs
750 # Note that this function is defined in spec_helper
751 deb_install_tests(deb_repo: deb_repo)
756 # SNAT Mechanism tests
757 describe 'SNAT mechanism tests' do
758 # Non-OS-type tests assume CentOS 7
759 # See issue #43 for reasoning:
760 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
762 operatingsystem = 'CentOS'
763 operatingsystemmajrelease = '7'
764 context 'using controller' do
766 :osfamily => osfamily,
767 :operatingsystem => operatingsystem,
768 :operatingsystemmajrelease => operatingsystemmajrelease,
772 :extra_features => ['odl-netvirt-openstack'],
775 # Run shared tests applicable to all supported OSs
776 # Note that this function is defined in spec_helper
779 # Run test that specialize in checking security groups
780 # Note that this function is defined in spec_helper
784 context 'using conntrack' do
786 :osfamily => osfamily,
787 :operatingsystem => operatingsystem,
788 :operatingsystemmajrelease => operatingsystemmajrelease,
792 :snat_mechanism => 'conntrack',
793 :extra_features => ['odl-netvirt-openstack'],
796 # Run shared tests applicable to all supported OSs
797 # Note that this function is defined in spec_helper
800 # Run test that specialize in checking security groups
801 # Note that this function is defined in spec_helper
802 snat_mechanism_tests('conntrack')
807 describe 'SFC tests' do
808 # Non-OS-type tests assume CentOS 7
809 # See issue #43 for reasoning:
810 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
812 operatingsystem = 'CentOS'
813 operatingsystemmajrelease = '7'
814 context 'not using odl-netvirt-sfc feature' do
816 :osfamily => osfamily,
817 :operatingsystem => operatingsystem,
818 :operatingsystemmajrelease => operatingsystemmajrelease,
823 # Run shared tests applicable to all supported OSs
824 # Note that this function is defined in spec_helper
827 # Run test that specialize in checking security groups
828 # Note that this function is defined in spec_helper
832 context 'using odl-netvirt-sfc feature' do
834 :osfamily => osfamily,
835 :operatingsystem => operatingsystem,
836 :operatingsystemmajrelease => operatingsystemmajrelease,
840 :extra_features => ['odl-netvirt-sfc'],
843 # Run shared tests applicable to all supported OSs
844 # Note that this function is defined in spec_helper
847 # Run test that specialize in checking security groups
848 # Note that this function is defined in spec_helper
849 sfc_tests(extra_features: ['odl-netvirt-sfc'])
854 describe 'DSCP marking tests' do
855 # Non-OS-type tests assume CentOS 7
856 # See issue #43 for reasoning:
857 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
859 operatingsystem = 'CentOS'
860 operatingsystemmajrelease = '7'
861 context 'use default value' do
863 :osfamily => osfamily,
864 :operatingsystem => operatingsystem,
865 :operatingsystemmajrelease => operatingsystemmajrelease,
870 # Run shared tests applicable to all supported OSs
871 # Note that this function is defined in spec_helper
874 # Run test that specialize in checking security groups
875 # Note that this function is defined in spec_helper
879 context 'inherit DSCP values' do
881 :osfamily => osfamily,
882 :operatingsystem => operatingsystem,
883 :operatingsystemmajrelease => operatingsystemmajrelease,
887 :inherit_dscp_marking => :true,
890 # Run shared tests applicable to all supported OSs
891 # Note that this function is defined in spec_helper
894 # Run test that specialize in checking security groups
895 # Note that this function is defined in spec_helper
896 dscp_tests(inherit_dscp_marking: true)
900 # VPP routing node config tests
901 describe 'VPP routing node tests' do
902 # Non-OS-type tests assume CentOS 7
903 # See issue #43 for reasoning:
904 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
906 operatingsystem = 'CentOS'
907 operatingsystemmajrelease = '7'
908 context 'using default - no routing node' do
910 :osfamily => osfamily,
911 :operatingsystem => operatingsystem,
912 :operatingsystemmajrelease => operatingsystemmajrelease,
917 # Run shared tests applicable to all supported OSs
918 # Note that this function is defined in spec_helper
921 # Run test that specialize in checking routing-node config
922 # Note that this function is defined in spec_helper
923 vpp_routing_node_tests
926 context 'using node name for routing node' do
928 :osfamily => osfamily,
929 :operatingsystem => operatingsystem,
930 :operatingsystemmajrelease => operatingsystemmajrelease,
934 :vpp_routing_node => 'test-node-1',
937 # Run shared tests applicable to all supported OSs
938 # Note that this function is defined in spec_helper
941 # Run test that specialize in checking routing-node config
942 # Note that this function is defined in spec_helper
943 vpp_routing_node_tests(routing_node: 'test-node-1')
947 # ODL username/password tests
948 describe 'ODL username/password tests' do
949 # Non-OS-type tests assume CentOS 7
950 # See issue #43 for reasoning:
951 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
953 operatingsystem = 'CentOS'
954 operatingsystemmajrelease = '7'
955 context 'using default username/password' do
957 :osfamily => osfamily,
958 :operatingsystem => operatingsystem,
959 :operatingsystemmajrelease => operatingsystemmajrelease,
964 # Run shared tests applicable to all supported OSs
965 # Note that this function is defined in spec_helper
968 # Run test that specialize in checking username/password config
969 # Note that this function is defined in spec_helper
970 username_password_tests('admin','admin')
973 context 'specifying non-default username/password' do
975 :osfamily => osfamily,
976 :operatingsystem => operatingsystem,
977 :operatingsystemmajrelease => operatingsystemmajrelease,
985 # Run shared tests applicable to all supported OSs
986 # Note that this function is defined in spec_helper
989 # Run test that specialize in checking routing-node config
990 # Note that this function is defined in spec_helper
991 username_password_tests('test', 'test')
995 # websocket address tests
996 describe 'ODL websocket address tests' do
997 # Non-OS-type tests assume CentOS 7
998 # See issue #43 for reasoning:
999 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
1001 operatingsystem = 'CentOS'
1002 operatingsystemmajrelease = '7'
1003 context 'using default websocket address' do
1005 :osfamily => osfamily,
1006 :operatingsystem => operatingsystem,
1007 :operatingsystemmajrelease => operatingsystemmajrelease,
1012 # Run shared tests applicable to all supported OSs
1013 # Note that this function is defined in spec_helper
1016 # Run test that specialize in checking websocket address
1017 # Note that this function is defined in spec_helper
1018 odl_websocket_address_tests
1021 context 'overriding websocket address' do
1023 :osfamily => osfamily,
1024 :operatingsystem => operatingsystem,
1025 :operatingsystemmajrelease => operatingsystemmajrelease,
1029 :odl_bind_ip => '127.0.0.1'
1032 # Run shared tests applicable to all supported OSs
1033 # Note that this function is defined in spec_helper
1036 # Run test that specialize in checking websocket address
1037 # Note that this function is defined in spec_helper
1038 odl_websocket_address_tests(odl_bind_ip: '127.0.0.1')
1043 describe 'ODL TLS tests' do
1044 # Non-OS-type tests assume CentOS 7
1045 # See issue #43 for reasoning:
1046 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
1048 operatingsystem = 'CentOS'
1049 operatingsystemmajrelease = '7'
1050 context 'enabling TLS without required keystore password (negative test)' do
1052 :osfamily => osfamily,
1053 :operatingsystem => operatingsystem,
1054 :operatingsystemmajrelease => operatingsystemmajrelease,
1058 :enable_tls => :true
1061 # Run test that specialize in checking TLS
1062 # Note that this function is defined in spec_helper
1063 odl_tls_tests(enable_tls:true)
1065 context 'enabling TLS with required params' do
1067 :osfamily => osfamily,
1068 :operatingsystem => operatingsystem,
1069 :operatingsystemmajrelease => operatingsystemmajrelease,
1073 :enable_tls => true,
1074 :tls_keystore_password => '123456',
1077 # Run shared tests applicable to all supported OSs
1078 # Note that this function is defined in spec_helper
1081 # Run test that specialize in checking TLS
1082 # Note that this function is defined in spec_helper
1083 odl_tls_tests(enable_tls:true, tls_keystore_password:'123456')