foodcritic 9.0.0 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -7
- data/chef_dsl_metadata/{chef_12.5.1.json → chef_12.19.36.json} +5591 -823
- data/features/009_check_for_unrecognised_resource_attributes.feature +1 -1
- data/features/032_check_for_invalid_notification_timing.feature +0 -2
- data/features/choose_rules_to_apply.feature +19 -21
- data/features/continuous_integration_support.feature +13 -13
- data/features/ignore_via_line_comments.feature +4 -4
- data/features/step_definitions/cookbook_steps.rb +5 -16
- data/features/support/command_helpers.rb +1 -1
- data/features/support/cookbook_helpers.rb +13 -3
- data/lib/foodcritic/linter.rb +1 -1
- data/lib/foodcritic/rules.rb +1 -16
- data/lib/foodcritic/version.rb +1 -1
- data/spec/regression/expected-output.txt +0 -10
- metadata +4 -15
- data/chef_dsl_metadata/chef_12.0.0.json +0 -11855
- data/chef_dsl_metadata/chef_12.0.1.json +0 -11865
- data/chef_dsl_metadata/chef_12.0.3.json +0 -12054
- data/chef_dsl_metadata/chef_12.1.0.json +0 -12468
- data/chef_dsl_metadata/chef_12.1.1.json +0 -12468
- data/chef_dsl_metadata/chef_12.1.2.json +0 -12468
- data/chef_dsl_metadata/chef_12.2.1.json +0 -12645
- data/chef_dsl_metadata/chef_12.3.0.json +0 -12839
- data/chef_dsl_metadata/chef_12.4.0.json +0 -14625
- data/chef_dsl_metadata/chef_12.4.1.json +0 -14625
- data/features/003_check_for_chef_server.feature +0 -61
@@ -1,61 +0,0 @@
|
|
1
|
-
Feature: Check for Chef Server
|
2
|
-
|
3
|
-
In order to ensure my cookbooks can be run with chef solo
|
4
|
-
As a developer
|
5
|
-
I want to identify if server-only features are used without checking to see if this is server
|
6
|
-
|
7
|
-
Scenario: Search without checking for server
|
8
|
-
Given a cookbook with a single recipe that searches without checking if this is server
|
9
|
-
When I check the cookbook
|
10
|
-
Then the check for server warning 003 should be displayed
|
11
|
-
|
12
|
-
Scenario: Search with older chef-solo-search
|
13
|
-
Given a cookbook with a single recipe that searches without checking if this is server
|
14
|
-
And another cookbook that has an older chef-solo-search installed
|
15
|
-
When I check the cookbook
|
16
|
-
Then the check for server warning 003 should not be displayed
|
17
|
-
|
18
|
-
Scenario: Search with chef-solo-search
|
19
|
-
Given a cookbook with a single recipe that searches without checking if this is server
|
20
|
-
And another cookbook that has chef-solo-search installed
|
21
|
-
When I check the cookbook
|
22
|
-
Then the check for server warning 003 should not be displayed
|
23
|
-
|
24
|
-
Scenario: Search checking for server
|
25
|
-
Given a cookbook with a single recipe that searches but checks first to see if this is server
|
26
|
-
When I check the cookbook
|
27
|
-
Then the check for server warning 003 should not be displayed given we have checked
|
28
|
-
|
29
|
-
Scenario: Search checking for server (unless)
|
30
|
-
Given a cookbook with a single recipe that searches but checks with a negative first to see if this is server
|
31
|
-
When I check the cookbook
|
32
|
-
Then the check for server warning 003 should not be displayed given we have checked
|
33
|
-
|
34
|
-
Scenario: Search checking for server (string access)
|
35
|
-
Given a cookbook with a single recipe that searches but checks first (string) to see if this is server
|
36
|
-
When I check the cookbook
|
37
|
-
Then the check for server warning 003 should not be displayed given we have checked
|
38
|
-
|
39
|
-
Scenario: Search checking for server (method access)
|
40
|
-
Given a cookbook with a single recipe that searches but checks first (method) to see if this is server
|
41
|
-
When I check the cookbook
|
42
|
-
Then the check for server warning 003 should not be displayed given we have checked
|
43
|
-
|
44
|
-
Scenario: Search checking for server (alternation)
|
45
|
-
Given a cookbook with a single recipe that searches but checks first (alternation) to see if this is server
|
46
|
-
When I check the cookbook
|
47
|
-
Then the check for server warning 003 should not be displayed against the condition
|
48
|
-
|
49
|
-
Scenario: Search checking for server (ternary)
|
50
|
-
Given a cookbook with a single recipe that searches but checks first (ternary) to see if this is server
|
51
|
-
When I check the cookbook
|
52
|
-
Then the check for server warning 003 should not be displayed against the condition
|
53
|
-
|
54
|
-
Scenario Outline: Search checking for server (return)
|
55
|
-
Given a cookbook with a single recipe that searches but returns first (<format>) if search is not supported
|
56
|
-
When I check the cookbook
|
57
|
-
Then the check for server warning 003 should not be displayed against the search after the <format> conditional
|
58
|
-
Examples:
|
59
|
-
| format |
|
60
|
-
| oneline |
|
61
|
-
| multiline |
|