odl_rest_port_tests
end
- context 'overriding default REST port' do
+ context 'overriding default REST and IP port' do
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
let(:params) {{
:odl_rest_port => 7777,
+ :odl_bind_ip => '127.0.0.1'
}}
# Run shared tests applicable to all supported OSs
# Run test that specialize in checking ODL REST port config
# Note that this function is defined in spec_helper
- odl_rest_port_tests(odl_rest_port: 7777)
+ odl_rest_port_tests(odl_rest_port: 7777, odl_bind_ip: '127.0.0.1')
end
end
operatingsystemrelease = '7.0'
operatingsystemmajrelease = '7'
- context 'installing default RPM' do
+ context 'installing from default repo' do
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
rpm_install_tests
end
- context 'installing Beryllium RPM' do
- rpm_repo = 'opendaylight-40-release'
+ context 'installing from Nexus repo' do
+ rpm_repo = 'https://nexus.opendaylight.org/content/repositories/opendaylight-oxygen-epel-7-$basearch-devel'
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
deb_install_tests(deb_repo: deb_repo)
end
end
-
- end
-
- # Security Group Tests
- describe 'security group tests' do
- # Non-OS-type tests assume CentOS 7
- # See issue #43 for reasoning:
- # https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
- osfamily = 'RedHat'
- operatingsystem = 'CentOS'
- operatingsystemmajrelease = '7'
- context 'using supported stateful' do
- let(:facts) {{
- :osfamily => osfamily,
- :operatingsystem => operatingsystem,
- :operatingsystemmajrelease => operatingsystemmajrelease,
- :operatingsystemrelease => '7.3',
- }}
-
- let(:params) {{
- :security_group_mode => 'stateful',
- :extra_features => ['odl-netvirt-openstack'],
- }}
-
- # Run shared tests applicable to all supported OSs
- # Note that this function is defined in spec_helper
- generic_tests
-
- # Run test that specialize in checking security groups
- # Note that this function is defined in spec_helper
- enable_sg_tests('stateful', '7.3')
- end
-
- context 'using unsupported stateful' do
- let(:facts) {{
- :osfamily => osfamily,
- :operatingsystem => operatingsystem,
- :operatingsystemmajrelease => operatingsystemmajrelease,
- :operatingsystemrelease => '7.2.1511',
- }}
-
- let(:params) {{
- :security_group_mode => 'stateful',
- :extra_features => ['odl-netvirt-openstack'],
- }}
-
- # Run shared tests applicable to all supported OSs
- # Note that this function is defined in spec_helper
- generic_tests
-
- # Run test that specialize in checking security groups
- # Note that this function is defined in spec_helper
- enable_sg_tests('stateful', '7.2.1511')
- end
-
- context 'using transparent with unsupported stateful' do
- let(:facts) {{
- :osfamily => osfamily,
- :operatingsystem => operatingsystem,
- :operatingsystemmajrelease => operatingsystemmajrelease,
- :operatingsystemrelease => '7.2.1511',
- }}
-
- let(:params) {{
- :security_group_mode => 'transparent',
- :extra_features => ['odl-netvirt-openstack'],
- }}
-
- # Run shared tests applicable to all supported OSs
- # Note that this function is defined in spec_helper
- generic_tests
-
- # Run test that specialize in checking security groups
- # Note that this function is defined in spec_helper
- enable_sg_tests('transparent', '7.2.1511')
- end
end
# SNAT Mechanism tests