Sha256: 1ba680da2787b701d70577df34c1c47ad23da6b950c5e63f1583ef5fc83ee090

Contents?: true

Size: 970 Bytes

Versions: 3

Compression:

Stored size: 970 Bytes

Contents

Feature: Running the program with list_profiles
  Scenario: User runs the program
    Given a file named "credentials" with:
    """
    [testprofile]
    aws_access_key_id=ABC
    aws_secret_access_key=XYZ
    region=us-east-1
    """
    When I run `awsssh list_profiles`
    Then the output should contain "testprofile"

  Scenario: User runs without `AWS_CREDENTIAL_FILE`
    Given I set the environment variables to:
      | variable           | value      |
      | AWS_CREDENTIAL_FILE |  |
    When I run `awsssh list_profiles`
    Then the output should contain "$AWS_CREDENTIAL_FILE not set"
    And the exit status should not be 0

  Scenario: User runs with wrong `AWS_CREDENTIAL_FILE`
    Given I set the environment variables to:
      | variable           | value      |
      | AWS_CREDENTIAL_FILE | ./test.txt |
    When I run `awsssh list_profiles`
    Then the output should contain "Credential File not found."
    And the exit status should not be 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awsssh-3.2.0.rc1 features/running_list_profiles.feature
awsssh-3.1.1 features/running_list_profiles.feature
awsssh-3.1.0 features/running_list_profiles.feature