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
alexvollmer-httparty-0.3.1 features/basic_authentication.feature
alexvollmer-httparty-0.4.3 features/basic_authentication.feature
cluon-httparty-0.4.3 features/basic_authentication.feature
dbalatero-httparty-0.4.4 features/basic_authentication.feature
ddollar-httparty-0.4.6 features/basic_authentication.feature
geetarista-httparty-0.4.5 features/basic_authentication.feature
jcinnamond-httparty-0.4.5 features/basic_authentication.feature
jcinnamond-httparty-0.4.6 features/basic_authentication.feature
jnunemaker-httparty-0.2.10 features/basic_authentication.feature
jnunemaker-httparty-0.2.9 features/basic_authentication.feature
jnunemaker-httparty-0.3.0 features/basic_authentication.feature
jnunemaker-httparty-0.3.1 features/basic_authentication.feature
jnunemaker-httparty-0.4.0 features/basic_authentication.feature
jnunemaker-httparty-0.4.1 features/basic_authentication.feature
jnunemaker-httparty-0.4.2 features/basic_authentication.feature
jnunemaker-httparty-0.4.3 features/basic_authentication.feature
jnunemaker-httparty-0.4.4 features/basic_authentication.feature
jnunemaker-httparty-0.4.5 features/basic_authentication.feature
kerryb-httparty-0.3.2 features/basic_authentication.feature
kerryb-httparty-0.3.3 features/basic_authentication.feature