Remove enable_l3 param
[integration/packaging/puppet-opendaylight.git] / spec / classes / opendaylight_spec.rb
1 require 'spec_helper'
2
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
8       osfamily = 'RedHat'
9       # All tests for Fedora
10       describe 'Fedora' do
11         operatingsystem = 'Fedora'
12
13         # All tests for supported versions of Fedora
14         ['22', '23'].each do |operatingsystemmajrelease|
15           context "#{operatingsystemmajrelease}" do
16             let(:facts) {{
17               :osfamily => osfamily,
18               :operatingsystem => operatingsystem,
19               :operatingsystemmajrelease => operatingsystemmajrelease,
20             }}
21             # Run shared tests applicable to all supported OSs
22             # Note that this function is defined in spec_helper
23             generic_tests
24
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)
29
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
33             karaf_feature_tests
34
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
38             odl_rest_port_tests
39
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
43             log_level_tests
44
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
48             enable_ha_tests
49           end
50         end
51
52         # All tests for unsupported versions of Fedora
53         ['21'].each do |operatingsystemmajrelease|
54           context "#{operatingsystemmajrelease}" do
55             let(:facts) {{
56               :osfamily => osfamily,
57               :operatingsystem => operatingsystem,
58               :operatingsystemmajrelease => operatingsystemmajrelease,
59             }}
60             # Run shared tests applicable to all unsupported OSs
61             # Note that this function is defined in spec_helper
62             expected_msg = "Unsupported OS: #{operatingsystem} #{operatingsystemmajrelease}"
63             unsupported_os_tests(expected_msg: expected_msg)
64           end
65         end
66       end
67
68       # All tests for CentOS
69       describe 'CentOS' do
70         operatingsystem = 'CentOS'
71
72         # All tests for supported versions of CentOS
73         ['7'].each do |operatingsystemmajrelease|
74           context "#{operatingsystemmajrelease}" do
75             let(:facts) {{
76               :osfamily => osfamily,
77               :operatingsystem => operatingsystem,
78               :operatingsystemmajrelease => operatingsystemmajrelease,
79             }}
80             # Run shared tests applicable to all supported OSs
81             # Note that this function is defined in spec_helper
82             generic_tests
83
84             # Run test that specialize in checking rpm-based installs
85             # NB: Only testing defaults here, specialized rpm tests elsewhere
86             # Note that this function is defined in spec_helper
87             rpm_install_tests
88
89             # Run test that specialize in checking Karaf feature installs
90             # NB: Only testing defaults here, specialized Karaf tests elsewhere
91             # Note that this function is defined in spec_helper
92             karaf_feature_tests
93
94             # Run tests that specialize in checking ODL's REST port config
95             # NB: Only testing defaults here, specialized log level tests elsewhere
96             # Note that this function is defined in spec_helper
97             odl_rest_port_tests
98
99             # Run test that specialize in checking custom log level config
100             # NB: Only testing defaults here, specialized log level tests elsewhere
101             # Note that this function is defined in spec_helper
102             log_level_tests
103
104             # Run tests that specialize in checking ODL OVSDB HA config
105             # NB: Only testing defaults here, specialized enabling HA tests elsewhere
106             # Note that this function is defined in spec_helper
107             enable_ha_tests
108           end
109         end
110
111         # All tests for unsupported versions of CentOS
112         ['6'].each do |operatingsystemmajrelease|
113           context "#{operatingsystemmajrelease}" do
114             let(:facts) {{
115               :osfamily => osfamily,
116               :operatingsystem => operatingsystem,
117               :operatingsystemmajrelease => operatingsystemmajrelease,
118             }}
119             # Run shared tests applicable to all unsupported OSs
120             # Note that this function is defined in spec_helper
121             expected_msg = "Unsupported OS: #{operatingsystem} #{operatingsystemmajrelease}"
122             unsupported_os_tests(expected_msg: expected_msg)
123           end
124         end
125       end
126     end
127
128     # All tests for OSs in the Debian family (Ubuntu)
129     describe 'OS family Debian' do
130       osfamily = 'Debian'
131
132       # All tests for Ubuntu 14.04
133       describe 'Ubuntu' do
134         operatingsystem = 'Ubuntu'
135
136         # All tests for supported versions of Ubuntu
137         ['14.04'].each do |operatingsystemmajrelease|
138           context "#{operatingsystemmajrelease}" do
139             let(:facts) {{
140               :osfamily => osfamily,
141               :operatingsystem => operatingsystem,
142               :operatingsystemmajrelease => operatingsystemmajrelease,
143               # TODO: Do more elegantly. Java mod uses codenames to ID version.
144               :lsbdistcodename => 'trusty',
145               :architecture => 'x86_64',
146               :path => ['/usr/local/bin', '/usr/bin', '/bin'],
147             }}
148
149             # NB: Only tarball installs are supported for Debian family OSs
150             let(:params) {{
151               :install_method => 'tarball',
152             }}
153
154             # Run shared tests applicable to all supported OSs
155             # Note that this function is defined in spec_helper
156             generic_tests
157
158             # Run test that specialize in checking tarball-based installs
159             # NB: Only testing defaults here, specialized tarball tests elsewhere
160             # Passing osfamily required to do upstart vs systemd (default) checks
161             # Note that this function is defined in spec_helper
162             tarball_install_tests(osfamily: osfamily)
163
164             # Run test that specialize in checking Karaf feature installs
165             # NB: Only testing defaults here, specialized Karaf tests elsewhere
166             # Note that this function is defined in spec_helper
167             karaf_feature_tests
168
169             # Run tests that specialize in checking ODL's REST port config
170             # NB: Only testing defaults here, specialized log level tests elsewhere
171             # Note that this function is defined in spec_helper
172             odl_rest_port_tests
173
174             # Run test that specialize in checking custom log level config
175             # NB: Only testing defaults here, specialized log level tests elsewhere
176             # Note that this function is defined in spec_helper
177             log_level_tests
178
179             # Run tests that specialize in checking ODL OVSDB HA config
180             # NB: Only testing defaults here, specialized enabling HA tests elsewhere
181             # Note that this function is defined in spec_helper
182             enable_ha_tests
183           end
184         end
185
186         # All tests for unsupported versions of Ubuntu
187         ['12.04', '15.10'].each do |operatingsystemmajrelease|
188           context "#{operatingsystemmajrelease}" do
189             let(:facts) {{
190               :osfamily => osfamily,
191               :operatingsystem => operatingsystem,
192               :operatingsystemmajrelease => operatingsystemmajrelease,
193             }}
194             # Run shared tests applicable to all unsupported OSs
195             # Note that this function is defined in spec_helper
196             expected_msg = "Unsupported OS: #{operatingsystem} #{operatingsystemmajrelease}"
197             unsupported_os_tests(expected_msg: expected_msg)
198           end
199         end
200       end
201     end
202
203     # All tests for unsupported OS families
204     ['Suse', 'Solaris'].each do |osfamily|
205       context "OS family #{osfamily}" do
206         let(:facts) {{
207           :osfamily => osfamily,
208         }}
209
210         # Run shared tests applicable to all unsupported OSs
211         # Note that this function is defined in spec_helper
212         expected_msg = "Unsupported OS family: #{osfamily}"
213         unsupported_os_tests(expected_msg: expected_msg)
214       end
215     end
216   end
217
218   # All Karaf feature tests
219   describe 'Karaf feature tests' do
220     # Non-OS-type tests assume CentOS 7
221     #   See issue #43 for reasoning:
222     #   https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
223     osfamily = 'RedHat'
224     operatingsystem = 'CentOS'
225     operatingsystemmajrelease = '7'
226     describe 'using default features' do
227       context 'and not passing extra features' do
228         let(:facts) {{
229           :osfamily => osfamily,
230           :operatingsystem => operatingsystem,
231           :operatingsystemmajrelease => operatingsystemmajrelease,
232         }}
233
234         let(:params) {{ }}
235
236         # Run shared tests applicable to all supported OSs
237         # Note that this function is defined in spec_helper
238         generic_tests
239
240         # Run test that specialize in checking Karaf feature installs
241         # Note that this function is defined in spec_helper
242         karaf_feature_tests
243       end
244
245       context 'and passing extra features' do
246         let(:facts) {{
247           :osfamily => osfamily,
248           :operatingsystem => operatingsystem,
249           :operatingsystemmajrelease => operatingsystemmajrelease,
250         }}
251
252         # These are real but arbitrarily chosen features
253         extra_features = ['odl-base-all', 'odl-ovsdb-all']
254         let(:params) {{
255           :extra_features => extra_features,
256         }}
257
258         # Run shared tests applicable to all supported OSs
259         # Note that this function is defined in spec_helper
260         generic_tests
261
262         # Run test that specialize in checking Karaf feature installs
263         # Note that this function is defined in spec_helper
264         karaf_feature_tests(extra_features: extra_features)
265       end
266     end
267
268     describe 'overriding default features' do
269       default_features = ['standard', 'ssh']
270       context 'and not passing extra features' do
271         let(:facts) {{
272           :osfamily => osfamily,
273           :operatingsystem => operatingsystem,
274           :operatingsystemmajrelease => operatingsystemmajrelease,
275         }}
276
277         let(:params) {{
278           :default_features => default_features,
279         }}
280
281         # Run shared tests applicable to all supported OSs
282         # Note that this function is defined in spec_helper
283         generic_tests
284
285         # Run test that specialize in checking Karaf feature installs
286         # Note that this function is defined in spec_helper
287         karaf_feature_tests(default_features: default_features)
288       end
289
290       context 'and passing extra features' do
291         let(:facts) {{
292           :osfamily => osfamily,
293           :operatingsystem => operatingsystem,
294           :operatingsystemmajrelease => operatingsystemmajrelease,
295         }}
296
297         # These are real but arbitrarily chosen features
298         extra_features = ['odl-base-all', 'odl-ovsdb-all']
299         let(:params) {{
300           :default_features => default_features,
301           :extra_features => extra_features,
302         }}
303
304         # Run shared tests applicable to all supported OSs
305         # Note that this function is defined in spec_helper
306         generic_tests
307
308         # Run test that specialize in checking Karaf feature installs
309         # Note that this function is defined in spec_helper
310         karaf_feature_tests(default_features: default_features, extra_features: extra_features)
311       end
312     end
313   end
314
315   # All ODL REST port tests
316   describe 'REST port tests' do
317     # Non-OS-type tests assume CentOS 7
318     #   See issue #43 for reasoning:
319     #   https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
320     osfamily = 'RedHat'
321     operatingsystem = 'CentOS'
322     operatingsystemmajrelease = '7'
323     context 'using default REST port' do
324       let(:facts) {{
325         :osfamily => osfamily,
326         :operatingsystem => operatingsystem,
327         :operatingsystemmajrelease => operatingsystemmajrelease,
328       }}
329
330       let(:params) {{ }}
331
332       # Run shared tests applicable to all supported OSs
333       # Note that this function is defined in spec_helper
334       generic_tests
335
336       # Run test that specialize in checking ODL REST port config
337       # Note that this function is defined in spec_helper
338       odl_rest_port_tests
339     end
340
341     context 'overriding default REST port' do
342       let(:facts) {{
343         :osfamily => osfamily,
344         :operatingsystem => operatingsystem,
345         :operatingsystemmajrelease => operatingsystemmajrelease,
346       }}
347
348       let(:params) {{
349         :odl_rest_port => 7777,
350       }}
351
352       # Run shared tests applicable to all supported OSs
353       # Note that this function is defined in spec_helper
354       generic_tests
355
356       # Run test that specialize in checking ODL REST port config
357       # Note that this function is defined in spec_helper
358       odl_rest_port_tests(odl_rest_port: 7777)
359     end
360   end
361
362   # All custom log level tests
363   describe 'custom log level tests' do
364     # Non-OS-type tests assume CentOS 7
365     #   See issue #43 for reasoning:
366     #   https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
367     osfamily = 'RedHat'
368     operatingsystem = 'CentOS'
369     operatingsystemmajrelease = '7'
370     context 'using default log levels' do
371       let(:facts) {{
372         :osfamily => osfamily,
373         :operatingsystem => operatingsystem,
374         :operatingsystemmajrelease => operatingsystemmajrelease,
375       }}
376
377       let(:params) {{ }}
378
379       # Run shared tests applicable to all supported OSs
380       # Note that this function is defined in spec_helper
381       generic_tests
382
383       # Run test that specialize in checking custom log level config
384       # Note that this function is defined in spec_helper
385       log_level_tests
386     end
387
388     context 'adding one custom log level' do
389       let(:facts) {{
390         :osfamily => osfamily,
391         :operatingsystem => operatingsystem,
392         :operatingsystemmajrelease => operatingsystemmajrelease,
393       }}
394
395       custom_log_levels = { 'org.opendaylight.ovsdb' => 'TRACE' }
396
397       let(:params) {{
398         :log_levels => custom_log_levels,
399       }}
400
401       # Run shared tests applicable to all supported OSs
402       # Note that this function is defined in spec_helper
403       generic_tests
404
405       # Run test that specialize in checking log level config
406       # Note that this function is defined in spec_helper
407       log_level_tests(log_levels: custom_log_levels)
408     end
409
410     context 'adding two custom log levels' do
411       let(:facts) {{
412         :osfamily => osfamily,
413         :operatingsystem => operatingsystem,
414         :operatingsystemmajrelease => operatingsystemmajrelease,
415       }}
416
417       custom_log_levels = { 'org.opendaylight.ovsdb' => 'TRACE',
418                          'org.opendaylight.ovsdb.lib' => 'INFO' }
419
420       let(:params) {{
421         :log_levels => custom_log_levels,
422       }}
423
424       # Run shared tests applicable to all supported OSs
425       # Note that this function is defined in spec_helper
426       generic_tests
427
428       # Run test that specialize in checking log level config
429       # Note that this function is defined in spec_helper
430       log_level_tests(log_levels: custom_log_levels)
431     end
432   end
433
434   # All OVSDB HA enable/disable tests
435   describe 'OVSDB HA enable/disable tests' do
436     # Non-OS-type tests assume CentOS 7
437     #   See issue #43 for reasoning:
438     #   https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
439     osfamily = 'RedHat'
440     operatingsystem = 'CentOS'
441     operatingsystemmajrelease = '7'
442     context 'using enable_ha default' do
443       let(:facts) {{
444         :osfamily => osfamily,
445         :operatingsystem => operatingsystem,
446         :operatingsystemmajrelease => operatingsystemmajrelease,
447       }}
448
449       let(:params) {{ }}
450
451       # Run shared tests applicable to all supported OSs
452       # Note that this function is defined in spec_helper
453       generic_tests
454
455       # Run test that specialize in checking ODL OVSDB HA config
456       # Note that this function is defined in spec_helper
457       enable_ha_tests
458     end
459
460     context 'using false for enable_ha' do
461       let(:facts) {{
462         :osfamily => osfamily,
463         :operatingsystem => operatingsystem,
464         :operatingsystemmajrelease => operatingsystemmajrelease,
465       }}
466
467       let(:params) {{
468         :enable_ha => false,
469       }}
470
471       # Run shared tests applicable to all supported OSs
472       # Note that this function is defined in spec_helper
473       generic_tests
474
475       # Run test that specialize in checking ODL OVSDB HA config
476       # Note that this function is defined in spec_helper
477       enable_ha_tests(enable_ha: false)
478     end
479
480     context 'using true for enable_ha' do
481       context 'using ha_node_count >=2' do
482         let(:facts) {{
483           :osfamily => osfamily,
484           :operatingsystem => operatingsystem,
485           :operatingsystemmajrelease => operatingsystemmajrelease,
486         }}
487
488         let(:params) {{
489           :enable_ha => true,
490           :ha_node_ips => ['0.0.0.0', '127.0.0.1']
491         }}
492
493         # Run shared tests applicable to all supported OSs
494         # Note that this function is defined in spec_helper
495         generic_tests
496
497         # Run test that specialize in checking ODL OVSDB HA config
498         # Note that this function is defined in spec_helper
499         enable_ha_tests(enable_ha: true, ha_node_ips: ['0.0.0.0', '127.0.0.1'])
500       end
501     end
502   end
503
504
505   # All install method tests
506   describe 'install method tests' do
507     # Non-OS-type tests assume CentOS 7
508     #   See issue #43 for reasoning:
509     #   https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
510     osfamily = 'RedHat'
511     operatingsystem = 'CentOS'
512     operatingsystemrelease = '7.0'
513     operatingsystemmajrelease = '7'
514
515     # All tests for RPM install method
516     describe 'RPM' do
517       context 'installing default RPM' do
518         let(:facts) {{
519           :osfamily => osfamily,
520           :operatingsystem => operatingsystem,
521           :operatingsystemmajrelease => operatingsystemmajrelease,
522         }}
523
524         let(:params) {{
525           :install_method => 'rpm',
526         }}
527
528         # Run shared tests applicable to all supported OSs
529         # Note that this function is defined in spec_helper
530         generic_tests
531
532         # Run test that specialize in checking RPM-based installs
533         # Note that this function is defined in spec_helper
534         rpm_install_tests
535       end
536
537       context 'installing Beryllium RPM' do
538         rpm_repo = 'opendaylight-40-release'
539         let(:facts) {{
540           :osfamily => osfamily,
541           :operatingsystem => operatingsystem,
542           :operatingsystemmajrelease => operatingsystemmajrelease,
543         }}
544
545         let(:params) {{
546           :install_method => 'rpm',
547           :rpm_repo => rpm_repo,
548         }}
549
550         # Run shared tests applicable to all supported OSs
551         # Note that this function is defined in spec_helper
552         generic_tests
553
554         # Run test that specialize in checking RPM-based installs
555         # Note that this function is defined in spec_helper
556         rpm_install_tests(rpm_repo: rpm_repo)
557       end
558     end
559
560     # All tests for tarball install method
561     describe 'tarball' do
562       describe 'using default tarball_url' do
563         context 'using default unitfile_url' do
564           let(:facts) {{
565             :osfamily => osfamily,
566             :operatingsystem => operatingsystem,
567             :operatingsystemrelease => operatingsystemrelease,
568             :operatingsystemmajrelease => operatingsystemmajrelease,
569             :architecture => 'x86_64',
570             :path => ['/usr/local/bin', '/usr/bin', '/bin'],
571           }}
572
573           let(:params) {{
574             :install_method => 'tarball',
575           }}
576
577           # Run shared tests applicable to all supported OSs
578           # Note that this function is defined in spec_helper
579           generic_tests
580
581           # Run test that specialize in checking tarball-based installs
582           # Note that this function is defined in spec_helper
583           tarball_install_tests
584         end
585
586         context 'overriding default unitfile_url' do
587           # Doesn't matter if this is valid, just that it honors what we pass
588           unitfile_url = 'fake_unitfile'
589           let(:facts) {{
590             :osfamily => osfamily,
591             :operatingsystem => operatingsystem,
592             :operatingsystemrelease => operatingsystemrelease,
593             :operatingsystemmajrelease => operatingsystemmajrelease,
594             :architecture => 'x86_64',
595             :path => ['/usr/local/bin', '/usr/bin', '/bin'],
596           }}
597
598           let(:params) {{
599             :install_method => 'tarball',
600             :unitfile_url => unitfile_url,
601           }}
602
603           # Run shared tests applicable to all supported OSs
604           # Note that this function is defined in spec_helper
605           generic_tests
606
607           # Run test that specialize in checking tarball-based installs
608           # Note that this function is defined in spec_helper
609           tarball_install_tests(unitfile_url: unitfile_url)
610         end
611       end
612
613       describe 'overriding default tarball_url' do
614         # Doesn't matter if this is valid, just that it honors what we pass
615         tarball_url = 'fake_tarball'
616         context 'using default unitfile_url' do
617           unitfile_url = 'https://github.com/dfarrell07/opendaylight-systemd/archive/master/opendaylight-unitfile.tar.gz'
618           let(:facts) {{
619             :osfamily => osfamily,
620             :operatingsystem => operatingsystem,
621             :operatingsystemrelease => operatingsystemrelease,
622             :operatingsystemmajrelease => operatingsystemmajrelease,
623             :architecture => 'x86_64',
624             :path => ['/usr/local/bin', '/usr/bin', '/bin'],
625           }}
626
627           let(:params) {{
628             :install_method => 'tarball',
629             :tarball_url => tarball_url,
630           }}
631
632           # Run shared tests applicable to all supported OSs
633           # Note that this function is defined in spec_helper
634           generic_tests
635
636           # Run test that specialize in checking tarball-based installs
637           # Note that this function is defined in spec_helper
638           tarball_install_tests(tarball_url: tarball_url)
639         end
640
641         context 'overriding default unitfile_url' do
642           # Doesn't matter if this is valid, just that it honors what we pass
643           unitfile_url = 'fake_unitfile'
644           let(:facts) {{
645             :osfamily => osfamily,
646             :operatingsystem => operatingsystem,
647             :operatingsystemrelease => operatingsystemrelease,
648             :operatingsystemmajrelease => operatingsystemmajrelease,
649             :architecture => 'x86_64',
650             :path => ['/usr/local/bin', '/usr/bin', '/bin'],
651           }}
652
653           let(:params) {{
654             :install_method => 'tarball',
655             :tarball_url => tarball_url,
656             :unitfile_url => unitfile_url,
657           }}
658
659           # Run shared tests applicable to all supported OSs
660           # Note that this function is defined in spec_helper
661           generic_tests
662
663           # Run test that specialize in checking tarball-based installs
664           # Note that this function is defined in spec_helper
665           tarball_install_tests(tarball_url: tarball_url, unitfile_url: unitfile_url)
666         end
667       end
668     end
669   end
670   # Security Group Tests
671   describe 'security group tests' do
672     # Non-OS-type tests assume CentOS 7
673     #   See issue #43 for reasoning:
674     #   https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
675     osfamily = 'RedHat'
676     operatingsystem = 'CentOS'
677     operatingsystemmajrelease = '7'
678     context 'using supported stateful' do
679       let(:facts) {{
680         :osfamily => osfamily,
681         :operatingsystem => operatingsystem,
682         :operatingsystemmajrelease => operatingsystemmajrelease,
683         :operatingsystemrelease => '7.3',
684       }}
685
686       let(:params) {{
687         :security_group_mode => 'stateful',
688         :extra_features      => ['odl-netvirt-openstack'],
689       }}
690
691       # Run shared tests applicable to all supported OSs
692       # Note that this function is defined in spec_helper
693       generic_tests
694
695       # Run test that specialize in checking security groups
696       # Note that this function is defined in spec_helper
697       enable_sg_tests('stateful', '7.3')
698     end
699
700     context 'using unsupported stateful' do
701       let(:facts) {{
702         :osfamily => osfamily,
703         :operatingsystem => operatingsystem,
704         :operatingsystemmajrelease => operatingsystemmajrelease,
705         :operatingsystemrelease => '7.2.1511',
706       }}
707
708       let(:params) {{
709         :security_group_mode => 'stateful',
710         :extra_features      => ['odl-netvirt-openstack'],
711       }}
712
713       # Run shared tests applicable to all supported OSs
714       # Note that this function is defined in spec_helper
715       generic_tests
716
717       # Run test that specialize in checking security groups
718       # Note that this function is defined in spec_helper
719       enable_sg_tests('stateful', '7.2.1511')
720     end
721
722     context 'using transparent with unsupported stateful' do
723       let(:facts) {{
724         :osfamily => osfamily,
725         :operatingsystem => operatingsystem,
726         :operatingsystemmajrelease => operatingsystemmajrelease,
727         :operatingsystemrelease => '7.2.1511',
728       }}
729
730       let(:params) {{
731         :security_group_mode => 'transparent',
732         :extra_features      => ['odl-netvirt-openstack'],
733       }}
734
735       # Run shared tests applicable to all supported OSs
736       # Note that this function is defined in spec_helper
737       generic_tests
738
739       # Run test that specialize in checking security groups
740       # Note that this function is defined in spec_helper
741       enable_sg_tests('transparent', '7.2.1511')
742     end
743   end
744 end