This repository has been archived by the owner on Sep 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scenarios for choosing rules to apply, refs #4.
- Loading branch information
Andrew Crump
committed
Dec 13, 2011
1 parent
3836620
commit e963641
Showing
5 changed files
with
67 additions
and
15 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,25 @@ | ||
Feature: Choose rules to apply | ||
|
||
In order to remove warnings that are not appropriate for my usage of Chef | ||
As a developer | ||
I want to be able to filter the rules applied based on tags associated with each rule | ||
|
||
Scenario Outline: Specified tags | ||
Given a cookbook that matches rules <cookbook_matches> | ||
When I check the cookbook specifying tags <tag_arguments> | ||
Then the warnings shown should be <warnings_shown> | ||
|
||
Examples: | ||
| cookbook_matches | tag_arguments | warnings_shown | | ||
| FC002,FC003,FC004 | | FC002,FC003,FC004 | | ||
| FC002 | -t FC002 | FC002 | | ||
| FC002,FC003,FC004 | --tags FC002 | FC002 | | ||
| FC002,FC003,FC004 | --tags fc002 | | | ||
| FC002,FC003,FC004 | --tags FC005 | | | ||
| FC002,FC003,FC004 | --tags ~FC002 | FC003,FC004 | | ||
| | --tags FC002 | | | ||
| FC002,FC003,FC004 | --tags @FC002 | | | ||
| FC002,FC003,FC004 | --tags style | FC002,FC004 | | ||
| FC002,FC003,FC004 | --tags FC002 --tags FC003 | | | ||
| FC002,FC003,FC004 | --tags style --tags services | FC004 | | ||
| FC002,FC003,FC004 | --tags style,services | FC002,FC004 | |
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