2020-07-30 22:00:18 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-07-31 08:01:27 +02:00
|
|
|
mapdata_file = "_mapdata/#{system.platform[:finger].split('.').first}.yaml"
|
2020-09-08 21:23:21 +02:00
|
|
|
mapdata_dump = inspec.profile.file(mapdata_file)
|
2020-07-30 22:00:18 +02:00
|
|
|
|
|
|
|
control '`map.jinja` YAML dump' do
|
|
|
|
title 'should contain the lines'
|
|
|
|
|
|
|
|
describe file('/tmp/salt_mapdata_dump.yaml') do
|
|
|
|
it { should exist }
|
2020-08-26 10:06:13 +02:00
|
|
|
its('content') { should eq mapdata_dump }
|
2020-07-30 22:00:18 +02:00
|
|
|
end
|
|
|
|
end
|