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:
Daniel Dehennin committed 2020-09-08 21:23:21 +02:00
1 parent 208f87380c
commit 8cb31c6967
17 files changed
+15 -51

No files matched your search

@@ -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'