-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# InSpec Integration Attributes Profile | ||
|
||
This example shows the implementation of an InSpec profile with attributes which can be overwritten via audit/kitchen inspec. | ||
|
||
This profile is used in the inspec integration testing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# encoding: utf-8 | ||
|
||
control 'test audit attribute override' do | ||
describe attribute('audit_attribute') do | ||
it { should eq 'Attribute Override!' } | ||
end | ||
end | ||
|
||
control 'test help command' do | ||
describe command('help') do | ||
its('stdout') { should match(%r(.*)) } | ||
end | ||
end | ||
|
||
control 'test tmp directory' do | ||
impact 0.7 | ||
title 'Create /tmp directory' | ||
desc 'An optional description...' | ||
describe file('/tmp') do | ||
it { should be_directory } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: profile_with_attributes | ||
title: InSpec Profile | ||
maintainer: The Authors | ||
copyright: The Authors | ||
copyright_email: [email protected] | ||
license: Apache-2.0 | ||
summary: An InSpec Compliance Profile | ||
version: 0.1.0 | ||
attributes: | ||
- name: audit_attribute | ||
type: string | ||
default: override_me |
Empty file.