Sha256: 8aaec2ed64965c942a0dedba5407083a1e85067645e0c18c285ead7931dfb683

Contents?: true

Size: 770 Bytes

Versions: 6

Compression:

Stored size: 770 Bytes

Contents

describe package("Chef Client v13*") do
  it { should be_installed }
  its("version") { should match /13.2.20/ }
end

# redirect verbose output
describe command("powershell.exe -file /tmp/install_with_checksum.ps1 *>&1") do
  its("stdout") { should match /Found existing installer/ }
  its("stdout") { should match /Checksum verified, using existing installer/ }
end

# corrupt the file
describe powershell("Out-File -filepath C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\chef-client-13.2.20-1-x64.msi") do
  its("exit_status") { should eq 0 }
end

# redirect verbose output
describe command("powershell.exe -file /tmp/install_with_checksum.ps1 *>&1") do
  its("stdout") { should match /Found existing installer/ }
  its("stdout") { should match /Checksum mismatch/ }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mixlib-install-3.9.0 acceptance/windows-server-2012r2-checksum/inspec/verify.rb
mixlib-install-3.8.0 acceptance/windows-server-2012r2-checksum/inspec/verify.rb
mixlib-install-3.7.0 acceptance/windows-server-2012r2-checksum/inspec/verify.rb
mixlib-install-3.6.0 acceptance/windows-server-2012r2-checksum/inspec/verify.rb
mixlib-install-3.5.1 acceptance/windows-server-2012r2-checksum/inspec/verify.rb
mixlib-install-3.5.0 acceptance/windows-server-2012r2-checksum/inspec/verify.rb