forked from berkshelf/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.feature
34 lines (33 loc) · 1.02 KB
/
package.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@api_server
Feature: berks package
Background:
* the cookbook store has the cookbooks:
| fake | 1.0.0 |
Scenario: When no options are passed
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
cookbook 'fake', '~> 1.0.0'
"""
When I successfully run `berks package my-cookbooks.tar.gz`
Then a file named "my-cookbooks.tar.gz" should exist
And the output should contain:
"""
Cookbook(s) packaged to
"""
And the archive "my-cookbooks.tar.gz" should contain:
"""
cookbooks
cookbooks/fake
cookbooks/fake/attributes
cookbooks/fake/attributes/default.rb
cookbooks/fake/files
cookbooks/fake/files/default
cookbooks/fake/files/default/file.h
cookbooks/fake/metadata.json
cookbooks/fake/metadata.rb
cookbooks/fake/recipes
cookbooks/fake/recipes/default.rb
cookbooks/fake/templates
cookbooks/fake/templates/default
cookbooks/fake/templates/default/template.erb
"""