~ubuntu-branches/ubuntu/vivid/foodcritic/vivid-proposed

« back to all changes in this revision

Viewing changes to features/041_check_raw_download.feature

  • Committer: Package Import Robot
  • Author(s): Stefano Rivera
  • Date: 2013-06-11 00:34:40 UTC
  • Revision ID: package-import@ubuntu.com-20130611003440-czusooxs9rrpe6sb
Tags: upstream-2.1.0
ImportĀ upstreamĀ versionĀ 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Feature: Check for direct usage of curl or wget
 
2
 
 
3
  In order to fetch remote artefacts idiomatically
 
4
  As a developer
 
5
  I want to use resources to download rather than using curl or wget
 
6
 
 
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
 
11
  Examples:
 
12
    | name                       | display    |
 
13
    | curl 'http://example.org/' | should     |
 
14
    | wget 'http://example.org/' | should     |
 
15
    | which foo                  | should not |
 
16
 
 
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
 
21
  Examples:
 
22
    | command                                 | display     |
 
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      |