Sha256: c643a2c1351ee7977bb23f341a00ac334a6c3b01b3d12c33912d3bcce0d93b5d
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
Feature: Vendoring cookbooks to a directory Background: * the Berkshelf API server's cache is empty * the Chef Server has cookbooks: | fake | 1.0.0 | | ekaf | 2.0.0 | * the Berkshelf API server's cache is up to date Scenario: successfully vendoring a Berksfile with multiple cookbook demands Given I have a Berksfile pointing at the local Berkshelf API with: """ cookbook 'fake' cookbook 'ekaf' """ When I successfully run `berks vendor cukebooks` Then the directory "cukebooks/fake" should contain version "1.0.0" of the "fake" cookbook And the directory "cukebooks/ekaf" should contain version "2.0.0" of the "ekaf" cookbook Scenario: attempting to vendor when no Berksfile is present When I run `berks vendor cukebooks` Then the exit status should be "BerksfileNotFound" Scenario: vendoring a Berksfile with a metadata demand Given a cookbook named "fake" And I cd to "fake" And I have a Berksfile pointing at the local Berkshelf API with: """ metadata """ When I successfully run `berks vendor cukebooks` And the directory "cukebooks/fake" should contain version "0.0.0" of the "fake" cookbook Scenario: vendoring without an explicit path to vendor into Given I have a Berksfile pointing at the local Berkshelf API with: """ cookbook 'fake' """ When I successfully run `berks vendor` And the directory "berks-cookbooks/fake" should contain version "1.0.0" of the "fake" cookbook Scenario: vendoring to a directory that already exists Given I have a Berksfile pointing at the local Berkshelf API with: """ cookbook 'fake' """ And a directory named "cukebooks" When I run `berks vendor cukebooks` And the exit status should be "VendorError"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
berkshelf-3.0.0.beta4 | features/commands/vendor.feature |
berkshelf-3.0.0.beta3 | features/commands/vendor.feature |