Skip to content

Commit

Permalink
feat(openssh): verify map.jinja using InSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Sep 9, 2020
1 parent 4f5d07b commit b72bd5f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ssf_node_anchors:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length rule:quoted-strings
title: "test(map): verify '`'map.jinja'`' dump using '`'_mapdata'`' state"
body: '* Checked using https://github.com/myii/ssf-formula/pull/249'
body: '* Standardised using https://github.com/myii/ssf-formula/pull/251'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down Expand Up @@ -690,7 +690,15 @@ ssf:
1:
<<: *isk_suite_default
name: 'share'
openssh: *formula_default
openssh:
<<: *formula_default
context:
<<: *context_default
inspec_suites_kitchen:
<<: *isk_default
1:
<<: *isk_suite_default
name: 'share'
openvpn: *formula_default
packages:
<<: *formula_default
Expand Down
10 changes: 10 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ ssf_node_anchors:
- oracle
- arch
- windows
title_suite_share: &title_suite_share 'InSpec shared resources'
provisioner:
dependencies_epel: &dependencies_epel
- name: 'epel'
Expand Down Expand Up @@ -2916,17 +2917,26 @@ ssf:
inspec_suites_kitchen:
0:
inspec_yml:
depends: *depends_on_suite_share
summary: >-
Verify that the openssh formula is setup and configured correctly
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/default.sls'
state_top:
- '*':
- ._mapdata
- .config
- .known_hosts
1:
includes: *includes_NONE
inspec_yml:
summary: >-
shared resources
title: *title_suite_share
platforms: *platforms_new
platforms_matrix: *platforms_matrix_new_mainly_master_images
use_libsaltcli: true
use_tofs: true
semrel_files: *semrel_files_default
openvpn:
Expand Down

0 comments on commit b72bd5f

Please sign in to comment.