0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2024-12-18 21:50:13 +01:00
openssh-formula/test/integration/default/controls/_mapdata_spec.rb
Daniel Dehennin 8cb31c6967 test(inspec): no more need to mangle mapdata for hostname
We force the hostname in `kitchen` so the `_mapdata` files can be
static.
2020-09-08 21:23:21 +02:00

14 lines
358 B
Ruby

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