ansible-role-luks/test/integration/default/serverspec/default_spec.rb
2019-03-16 23:51:50 +01:00

25 lines
434 B
Ruby

require 'serverspec'
set :backend, :exec
puts
puts '================================'
puts %x(ansible --version)
puts '================================'
%w[
cryptsetup
util-linux
].each do |package|
describe package(package) do
it { should be_installed }
end
end
describe file('/dev/mapper/data_encrypted') do
it { should be_block_device }
end
describe file('/mnt/data_decrypted') do
it { should be_mounted }
end