summaryrefslogtreecommitdiff
path: root/features/cookbooks/metadata.feature
blob: 17be127b221660c7252d766af59d0644524a2a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@cookbooks @cookbook_metadata
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 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 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