Sha256: cea68bb5ac7500589ead344ffdcd88c45ecdc8d18eeb4b271a88aeb5b58c9102

Contents?: true

Size: 953 Bytes

Versions: 63

Compression:

Stored size: 953 Bytes

Contents

Feature:  Basic Authentication

  As a developer
  I want to be able to use a service that requires Basic Authentication
  Because that is not an uncommon requirement

  Scenario: Passing no credentials to a page requiring Basic Authentication
    Given a restricted page at '/protected.html'
    When I call HTTParty#get with '/protected.html'
    Then it should return a response with a 401 response code

  Scenario: Passing proper credentials to a page requiring Basic Authentication
    Given a remote service that returns 'Authenticated Page'
    And that service is accessed at the path '/protected.html'
    And that service is protected by Basic Authentication
    And that service requires the username 'jcash' with the password 'maninblack'
    When I call HTTParty#get with '/protected.html' and a basic_auth hash:
       | username | password   |
       | jcash    | maninblack |
    Then the return value should match 'Authenticated Page'

Version data entries

63 entries across 63 versions & 18 rubygems

Version Path
luigi-httparty-0.5.0.1 features/basic_authentication.feature
luigi-httparty-0.5.0 features/basic_authentication.feature
httparty-0.5.0 features/basic_authentication.feature
luigi-httparty-0.4.6 features/basic_authentication.feature
yyyc514-httparty-0.4.4.2 features/basic_authentication.feature
spreedly-1.3.1 vendor/httparty/features/basic_authentication.feature
httparty-0.4.5 features/basic_authentication.feature
httparty-0.4.4 features/basic_authentication.feature
httparty-0.2.10 features/basic_authentication.feature
httparty-0.3.0 features/basic_authentication.feature
httparty-0.3.1 features/basic_authentication.feature
httparty-0.2.9 features/basic_authentication.feature
httparty-0.4.0 features/basic_authentication.feature
httparty-0.4.3 features/basic_authentication.feature
httparty-0.4.2 features/basic_authentication.feature
httparty-0.4.1 features/basic_authentication.feature
spreedly-1.0.1 vendor/httparty/features/basic_authentication.feature
spreedly-1.0.0 vendor/httparty/features/basic_authentication.feature
spreedly-1.3.0 vendor/httparty/features/basic_authentication.feature
spreedly-1.2.2 vendor/httparty/features/basic_authentication.feature