Skip to content

Commit

Permalink
feat(openvpn): implement Windows testing using kitchen-vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 23, 2019
1 parent da8c923 commit 270ea1b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length
title: 'feat(semantic-release): implement for this formula'
body: '* Automated using https://github.com/myii/ssf-formula/pull/79'
title: 'feat(kitchen): implement Windows testing using `kitchen-vagrant`'
body: '* Checked using https://github.com/myii/ssf-formula/pull/81'
# yamllint enable rule:line-length
github:
owner: 'saltstack-formulas'
Expand Down
2 changes: 1 addition & 1 deletion ssf/files/default/inspec/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ depends:
{%- endif %}
supports:
{%- for platform in suite.inspec_yml.supports %}
- platform-name: {{ platform }}
- {{ 'platform-name' if platform != 'windows' else 'platform' }}: {{ platform }}
{%- endfor %}
13 changes: 13 additions & 0 deletions ssf/files/tofs_openvpn-formula/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'inspec', '~> 4.17.17'
gem 'kitchen-docker', '>= 2.9'
gem 'kitchen-inspec', '>= 1.1'
gem 'kitchen-salt', '>= 0.6.0'
gem 'rspec-retry'

group :vagrant do
gem 'kitchen-vagrant'
end
16 changes: 15 additions & 1 deletion ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,17 @@ ssf:
inspec_yml:
summary: >-
Verify that the openvpn formula is setup and configured correctly
supports:
- debian
- ubuntu
- centos
- fedora
- opensuse
- suse
- freebsd
- amazon
- arch
- windows
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/default.sls'
Expand All @@ -1013,7 +1024,10 @@ ssf:
# - [fedora , 29 , 2018.3, 2, default]
- [opensuse/leap, 15 , 2018.3, 2, default]
- [centos , 6 , 2017.7, 2, default]
travis: *travis_do_not_use_single_job_for_linters
rubocop:
Cops:
Metrics/BlockLength:
Max: 36
semrel_files: *semrel_files_default
php:
context:
Expand Down

0 comments on commit 270ea1b

Please sign in to comment.