Skip to content

Commit 0fd04fb

Browse files
authored
Merge pull request #21 from grdnrio/joeg/tests
Adding Appveyor tests
2 parents ea30d48 + 9465937 commit 0fd04fb

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

.kitchen.appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ driver:
88
port: <%= ENV["winrm_port"] %>
99

1010
provisioner:
11-
name: chef_zero
11+
name: chef_solo
1212

1313
verifier:
1414
name: inspec
@@ -20,4 +20,5 @@ suites:
2020
- name: default
2121
run_list:
2222
- recipe[windows-security-policy::default]
23+
- recipe[windows-security-policy::template]
2324
attributes:

test/integration/default/tests.rb

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# # encoding: utf-8
2+
3+
# Inspec test for recipe windows-security-policy::default
4+
5+
# The Inspec reference, with examples and extensive documentation, can be
6+
# found at https://docs.chef.io/inspec_reference.html
7+
8+
describe file('C:\Windows\security\templates\mySecurityPolicy.inf') do
9+
it { should exist }
10+
its('content') { should include '[System Access]'}
11+
end

test/recipes/default_test.rb

-18
This file was deleted.

0 commit comments

Comments
 (0)