Sha256: 7d623270f12f8d197b781d3f408f940aacb829dd1dab9d6f89b4c35d1d3b0e34
Contents?: true
Size: 1.92 KB
Versions: 5
Compression:
Stored size: 1.92 KB
Contents
Feature: install cookbooks from a Berksfile As a user with a Berksfile I want to be able to run knife berkshelf install to install my cookbooks So that I don't have to download my cookbooks and their dependencies manually Scenario: install cookbooks Given I write to "Berksfile" with: """ cookbook "mysql", "1.2.4" """ When I run the install command Then the cookbook store should have the cookbooks: | mysql | 1.2.4 | | openssl | 1.0.0 | And the output should contain: """ Installing mysql (1.2.4) from site: 'http://cookbooks.opscode.com/api/v1/cookbooks' Installing openssl (1.0.0) from site: 'http://cookbooks.opscode.com/api/v1/cookbooks' """ Scenario: running install when current project is a cookbook and the 'metadata' is specified Given a cookbook named "sparkle_motion" And the cookbook "sparkle_motion" has the file "Berksfile" with: """ metadata """ When I cd to "sparkle_motion" And I run the install command Then the output should contain: """ Using sparkle_motion (0.0.0) at path: """ And the exit status should be 0 Scenario: running install with no Berksfile or Berksfile.lock Given I do not have a Berksfile And I do not have a Berksfile.lock When I run the install command Then the output should contain: """ No Berksfile or Berksfile.lock found at: """ And the CLI should exit with the status code for error "BerksfileNotFound" Scenario: running install when the Cookbook is not found on the remote site Given I write to "Berksfile" with: """ cookbook "doesntexist" """ And I run the install command Then the output should contain: """ Cookbook 'doesntexist' not found at site: 'http://cookbooks.opscode.com/api/v1/cookbooks' """ And the CLI should exit with the status code for error "DownloadFailure"
Version data entries
5 entries across 5 versions & 1 rubygems