2017-05-05 13:29:38 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# author: Nolan Davidson
|
|
|
|
|
|
|
|
require 'helper'
|
|
|
|
|
2017-05-05 17:11:07 +00:00
|
|
|
describe 'Inspec::Resources::OracledbSession' do
|
|
|
|
it 'verify oracledb_session configuration' do
|
|
|
|
resource = load_resource('oracledb_session', user: 'myuser', pass: 'mypass', host: 'oraclehost', sid: 'mysid')
|
2017-05-05 13:29:38 +00:00
|
|
|
_(resource.user).must_equal 'myuser'
|
|
|
|
_(resource.pass).must_equal 'mypass'
|
|
|
|
_(resource.host).must_equal 'oraclehost'
|
|
|
|
_(resource.sid).must_equal 'mysid'
|
|
|
|
_(resource.sqlplus_bin).must_equal 'sqlplus'
|
|
|
|
end
|
|
|
|
end
|