Sha256: 9caeed52d7a21424b4caf93af0a1bd4758b8c16b7e5da3299e5c8425c26e9046

Contents?: true

Size: 1.4 KB

Versions: 10

Compression:

Stored size: 1.4 KB

Contents

Feature: Applying cookbook versions to a Chef Environment
  As a berks user
  I want to push my berks resolved cookbook versions to my environment
  So that I can avoid manual configuration of my environments

  @chef_server
  Scenario: Locking a cookbook version with dependencies
    Given the cookbook store contains a cookbook "fake" "1.0.0" with dependencies:
      | dependency | 2.0.0 |
    And the cookbook store has the cookbooks:
      | dependency | 2.0.0 |
    And I have an environment named "berkshelf_lock_test"
    And I write to "Berksfile" with:
      """
      cookbook 'fake', '1.0.0'
      """
    When I successfully run `berks apply berkshelf_lock_test`
    Then the version locks in "berkshelf_lock_test" should be:
      | cookbook   | version_lock |
      | fake       | 1.0.0 |
      | dependency | 2.0.0 |
    And the exit status should be 0

  @chef_server
  Scenario: Locking cookbook versions to a non-existent Chef Environment
    Given I do not have an environment named "berkshelf_lock_test"
    And the cookbook store has the cookbooks:
      | fake | 1.0.0 |
    And I write to "Berksfile" with:
      """
      cookbook 'fake', '1.0.0'
      """
    When I run the apply command on "berkshelf_lock_test"
    Then the output should contain:
      """
      The environment 'berkshelf_lock_test' does not exist
      """
    And the CLI should exit with the status code for error "EnvironmentNotFound"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkshelf-2.0.10 features/apply_command.feature
berkshelf-2.0.9 features/apply_command.feature
berkshelf-2.0.8 features/apply_command.feature
berkshelf-2.0.7 features/apply_command.feature
berkshelf-2.0.6 features/apply_command.feature
berkshelf-2.0.5 features/apply_command.feature
berkshelf-2.0.4 features/apply_command.feature
berkshelf-2.0.3 features/apply_command.feature
berkshelf-2.0.1 features/apply_command.feature
berkshelf-2.0.0 features/apply_command.feature