diff --git a/Modulefile b/Modulefile index 8c1b268..8ffea32 100644 --- a/Modulefile +++ b/Modulefile @@ -1,5 +1,5 @@ name 'opentable/iis' -version '1.0.0' +version '1.1.0' author 'opentable' license 'MIT' summary 'Module that will manage IIS for windows server 2008 and above. It will help maintain application pools, sites and virtual applications' diff --git a/spec/defines/manage_binding_spec.rb b/spec/defines/manage_binding_spec.rb index 45970ed..863fa6b 100644 --- a/spec/defines/manage_binding_spec.rb +++ b/spec/defines/manage_binding_spec.rb @@ -122,9 +122,10 @@ } } it { should contain_exec('Attach-Certificate-myWebSite-port-443').with({ - 'command' => "#{powershell} -Command \"Import-Module WebAdministration; New-Item \\\"IIS:\\SslBindings\\127.0.0.1!443\\\" -Value (Get-ChildItem cert:\\ -Recurse | Where-Object {\$_.Thumbprint.Equals(\\\"myCertificate\\\")} | Select-Object -First 1)\"", - 'onlyif' => "#{powershell} -Command \"Import-Module WebAdministration; if((Get-ChildItem cert:\\ -Recurse | Where-Object {\$_.Thumbprint.Equals(\\\"myCertificate\\\")} | Select-Object -First 1) -and ((Test-Path \\\"IIS:\\SslBindings\\127.0.0.1!443\\\") -eq \$false)) { exit 0 } else { exit 1 }\"", - })} + 'command' => "C:\\temp\\create-myWebSite-port-443.ps1", + 'onlyif' => "C:\\temp\\inspect-myWebSite-port-443.ps1", + 'provider' => "powershell" + })} end describe 'when managing an iis site binding and setting ensure to present' do