Skip to content

Commit e500e06

Browse files
committed
m
1 parent 885166a commit e500e06

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

spec/integration/apply_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,7 @@ def task_plugin_inventory
430430
def config
431431
{ 'modulepath' => File.join(__dir__, '../fixtures/apply'),
432432
'winrm' => {
433-
'ssl' => false,
434-
'ssl-verify' => false,
433+
'cacert' => File.join(__dir__, '../fixtures/ssl/ca.pem'),
435434
'user' => conn_info('winrm')[:user],
436435
'password' => conn_info('winrm')[:password]
437436
} }

spec/integration/winrm_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
let(:uri) { conn_uri('winrm') }
1515
let(:password) { conn_info('winrm')[:password] }
1616
let(:user) { conn_info('winrm')[:user] }
17+
let(:cacert) { File.join(__dir__, '../fixtures/ssl/ca.pem') }
1718

1819
context 'when using CLI options' do
1920
let(:config_flags) {
20-
%W[--targets #{uri} --no-ssl --no-ssl-verify --format json --modulepath #{modulepath}
21+
%W[--targets #{uri} --cacert #{cacert} --format json --modulepath #{modulepath}
2122
--password #{password}]
2223
}
2324

@@ -93,8 +94,7 @@
9394
'winrm' => {
9495
'user' => user,
9596
'password' => password,
96-
'ssl' => false,
97-
'ssl-verify' => false
97+
'cacert' => cacert
9898
}
9999
}
100100
}

spec/lib/bolt_spec/conn.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def conn_info(transport)
1919
when 'ssh'
2020
default_port = 20022
2121
when 'winrm'
22-
default_port = 25985
22+
default_port = 25986
2323
when 'docker'
2424
default_user = ''
2525
default_password = ''

0 commit comments

Comments
 (0)