Skip to content

Commit 270ea1b

Browse files
committed
feat(openvpn): implement Windows testing using kitchen-vagrant
* saltstack-formulas/openvpn-formula#112
1 parent da8c923 commit 270ea1b

File tree

4 files changed

+31
-4
lines changed

4 files changed

+31
-4
lines changed

ssf/defaults.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ ssf_node_anchors:
2222
# An alternative method could be to use:
2323
# `git describe --abbrev=0 --tags`
2424
# yamllint disable rule:line-length
25-
title: 'feat(semantic-release): implement for this formula'
26-
body: '* Automated using https://github.com/myii/ssf-formula/pull/79'
25+
title: 'feat(kitchen): implement Windows testing using `kitchen-vagrant`'
26+
body: '* Checked using https://github.com/myii/ssf-formula/pull/81'
2727
# yamllint enable rule:line-length
2828
github:
2929
owner: 'saltstack-formulas'

ssf/files/default/inspec/inspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ depends:
2626
{%- endif %}
2727
supports:
2828
{%- for platform in suite.inspec_yml.supports %}
29-
- platform-name: {{ platform }}
29+
- {{ 'platform-name' if platform != 'windows' else 'platform' }}: {{ platform }}
3030
{%- endfor %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'inspec', '~> 4.17.17'
6+
gem 'kitchen-docker', '>= 2.9'
7+
gem 'kitchen-inspec', '>= 1.1'
8+
gem 'kitchen-salt', '>= 0.6.0'
9+
gem 'rspec-retry'
10+
11+
group :vagrant do
12+
gem 'kitchen-vagrant'
13+
end

ssf/formulas.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,17 @@ ssf:
997997
inspec_yml:
998998
summary: >-
999999
Verify that the openvpn formula is setup and configured correctly
1000+
supports:
1001+
- debian
1002+
- ubuntu
1003+
- centos
1004+
- fedora
1005+
- opensuse
1006+
- suse
1007+
- freebsd
1008+
- amazon
1009+
- arch
1010+
- windows
10001011
provisioner:
10011012
pillars_from_files:
10021013
- .sls: 'test/salt/pillar/default.sls'
@@ -1013,7 +1024,10 @@ ssf:
10131024
# - [fedora , 29 , 2018.3, 2, default]
10141025
- [opensuse/leap, 15 , 2018.3, 2, default]
10151026
- [centos , 6 , 2017.7, 2, default]
1016-
travis: *travis_do_not_use_single_job_for_linters
1027+
rubocop:
1028+
Cops:
1029+
Metrics/BlockLength:
1030+
Max: 36
10171031
semrel_files: *semrel_files_default
10181032
php:
10191033
context:

0 commit comments

Comments
 (0)