mirror of
https://github.com/inspec/inspec
synced 2024-12-24 12:03:23 +00:00
8f0756812c
This adds supports for connecting to MS SQL instances using Window authentication rather than SQL authentication. By leaving either the user or password parameters blank causes the sqlcmd to leave off the -U and -P params. This will cause sqlcmd to authenticate as the current Windows user. Signed-off-by: Nolan Davidson <ndavidson@chef.io>
13 lines
390 B
Ruby
13 lines
390 B
Ruby
# encoding: utf-8
|
|
# author: Nolan Davidson
|
|
|
|
require 'helper'
|
|
|
|
describe 'Inspec::Resources::MssqlSession' do
|
|
it 'verify mssql_session configuration' do
|
|
resource = load_resource('mssql_session', user: 'myuser', pass: 'mypass', host: 'windowshost')
|
|
_(resource.user).must_equal 'myuser'
|
|
_(resource.pass).must_equal 'mypass'
|
|
_(resource.host).must_equal 'windowshost'
|
|
end
|
|
end
|