Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Quick <[email protected]>
  • Loading branch information
jquick committed Sep 25, 2018
0 parents commit b093b74
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
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.
22 changes: 22 additions & 0 deletions controls/example.rb
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
12 changes: 12 additions & 0 deletions inspec.yml
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 added libraries/.gitkeep
Empty file.

0 comments on commit b093b74

Please sign in to comment.