# Run tests that specialize in checking log file settings
# NB: Only testing defaults here, specialized log file settings tests elsewhere
# Note that this function is defined in spec_helper
- log_file_settings
+ log_settings
end
end
# Run tests that specialize in checking log file settings
# NB: Only testing defaults here, specialized log file settings tests elsewhere
# Note that this function is defined in spec_helper
- log_file_settings
+ log_settings
end
end
# Run tests that specialize in checking log file settings
# NB: Only testing defaults here, specialized log file settings tests elsewhere
# Note that this function is defined in spec_helper
- log_file_settings
+ log_settings
end
end
end
end
- # All ODL REST port tests
- describe 'REST port tests' do
+ # All ODL IP/REST port tests
+ describe 'IP and REST port tests' do
# Non-OS-type tests assume CentOS 7
# See issue #43 for reasoning:
# https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
end
end
- # All custom log file size and rollover tests
- describe 'log file size and rollover' do
+ describe 'log mechanism settings' 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 default size and rollover' do
+
+ # All custom log file size and rollover tests
+ context 'log to file using default size and rollover' do
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
# Note that this function is defined in spec_helper
generic_tests
- # Run test specific to log file settings
- log_file_settings
+ # Run test specific to log settings
+ log_settings
end
- context 'customizing size' do
+ context 'log to file customizing size' do
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
# Note that this function is defined in spec_helper
generic_tests
- # Run test specific to log file settings
- log_file_settings(log_max_size: '1GB')
+ # Run test specific to log settings
+ log_settings(log_max_size: '1GB')
end
- context 'customizing rollover' do
+ context 'log to file customizing rollover' do
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
# Note that this function is defined in spec_helper
generic_tests
- # Run test specific to log file settings
- log_file_settings(log_max_rollover: 3)
+ # Run test specific to log settings
+ log_settings(log_max_rollover: 3)
end
- context 'customizing size and rollover' do
+ context 'log to file customizing size and rollover' do
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
# Note that this function is defined in spec_helper
generic_tests
- # Run test specific to log file settings
- log_file_settings(log_max_size: '1GB',
+ # Run test specific to log settings
+ log_settings(log_max_size: '1GB',
log_max_rollover: 3)
end
+
+ context 'log to console' do
+ let(:facts) {{
+ :osfamily => osfamily,
+ :operatingsystem => operatingsystem,
+ :operatingsystemmajrelease => operatingsystemmajrelease,
+ }}
+
+ let(:params) {{
+ :log_mechanism => 'console',
+ }}
+
+ # Run shared tests applicable to all supported OSs
+ # Note that this function is defined in spec_helper
+ generic_tests
+
+ # Run test specific to log settings
+ log_settings(log_mechanism: 'console')
+ end
end
# All OVSDB HA enable/disable tests
end
context 'installing from Nexus repo' do
- rpm_repo = 'https://nexus.opendaylight.org/content/repositories/opendaylight-oxygen-epel-7-$basearch-devel'
+ rpm_repo = 'https://nexus.opendaylight.org/content/repositories/opendaylight-fluorine-epel-7-$basearch-devel'
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
deb_install_tests
end
- context 'installing Carbon Deb' do
- deb_repo = 'ppa:odl-team/carbon'
+ context 'installing Nitrogen Deb' do
+ deb_repo = 'ppa:odl-team/nitrogen'
let(:facts) {{
:osfamily => osfamily,
:operatingsystem => operatingsystem,
# SNAT Mechanism tests
describe 'SNAT mechanism tests' do
- # Non-OS-type tests assume CentO
+ # Non-OS-type tests assume CentOS 7
# See issue #43 for reasoning:
# https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
osfamily = 'RedHat'
# SFC tests
describe 'SFC tests' do
- # Non-OS-type tests assume CentO
+ # 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 'not using odl-netvirt-sfc feature' do
+ let(:facts) {{
+ :osfamily => osfamily,
+ :operatingsystem => operatingsystem,
+ :operatingsystemmajrelease => operatingsystemmajrelease,
+ }}
+
+ let(:params) {{ }}
+
+ # 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
+ sfc_tests
+ end
+
context 'using odl-netvirt-sfc feature' do
let(:facts) {{
:osfamily => osfamily,
# Run test that specialize in checking security groups
# Note that this function is defined in spec_helper
- sfc_tests
+ sfc_tests(extra_features: ['odl-netvirt-sfc'])
+ end
+ end
+
+ # DSCP marking tests
+ describe 'DSCP marking 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 'use default value' do
+ let(:facts) {{
+ :osfamily => osfamily,
+ :operatingsystem => operatingsystem,
+ :operatingsystemmajrelease => operatingsystemmajrelease,
+ }}
+
+ let(:params) {{ }}
+
+ # 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
+ dscp_tests
+ end
+
+ context 'inherit DSCP values' do
+ let(:facts) {{
+ :osfamily => osfamily,
+ :operatingsystem => operatingsystem,
+ :operatingsystemmajrelease => operatingsystemmajrelease,
+ }}
+
+ let(:params) {{
+ :inherit_dscp_marking => :true,
+ }}
+
+ # 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
+ dscp_tests(inherit_dscp_marking: true)
end
end
# websocket address tests
describe 'ODL websocket address tests' do
- # Non-OS-type tests assume CentO
+ # Non-OS-type tests assume CentOS 7
# See issue #43 for reasoning:
# https://github.com/dfarrell07/puppet-opendaylight/issues/43#issue-57343159
osfamily = 'RedHat'
odl_websocket_address_tests(odl_bind_ip: '127.0.0.1')
end
end
+
+ # TLS tests
+ describe 'ODL TLS 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 'enabling TLS without required keystore password (negative test)' do
+ let(:facts) {{
+ :osfamily => osfamily,
+ :operatingsystem => operatingsystem,
+ :operatingsystemmajrelease => operatingsystemmajrelease,
+ }}
+
+ let(:params) {{
+ :enable_tls => :true
+ }}
+
+ # Run test that specialize in checking TLS
+ # Note that this function is defined in spec_helper
+ odl_tls_tests(enable_tls:true)
+ end
+ context 'enabling TLS with required params' do
+ let(:facts) {{
+ :osfamily => osfamily,
+ :operatingsystem => operatingsystem,
+ :operatingsystemmajrelease => operatingsystemmajrelease,
+ }}
+
+ let(:params) {{
+ :enable_tls => true,
+ :tls_keystore_password => '123456',
+ }}
+
+ # 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 TLS
+ # Note that this function is defined in spec_helper
+ odl_tls_tests(enable_tls:true, tls_keystore_password:'123456')
+ end
+ end
end