Sha256: 8bbc3150a3e220714a92cfbaf50dcba3af92f91ac8fd4e0ab0b47ecb4a0b04d5

Contents?: true

Size: 957 Bytes

Versions: 102

Compression:

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

Version data entries

102 entries across 100 versions & 15 rubygems

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