Sha256: d36503cc5538ff6b1ed0cc7b79a96bb92733b666043121da0313e962a3c2789c

Contents?: true

Size: 1.05 KB

Versions: 15

Compression:

Stored size: 1.05 KB

Contents

Feature: Creating an environment from file
  As a mb user
  I can create an environment via motherbrain from a file
  So I can manage an environment without using other tools such as knife

  Background:
    Given there is a file from input named "spec/fixtures/test_env.json"

  @chef_server
  Scenario: Create an environment from file
    Given there is not an environment on the chef server named "test_env"
    When I create an environment from file "spec/fixtures/test_env.json"
    Then the exit status should be 0
    And there should be an environment "test_env" on the chef server

  @chef_server
  Scenario: Creating an existing environment from file
    Given there is an environment on the chef server named "test_env"
    When I create an environment from file "spec/fixtures/test_env.json"
    Then the output should contain:
      """
      An environment named 'test_env' already exists in the Chef Server.
      """
    And the exit status should be the code for error "EnvironmentExists"
    And there should be an environment "test_env" on the chef server




Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 features/cli/environment_command/from_command.feature
motherbrain-1.4.0 features/cli/environment_command/from_command.feature
motherbrain-1.3.0 features/cli/environment_command/from_command.feature
motherbrain-1.2.1 features/cli/environment_command/from_command.feature
motherbrain-1.2.0 features/cli/environment_command/from_command.feature
motherbrain-1.1.3 features/cli/environment_command/from_command.feature
motherbrain-1.1.2 features/cli/environment_command/from_command.feature
motherbrain-1.1.1 features/cli/environment_command/from_command.feature
motherbrain-1.1.0 features/cli/environment_command/from_command.feature
motherbrain-1.0.0 features/cli/environment_command/from_command.feature
motherbrain-0.14.5 features/cli/environment_command/from_command.feature
motherbrain-0.14.4 features/cli/environment_command/from_command.feature
motherbrain-0.14.3 features/cli/environment_command/from_command.feature
motherbrain-0.14.2 features/cli/environment_command/from_command.feature
motherbrain-0.13.1 features/cli/environment_command/from_command.feature