mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-07-16 20:41:15 +02:00
test(inspec): no more need to mangle mapdata for hostname
We force the hostname in `kitchen` so the `_mapdata` files can be static.
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Replace per minion strings
|
||||
replacement = {
|
||||
hostname: system.hostname
|
||||
}
|
||||
|
||||
mapdata_file = "_mapdata/#{system.platform[:finger].split('.').first}.yaml"
|
||||
mapdata_dump = inspec.profile.file(mapdata_file) % replacement
|
||||
mapdata_dump = inspec.profile.file(mapdata_file)
|
||||
|
||||
control '`map.jinja` YAML dump' do
|
||||
title 'should contain the lines'
|
||||
|
||||
Reference in New Issue
Block a user