Sha256: d848d9e000692c44086f8c4a8ee82269cbeda894d19255ead295593252ceb441

Contents?: true

Size: 1.57 KB

Versions: 19

Compression:

Stored size: 1.57 KB

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 '/digest_auth.html'
    When I call HTTParty#get with '/digest_auth.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 '/digest_auth.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 '/digest_auth.html' and a digest_auth hash:
       | username | password   |
       | jcash    | maninblack |
    Then the return value should match 'Digest Authenticated Page'

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

Version data entries

19 entries across 18 versions & 2 rubygems

Version Path
httparty-0.17.0 features/digest_authentication.feature
httparty-0.16.4 features/digest_authentication.feature
httparty-0.16.3 features/digest_authentication.feature
httparty-0.16.2 features/digest_authentication.feature
httparty-0.16.1 features/digest_authentication.feature
httparty-0.16.0 features/digest_authentication.feature
httparty-0.15.7 features/digest_authentication.feature
httparty-0.15.6 features/digest_authentication.feature
httparty-0.15.5 features/digest_authentication.feature
httparty-0.15.4 features/digest_authentication.feature
httparty-0.15.3 features/digest_authentication.feature
httparty-0.15.2 features/digest_authentication.feature
httparty-0.15.1 features/digest_authentication.feature
httparty-0.15.0 features/digest_authentication.feature
httparty-0.14.0 features/digest_authentication.feature
simplenet-client-0.2.0 ./vendor/bundle/ruby/1.9.1/gems/httparty-0.13.7/features/digest_authentication.feature
simplenet-client-0.2.0 ./vendor/bundle/ruby/2.0.0/gems/httparty-0.13.7/features/digest_authentication.feature
httparty-0.13.7 features/digest_authentication.feature
httparty-0.13.6 features/digest_authentication.feature