foodcritic 9.0.0 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 |