-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from chef-cookbooks/vj/integrate-with-compliance
Integrate with Chef Compliance
- Loading branch information
Showing
11 changed files
with
259 additions
and
23 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
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
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
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
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,27 @@ | ||
# encoding: utf-8 | ||
|
||
# used by ChefSpec | ||
if defined?(ChefSpec) | ||
|
||
ChefSpec.define_matcher :compliance_profile | ||
|
||
def create_compliance_token(resource_name) | ||
ChefSpec::Matchers::ResourceMatcher.new(:compliance_token, :create, resource_name) | ||
end | ||
|
||
def fetch_compliance_profile(resource_name) | ||
ChefSpec::Matchers::ResourceMatcher.new(:compliance_profile, :fetch, resource_name) | ||
end | ||
|
||
def upload_compliance_profile(resource_name) | ||
ChefSpec::Matchers::ResourceMatcher.new(:compliance_profile, :upload, resource_name) | ||
end | ||
|
||
def execute_compliance_profile(resource_name) | ||
ChefSpec::Matchers::ResourceMatcher.new(:compliance_profile, :execute, resource_name) | ||
end | ||
|
||
def execute_compliance_report(resource_name) | ||
ChefSpec::Matchers::ResourceMatcher.new(:compliance_report, :execute, resource_name) | ||
end | ||
end |