Sha256: 104f5ba2f6b9a9e7ea11f0f4421eda69ac77490aaf6fbe4a1d30cd614ae9112f

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

Feature: berks apply
  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 the Chef Server has an environment named "my_env"
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    When I successfully run `berks apply my_env`
    Then the version locks in the "my_env" environment should be:
      | fake       | 1.0.0 |
      | dependency | 2.0.0 |


  Scenario: Locking cookbook versions to a non-existent Chef Environment
    Given the Chef Server does not have an environment named "my_env"
    And the cookbook store has the cookbooks:
      | fake | 1.0.0 |
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    When I run `berks apply my_env`
    Then the output should contain:
      """
      The environment 'my_env' does not exist
      """
    And the exit status should be "EnvironmentNotFound"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
berkshelf-3.0.0.beta3 features/commands/apply.feature