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
kerryb-httparty-0.4.3 features/basic_authentication.feature
leh-httparty-0.3.1.1 features/basic_authentication.feature
mfilej-httparty-0.4.3 features/basic_authentication.feature
nullstyle-httparty-0.4.4 features/basic_authentication.feature
timriley-httparty-0.3.1 features/basic_authentication.feature
timriley-httparty-0.3.2 features/basic_authentication.feature
voxdolo-httparty-0.3.1 features/basic_authentication.feature
voxdolo-httparty-0.4.1 features/basic_authentication.feature
spreedly-1.3.5 vendor/httparty/features/basic_authentication.feature
spreedly-1.3.4 vendor/httparty/features/basic_authentication.feature
spreedly-1.3.3 vendor/httparty/features/basic_authentication.feature
httparty-0.6.0 features/basic_authentication.feature
jugend-httparty-0.5.2.3 features/basic_authentication.feature
jugend-httparty-0.5.2.2 features/basic_authentication.feature
spreedly-1.3.2 vendor/httparty/features/basic_authentication.feature
jugend-httparty-0.5.2.1 features/basic_authentication.feature
jugend-httparty-0.5.3.4 features/basic_authentication.feature
kerryb-httparty-0.4.4 features/basic_authentication.feature
httparty-0.5.2 features/basic_authentication.feature
httparty-0.5.1 features/basic_authentication.feature