+ if enable_paxosgi_logger == true
+ presence = 'present'
+ else
+ presence = 'absent'
+ end
+
+ it {
+ should contain_file_line('paxosgiappenderref').with(
+ 'ensure' => presence,
+ 'path' => '/opt/opendaylight/etc/org.ops4j.pax.logging.cfg',
+ 'line' => "log4j2.rootLogger.appenderRef.PaxOsgi.ref = PaxOsgi",
+ )
+ }
+ it {
+ should contain_file_line('paxosgisection').with(
+ 'path' => '/opt/opendaylight/etc/org.ops4j.pax.logging.cfg',
+ 'line' => "# OSGi appender",
+ )
+ }
+ it {
+ should contain_file_line('paxosgitype').with(
+ 'path' => '/opt/opendaylight/etc/org.ops4j.pax.logging.cfg',
+ 'line' => "log4j2.appender.osgi.type = PaxOsgi",
+ )
+ }
+ it {
+ should contain_file_line('paxosginame').with(
+ 'path' => '/opt/opendaylight/etc/org.ops4j.pax.logging.cfg',
+ 'line' => "log4j2.appender.osgi.name = PaxOsgi",
+ )
+ }
+ it {
+ should contain_file_line('paxosgifilter').with(
+ 'path' => '/opt/opendaylight/etc/org.ops4j.pax.logging.cfg',
+ 'line' => "log4j2.appender.osgi.filter = *",
+ )
+ }