Sha256: 7f2d42f60d0873a413d608712bdee65c4d61630575307d310d10c31589eb92de

Contents?: true

Size: 973 Bytes

Versions: 2

Compression:

Stored size: 973 Bytes

Contents

Feature:  Digest Authentication

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

  Scenario: Passing no credentials to a page requiring Digest 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 Digest Authentication
    Given a remote service that returns 'Digest Authenticated Page'
    And that service is accessed at the path '/protected.html'
    And that service is protected by Digest Authentication
    And that service requires the username 'jcash' with the password 'maninblack'
    When I call HTTParty#get with '/protected.html' and a digest_auth hash:
       | username | password   |
       | jcash    | maninblack |
    Then the return value should match 'Digest Authenticated Page'

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
httparty-0.6.0 features/digest_authentication.feature
jugend-httparty-0.5.3.4 features/digest_authentication.feature