Sha256: d691a687e6daeebdf9ef0c53b88bf41308ec7d8c7662bdac72c93c22714bc80f

Contents?: true

Size: 1.51 KB

Versions: 45

Compression:

Stored size: 1.51 KB

Contents

Feature: Logging into a Kitchen instance
  In order to iterate, explore, and debug
  As a crafty developer
  I want to run a command that will give me a terminal session

  Background:
    Given a file named ".kitchen.yml" with:
    """
    ---
    driver:
      name: dummy

    transport:
      name: dummy

    provisioner:
      name: dummy

    platforms:
      - name: flebian

    suites:
      - name: default
      - name: full
    """
    And I successfully run `kitchen create default-flebian`

  @spawn
  Scenario: Logging in to an instance
    When I run `kitchen login default-flebian`
    Then the output should contain:
    """
    Remote login not supported in Kitchen::Transport::Dummy::Connection.
    """
    And the exit status should not be 0

  @spawn
  Scenario: Attempting to log into a non-created instance
    When I run `kitchen login full-flebian`
    Then the output should contain:
    """
    Instance <full-flebian> has not yet been created
    """
    And the exit status should not be 0

  @spawn
  Scenario: Attempting to log into a non-existent instance
    When I run `kitchen login nope`
    Then the output should contain "No instances for regex `nope'"
    And the exit status should not be 0

  @spawn
  Scenario: Attempting to log into an instance with an overly fuzzy match
    When I run `kitchen login flebian`
    Then the output should contain:
    """
    Argument `flebian' returned multiple results:
      * default-flebian
      * full-flebian
    """
    And the exit status should not be 0

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
test-kitchen-1.13.1 features/kitchen_login_command.feature
test-kitchen-1.13.0 features/kitchen_login_command.feature
test-kitchen-1.12.0 features/kitchen_login_command.feature
test-kitchen-1.11.1 features/kitchen_login_command.feature
test-kitchen-1.11.0 features/kitchen_login_command.feature
test-kitchen-1.10.2 features/kitchen_login_command.feature
test-kitchen-1.10.2.dev features/kitchen_login_command.feature
test-kitchen-1.10.0 features/kitchen_login_command.feature
test-kitchen-1.9.2 features/kitchen_login_command.feature
test-kitchen-1.9.1 features/kitchen_login_command.feature
test-kitchen-1.9.0 features/kitchen_login_command.feature
test-kitchen-1.8.0 features/kitchen_login_command.feature
test-kitchen-1.7.3 features/kitchen_login_command.feature
test-kitchen-1.7.2 features/kitchen_login_command.feature
test-kitchen-1.7.1 features/kitchen_login_command.feature
test-kitchen-1.7.1.dev features/kitchen_login_command.feature
test-kitchen-1.6.0 features/kitchen_login_command.feature
test-kitchen-1.5.0 features/kitchen_login_command.feature
test-kitchen-1.5.0.rc.1 features/kitchen_login_command.feature
test-kitchen-1.4.2 features/kitchen_login_command.feature