When checking custom log level config, verify that the config starts the
line, and therefore that it's not commented out.
Change-Id: I00acfdb3ce432d8d855e202a026b7085315c6bb5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
'path' => '/opt/opendaylight/etc/org.ops4j.pax.logging.cfg',
'owner' => 'odl',
'group' => 'odl',
- 'content' => /log4j.logger.#{logger} = #{level}/
+ 'content' => /^log4j.logger.#{logger} = #{level}/
)
}
end
it { should be_file }
it { should be_owned_by 'odl' }
it { should be_grouped_into 'odl' }
- its(:content) { should match /log4j.logger.#{logger} = #{level}/ }
+ its(:content) { should match /^log4j.logger.#{logger} = #{level}/ }
end
end
end