0
0
mirror of https://github.com/saltstack-formulas/sudoers-formula.git synced 2025-02-27 04:14:22 +01:00
2020-08-26 17:47:30 +02:00

14 lines
362 B
Ruby

# frozen_string_literal: true
control '`map.jinja` YAML dump' do
title 'should contain the lines'
mapdata_file = "_mapdata/#{system.platform[:finger].split('.').first}.yaml"
mapdata_dump = inspec.profile.file(mapdata_file)
describe file('/tmp/salt_mapdata_dump.yaml') do
it { should exist }
its('content') { should eq mapdata_dump }
end
end