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 port' do
356 :osfamily => osfamily,
357 :operatingsystem => operatingsystem,
358 :operatingsystemmajrelease => operatingsystemmajrelease,
362 :odl_rest_port => 7777,
365 # Run shared tests applicable to all supported OSs
366 # Note that this function is defined in spec_helper
369 # Run test that specialize in checking ODL REST port config
370 # Note that this function is defined in spec_helper
371 odl_rest_port_tests(odl_rest_port: 7777)
375 # All custom log level tests
376 describe 'custom log level tests' do
377 # Non-OS-type tests assume CentOS 7
378 # See issue #43 for reasoning:
379 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
381 operatingsystem = 'CentOS'
382 operatingsystemmajrelease = '7'
383 context 'using default log levels' do
385 :osfamily => osfamily,
386 :operatingsystem => operatingsystem,
387 :operatingsystemmajrelease => operatingsystemmajrelease,
392 # Run shared tests applicable to all supported OSs
393 # Note that this function is defined in spec_helper
396 # Run test that specialize in checking custom log level config
397 # Note that this function is defined in spec_helper
401 context 'adding one custom log level' do
403 :osfamily => osfamily,
404 :operatingsystem => operatingsystem,
405 :operatingsystemmajrelease => operatingsystemmajrelease,
408 custom_log_levels = { 'org.opendaylight.ovsdb' => 'TRACE' }
411 :log_levels => custom_log_levels,
414 # Run shared tests applicable to all supported OSs
415 # Note that this function is defined in spec_helper
418 # Run test that specialize in checking log level config
419 # Note that this function is defined in spec_helper
420 log_level_tests(log_levels: custom_log_levels)
423 context 'adding two custom log levels' do
425 :osfamily => osfamily,
426 :operatingsystem => operatingsystem,
427 :operatingsystemmajrelease => operatingsystemmajrelease,
430 custom_log_levels = { 'org.opendaylight.ovsdb' => 'TRACE',
431 'org.opendaylight.ovsdb.lib' => 'INFO' }
434 :log_levels => custom_log_levels,
437 # Run shared tests applicable to all supported OSs
438 # Note that this function is defined in spec_helper
441 # Run test that specialize in checking log level config
442 # Note that this function is defined in spec_helper
443 log_level_tests(log_levels: custom_log_levels)
447 # All custom log file size and rollover tests
448 describe 'log file size and rollover' 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'
455 context 'using default size and rollover' do
457 :osfamily => osfamily,
458 :operatingsystem => operatingsystem,
459 :operatingsystemmajrelease => operatingsystemmajrelease,
464 # Run shared tests applicable to all supported OSs
465 # Note that this function is defined in spec_helper
468 # Run test specific to log file settings
472 context 'customizing size' do
474 :osfamily => osfamily,
475 :operatingsystem => operatingsystem,
476 :operatingsystemmajrelease => operatingsystemmajrelease,
480 :log_max_size => '1GB',
483 # Run shared tests applicable to all supported OSs
484 # Note that this function is defined in spec_helper
487 # Run test specific to log file settings
488 log_file_settings(log_max_size: '1GB')
491 context 'customizing rollover' do
493 :osfamily => osfamily,
494 :operatingsystem => operatingsystem,
495 :operatingsystemmajrelease => operatingsystemmajrelease,
499 :log_max_rollover => 3,
502 # Run shared tests applicable to all supported OSs
503 # Note that this function is defined in spec_helper
506 # Run test specific to log file settings
507 log_file_settings(log_max_rollover: 3)
510 context 'customizing size and rollover' do
512 :osfamily => osfamily,
513 :operatingsystem => operatingsystem,
514 :operatingsystemmajrelease => operatingsystemmajrelease,
518 :log_max_size => '1GB',
519 :log_max_rollover => 3,
522 # Run shared tests applicable to all supported OSs
523 # Note that this function is defined in spec_helper
526 # Run test specific to log file settings
527 log_file_settings(log_max_size: '1GB',
532 # All OVSDB HA enable/disable tests
533 describe 'OVSDB HA enable/disable tests' do
534 # Non-OS-type tests assume CentOS 7
535 # See issue #43 for reasoning:
536 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
538 operatingsystem = 'CentOS'
539 operatingsystemmajrelease = '7'
540 context 'using enable_ha default' do
542 :osfamily => osfamily,
543 :operatingsystem => operatingsystem,
544 :operatingsystemmajrelease => operatingsystemmajrelease,
549 # Run shared tests applicable to all supported OSs
550 # Note that this function is defined in spec_helper
553 # Run test that specialize in checking ODL OVSDB HA config
554 # Note that this function is defined in spec_helper
558 context 'using false for enable_ha' do
560 :osfamily => osfamily,
561 :operatingsystem => operatingsystem,
562 :operatingsystemmajrelease => operatingsystemmajrelease,
569 # Run shared tests applicable to all supported OSs
570 # Note that this function is defined in spec_helper
573 # Run test that specialize in checking ODL OVSDB HA config
574 # Note that this function is defined in spec_helper
575 enable_ha_tests(enable_ha: false)
578 context 'using true for enable_ha' do
579 context 'using ha_node_count >=2' do
581 :osfamily => osfamily,
582 :operatingsystem => operatingsystem,
583 :operatingsystemmajrelease => operatingsystemmajrelease,
588 :ha_node_ips => ['0.0.0.0', '127.0.0.1']
591 # Run shared tests applicable to all supported OSs
592 # Note that this function is defined in spec_helper
595 # Run test that specialize in checking ODL OVSDB HA config
596 # Note that this function is defined in spec_helper
597 enable_ha_tests(enable_ha: true, ha_node_ips: ['0.0.0.0', '127.0.0.1'])
600 context 'using custom modules for sharding' do
602 :osfamily => osfamily,
603 :operatingsystem => operatingsystem,
604 :operatingsystemmajrelease => operatingsystemmajrelease,
609 :ha_node_ips => ['0.0.0.0', '127.0.0.1'],
610 :ha_db_modules => {'default' => false, 'topology' => 'urn:opendaylight:topology'}
613 # Run shared tests applicable to all supported OSs
614 # Note that this function is defined in spec_helper
617 # Run test that specialize in checking ODL OVSDB HA config
618 # Note that this function is defined in spec_helper
619 enable_ha_tests(enable_ha: true, ha_node_ips: ['0.0.0.0', '127.0.0.1'])
625 # All install method tests
626 describe 'install method tests' do
628 # All tests for RPM install method
630 # Non-OS-type tests assume CentOS 7
631 # See issue #43 for reasoning:
632 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
634 operatingsystem = 'CentOS'
635 operatingsystemrelease = '7.0'
636 operatingsystemmajrelease = '7'
638 context 'installing default RPM' do
640 :osfamily => osfamily,
641 :operatingsystem => operatingsystem,
642 :operatingsystemmajrelease => operatingsystemmajrelease,
645 # Run shared tests applicable to all supported OSs
646 # Note that this function is defined in spec_helper
649 # Run test that specialize in checking RPM-based installs
650 # Note that this function is defined in spec_helper
654 context 'installing Beryllium RPM' do
655 rpm_repo = 'opendaylight-40-release'
657 :osfamily => osfamily,
658 :operatingsystem => operatingsystem,
659 :operatingsystemmajrelease => operatingsystemmajrelease,
663 :rpm_repo => rpm_repo,
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
672 rpm_install_tests(rpm_repo: rpm_repo)
676 # All tests for Deb install method
679 operatingsystem = 'Ubuntu'
680 operatingsystemrelease = '16.04'
681 operatingsystemmajrelease = '16'
682 lsbdistcodename = 'xenial'
684 context 'installing Deb' do
686 :osfamily => osfamily,
687 :operatingsystem => operatingsystem,
688 :operatingsystemrelease => operatingsystemrelease,
689 :operatingsystemmajrelease => operatingsystemmajrelease,
690 :lsbdistid => operatingsystem,
691 :lsbdistrelease => operatingsystemrelease,
692 :lsbmajdistrelease => operatingsystemmajrelease,
693 :lsbdistcodename => lsbdistcodename,
694 :puppetversion => Puppet.version,
697 # Run shared tests applicable to all supported OSs
698 # Note that this function is defined in spec_helper
701 # Run test that specialize in checking RPM-based installs
702 # Note that this function is defined in spec_helper
706 context 'installing Carbon Deb' do
707 deb_repo = 'ppa:odl-team/carbon'
709 :osfamily => osfamily,
710 :operatingsystem => operatingsystem,
711 :operatingsystemrelease => operatingsystemrelease,
712 :operatingsystemmajrelease => operatingsystemmajrelease,
713 :lsbdistid => operatingsystem,
714 :lsbdistrelease => operatingsystemrelease,
715 :lsbmajdistrelease => operatingsystemmajrelease,
716 :lsbdistcodename => lsbdistcodename,
717 :puppetversion => Puppet.version,
721 :deb_repo => deb_repo,
724 # Run shared tests applicable to all supported OSs
725 # Note that this function is defined in spec_helper
728 # Run test that specialize in checking RPM-based installs
729 # Note that this function is defined in spec_helper
730 deb_install_tests(deb_repo: deb_repo)
736 # Security Group Tests
737 describe 'security group tests' do
738 # Non-OS-type tests assume CentOS 7
739 # See issue #43 for reasoning:
740 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
742 operatingsystem = 'CentOS'
743 operatingsystemmajrelease = '7'
744 context 'using supported stateful' do
746 :osfamily => osfamily,
747 :operatingsystem => operatingsystem,
748 :operatingsystemmajrelease => operatingsystemmajrelease,
749 :operatingsystemrelease => '7.3',
753 :security_group_mode => 'stateful',
754 :extra_features => ['odl-netvirt-openstack'],
757 # Run shared tests applicable to all supported OSs
758 # Note that this function is defined in spec_helper
761 # Run test that specialize in checking security groups
762 # Note that this function is defined in spec_helper
763 enable_sg_tests('stateful', '7.3')
766 context 'using unsupported stateful' do
768 :osfamily => osfamily,
769 :operatingsystem => operatingsystem,
770 :operatingsystemmajrelease => operatingsystemmajrelease,
771 :operatingsystemrelease => '7.2.1511',
775 :security_group_mode => 'stateful',
776 :extra_features => ['odl-netvirt-openstack'],
779 # Run shared tests applicable to all supported OSs
780 # Note that this function is defined in spec_helper
783 # Run test that specialize in checking security groups
784 # Note that this function is defined in spec_helper
785 enable_sg_tests('stateful', '7.2.1511')
788 context 'using transparent with unsupported stateful' do
790 :osfamily => osfamily,
791 :operatingsystem => operatingsystem,
792 :operatingsystemmajrelease => operatingsystemmajrelease,
793 :operatingsystemrelease => '7.2.1511',
797 :security_group_mode => 'transparent',
798 :extra_features => ['odl-netvirt-openstack'],
801 # Run shared tests applicable to all supported OSs
802 # Note that this function is defined in spec_helper
805 # Run test that specialize in checking security groups
806 # Note that this function is defined in spec_helper
807 enable_sg_tests('transparent', '7.2.1511')
811 # SNAT Mechanism tests
812 describe 'SNAT mechanism tests' do
813 # Non-OS-type tests assume CentO
814 # See issue #43 for reasoning:
815 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
817 operatingsystem = 'CentOS'
818 operatingsystemmajrelease = '7'
819 context 'using controller' do
821 :osfamily => osfamily,
822 :operatingsystem => operatingsystem,
823 :operatingsystemmajrelease => operatingsystemmajrelease,
827 :extra_features => ['odl-netvirt-openstack'],
830 # Run shared tests applicable to all supported OSs
831 # Note that this function is defined in spec_helper
834 # Run test that specialize in checking security groups
835 # Note that this function is defined in spec_helper
839 context 'using conntrack' do
841 :osfamily => osfamily,
842 :operatingsystem => operatingsystem,
843 :operatingsystemmajrelease => operatingsystemmajrelease,
847 :snat_mechanism => 'conntrack',
848 :extra_features => ['odl-netvirt-openstack'],
851 # Run shared tests applicable to all supported OSs
852 # Note that this function is defined in spec_helper
855 # Run test that specialize in checking security groups
856 # Note that this function is defined in spec_helper
857 snat_mechanism_tests('conntrack')
862 describe 'SFC tests' do
863 # Non-OS-type tests assume CentO
864 # See issue #43 for reasoning:
865 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
867 operatingsystem = 'CentOS'
868 operatingsystemmajrelease = '7'
869 context 'using odl-netvirt-sfc feature' do
871 :osfamily => osfamily,
872 :operatingsystem => operatingsystem,
873 :operatingsystemmajrelease => operatingsystemmajrelease,
877 :extra_features => ['odl-netvirt-sfc'],
880 # Run shared tests applicable to all supported OSs
881 # Note that this function is defined in spec_helper
884 # Run test that specialize in checking security groups
885 # Note that this function is defined in spec_helper
890 # VPP routing node config tests
891 describe 'VPP routing node tests' do
892 # Non-OS-type tests assume CentOS 7
893 # See issue #43 for reasoning:
894 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
896 operatingsystem = 'CentOS'
897 operatingsystemmajrelease = '7'
898 context 'using default - no routing node' do
900 :osfamily => osfamily,
901 :operatingsystem => operatingsystem,
902 :operatingsystemmajrelease => operatingsystemmajrelease,
907 # Run shared tests applicable to all supported OSs
908 # Note that this function is defined in spec_helper
911 # Run test that specialize in checking routing-node config
912 # Note that this function is defined in spec_helper
913 vpp_routing_node_tests
916 context 'using node name for routing node' do
918 :osfamily => osfamily,
919 :operatingsystem => operatingsystem,
920 :operatingsystemmajrelease => operatingsystemmajrelease,
924 :vpp_routing_node => 'test-node-1',
927 # Run shared tests applicable to all supported OSs
928 # Note that this function is defined in spec_helper
931 # Run test that specialize in checking routing-node config
932 # Note that this function is defined in spec_helper
933 vpp_routing_node_tests(routing_node: 'test-node-1')
937 # ODL username/password tests
938 describe 'ODL username/password tests' do
939 # Non-OS-type tests assume CentOS 7
940 # See issue #43 for reasoning:
941 # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
943 operatingsystem = 'CentOS'
944 operatingsystemmajrelease = '7'
945 context 'using default username/password' do
947 :osfamily => osfamily,
948 :operatingsystem => operatingsystem,
949 :operatingsystemmajrelease => operatingsystemmajrelease,
954 # Run shared tests applicable to all supported OSs
955 # Note that this function is defined in spec_helper
958 # Run test that specialize in checking username/password config
959 # Note that this function is defined in spec_helper
960 username_password_tests('admin','admin')
963 context 'specifying non-default username/password' do
965 :osfamily => osfamily,
966 :operatingsystem => operatingsystem,
967 :operatingsystemmajrelease => operatingsystemmajrelease,
975 # Run shared tests applicable to all supported OSs
976 # Note that this function is defined in spec_helper
979 # Run test that specialize in checking routing-node config
980 # Note that this function is defined in spec_helper
981 username_password_tests('test', 'test')