summaryrefslogtreecommitdiff
path: root/features/cookbooks/metadata.feature
blob: 7e1c26c9f0225d9039d173a09c666b0fa230239d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Feature: Cookbook Metadata 
  In order to understand cookbooks without evaluating them 
  As an Administrator 
  I want to automatically generate metadata about cookbooks  

  Scenario: Generate metadata for all cookbooks 
    Given a local cookbook repository 
     When I run the rake task to generate cookbook metadata 
     Then the run should exit '0'
      And 'stdout' should have 'Generating metadata for metadata'
      And 'stdout' should have 'Generating metadata for execute_commands'
      And a file named 'cookbooks_dir/cookbooks/metadata/metadata.json' should exist

  Scenario: Generate metadata for a specific cookbook
    Given a local cookbook repository
     When I run the rake task to generate cookbook metadata for 'metadata'
     Then the run should exit '0'
      And 'stdout' should have 'Generating metadata for metadata'
      And a file named 'cookbooks_dir/cookbooks/metadata/metadata.json' should exist