-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*** Settings *** | ||
Suite Setup Start Services | ||
Suite Teardown Stop Services | ||
Resource resource.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
*** Settings *** | ||
Resource resource.txt | ||
|
||
*** Test Cases *** | ||
Http Authentication | ||
Create Soap Client ${TEST WSDL URL} | ||
Set Location ${SECURE TEST URL} | ||
Run Keyword And Expect Error (401, u'Authentication Required') Call Soap Method theAnswer | ||
Set Http Authentication bob bob STANDARD | ||
${answer} Call Soap Method theAnswer | ||
Should Be Equal ${answer} ${42} | ||
Create Soap Client ${TEST WSDL URL} | ||
Set Http Authentication bob foo ALWAYS_send | ||
${sum} Call Soap Method theAnswer | ||
${request} Get Sent Request | ||
# auth not needed, but should have been sent anyways | ||
Should Be Equal As Strings ${request.headers['Authorization']} Basic Ym9iOmZvbw== | ||
Run Keyword And Expect Error ValueError: 'bad' is not a supported type. Set Http Authentication bob foo bad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters