1
Feature: Check for direct usage of git
3
In order to access source control repositories idiomatically
5
I want to use resources for repository access rather than executing git directly
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 git commands warning 040 <display> be displayed
14
| git clone | should |
15
| git fetch | should |
16
| git checkout | should |
17
| git reset --hard | should |
18
| git show | should not |
19
| echo 'bob' && git show | should not |
20
| which foo | should not |
22
Scenario Outline: Execute resource
23
Given a cookbook recipe with an execute resource that runs the command <command>
24
When I check the cookbook
25
Then the execute resource used to run git commands warning 040 <display> be displayed
28
| git clone https://github.com/git/git.git | should |
29
| git clone --depth 10 https://github.com/git/git.git | should |
31
| git fetch origin | should |
32
| git checkout master | should |
33
| git reset --hard | should |
34
| git show | should not |
35
| echo 'bob' && git show | should not |
37
| curl http://github.com/ | should not |