test(inspec): verify map.jinja dump

We store validated `map.jinja` dump under the profile `files`
directory to access them with `inspec.profile.file('filename')` to
validate the content of the generated mapdata file.

The YAML files contain a value specific to each minion, its hostname,
so we use string format to expand `%{hostname}`.

The `default` inspec profile need to depends on `share` to access the
`system` and `salt_minion` libraries.
This commit is contained in:
Daniel Dehennin
2020-07-30 22:00:18 +02:00
parent a8d61f4307
commit 0eafbd945c
17 changed files with 2277 additions and 2 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: share
title: Inspec shared resources
name: shared
title: InSpec shared resources
maintainer: SaltStack Formulas
license: Apache-2.0
summary: shared resources