1
Feature: Check for direct usage of curl or wget
3
In order to fetch remote artefacts idiomatically
5
I want to use resources to download rather than using curl or wget
7
Scenario Outline: Execute resource
8
Given a cookbook recipe with an execute resource named <name>
9
When I check the cookbook
10
Then the execute resource used to run curl or wget commands warning 041 <display> be displayed
13
| curl 'http://example.org/' | should |
14
| wget 'http://example.org/' | should |
15
| which foo | should not |
17
Scenario Outline: Execute resource
18
Given a cookbook recipe with an execute resource that runs the command <command>
19
When I check the cookbook
20
Then the execute resource used to run curl or wget commands warning 041 <display> be displayed
23
| which foo | should not |
24
| curl 'http://example.org/' | should |
25
| wget 'http://example.org/' | should |
26
| mkdir foo && wget 'http://example.org/' | should |