Sha256: 493d979e1e8aca609b804dfba07036c5248d22726039033e3b027c59c3dd5d73

Contents?: true

Size: 1.49 KB

Versions: 63

Compression:

Stored size: 1.49 KB

Contents

@api_server
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 install`
    And 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 successfully run `berks install`
    And 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"

  Scenario: Locking an environment when no lockfile is present
    When I run `berks apply my_env`
    Then the output should contain:
      """
      Lockfile not found! Run `berks install` to create the lockfile.
      """
    And the exit status should be "LockfileNotFound"

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
berkshelf-7.0.7 features/commands/apply.feature
berkshelf-6.3.4 features/commands/apply.feature
berkshelf-7.0.6 features/commands/apply.feature
berkshelf-7.0.5 features/commands/apply.feature
berkshelf-6.3.3 features/commands/apply.feature
berkshelf-7.0.4 features/commands/apply.feature
berkshelf-7.0.3 features/commands/apply.feature
berkshelf-7.0.2 features/commands/apply.feature
berkshelf-7.0.1 features/commands/apply.feature
berkshelf-7.0.0 features/commands/apply.feature
berkshelf-6.3.2 features/commands/apply.feature
berkshelf-6.3.1 features/commands/apply.feature
berkshelf-6.3.0 features/commands/apply.feature
berkshelf-6.2.2 features/commands/apply.feature
berkshelf-6.2.1 features/commands/apply.feature
berkshelf-6.2.0 features/commands/apply.feature
berkshelf-6.1.1 features/commands/apply.feature
berkshelf-6.1.0 features/commands/apply.feature
berkshelf-6.0.1 features/commands/apply.feature
berkshelf-6.0.0 features/commands/apply.feature