Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (17 sloc) 0.981 kb
ab65829 add digest auth features
gilles authored
1 Feature: Digest Authentication
2
3 As a developer
4 I want to be able to use a service that requires Digest Authentication
5 Because that is not an uncommon requirement
6
7 Scenario: Passing no credentials to a page requiring Digest Authentication
d018df2 @sandro Cucumber suite sends unique requests
sandro authored
8 Given a restricted page at '/digest_auth.html'
9 When I call HTTParty#get with '/digest_auth.html'
ab65829 add digest auth features
gilles authored
10 Then it should return a response with a 401 response code
11
12 Scenario: Passing proper credentials to a page requiring Digest Authentication
13 Given a remote service that returns 'Digest Authenticated Page'
d018df2 @sandro Cucumber suite sends unique requests
sandro authored
14 And that service is accessed at the path '/digest_auth.html'
ab65829 add digest auth features
gilles authored
15 And that service is protected by Digest Authentication
16 And that service requires the username 'jcash' with the password 'maninblack'
d018df2 @sandro Cucumber suite sends unique requests
sandro authored
17 When I call HTTParty#get with '/digest_auth.html' and a digest_auth hash:
ab65829 add digest auth features
gilles authored
18 | username | password |
19 | jcash | maninblack |
20 Then the return value should match 'Digest Authenticated Page'
Something went wrong with that request. Please try again.