-
Notifications
You must be signed in to change notification settings - Fork 286
Replace httpbin.org with github.com for acceptance tests #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lucagiove
merged 4 commits into
MarketSquare:master
from
oboehmer:remove-httpbin-dependency
Dec 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5eee821
feat: Replace httpbin.org with local HTTP server and external HTTPS s…
oboehmer 8ecef36
remove unused helper functions in atest http server
oboehmer 493dea7
remove resource import which is no longer needed
oboehmer 778d529
revert client side cert url change back to original
oboehmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ venv/* | |
| env/* | ||
|
|
||
| .vscode/* | ||
| .claude/ | ||
|
|
||
| # ignore http server log | ||
| atests/http_server/http_server.log | ||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,34 +1,34 @@ | ||
| *** Settings *** | ||
| Library RequestsLibrary | ||
| Library customAuthenticator.py | ||
| Resource res_setup.robot | ||
|
|
||
|
|
||
| *** Test Cases *** | ||
| Get With Auth | ||
| [Tags] get get-cert | ||
| ${auth}= Create List user passwd | ||
| Create Session httpbin https://httpbin.org auth=${auth} verify=${CURDIR}${/}cacert.pem | ||
| ${resp}= GET On Session httpbin /basic-auth/user/passwd | ||
| Create Session authsession ${HTTP_LOCAL_SERVER} auth=${auth} | ||
| ${resp}= GET On Session authsession /basic-auth/user/passwd | ||
| Should Be Equal As Strings ${resp.status_code} 200 | ||
| Should Be Equal As Strings ${resp.json()['authenticated']} True | ||
|
|
||
| Get With Custom Auth | ||
| [Tags] get | ||
| ${auth}= Get Custom Auth user passwd | ||
| Create Custom Session httpbin https://httpbin.org auth=${auth} verify=${CURDIR}${/}cacert.pem | ||
| ${resp}= GET On Session httpbin /basic-auth/user/passwd | ||
| Create Custom Session authsession ${HTTP_LOCAL_SERVER} auth=${auth} | ||
| ${resp}= GET On Session authsession /basic-auth/user/passwd | ||
| Should Be Equal As Strings ${resp.status_code} 200 | ||
| Should Be Equal As Strings ${resp.json()['authenticated']} True | ||
|
|
||
| Get With Digest Auth | ||
| [Tags] get get-cert | ||
| ${auth}= Create List user pass | ||
| Create Digest Session | ||
| ... httpbin | ||
| ... https://httpbin.org | ||
| ... authsession | ||
| ... ${HTTP_LOCAL_SERVER} | ||
| ... auth=${auth} | ||
| ... debug=3 | ||
| ... verify=${CURDIR}${/}cacert.pem | ||
| ${resp}= GET On Session httpbin /digest-auth/auth/user/pass | ||
| ${resp}= GET On Session authsession /digest-auth/auth/user/pass | ||
| Should Be Equal As Strings ${resp.status_code} 200 | ||
| Should Be Equal As Strings ${resp.json()['authenticated']} True |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,23 +1,24 @@ | ||
| *** Settings *** | ||
| Library RequestsLibrary | ||
| Resource res_setup.robot | ||
|
|
||
|
|
||
| *** Test Cases *** | ||
| Get HTTPS & Verify Cert | ||
| [Tags] get get-cert | ||
| Create Session httpbin https://httpbin.org verify=True | ||
| ${resp}= GET On Session httpbin /get | ||
| Create Session sslsession https://github.com verify=True | ||
| ${resp}= GET On Session sslsession / | ||
| Should Be Equal As Strings ${resp.status_code} 200 | ||
|
|
||
| Get HTTPS & Verify Cert with a CA bundle | ||
| [Tags] get get-cert | ||
| Create Session httpbin https://httpbin.org verify=${CURDIR}${/}cacert.pem | ||
| ${resp}= GET On Session httpbin /get | ||
| Create Session sslsession https://github.com verify=${CURDIR}${/}cacert.pem | ||
| ${resp}= GET On Session sslsession / | ||
| Should Be Equal As Strings ${resp.status_code} 200 | ||
|
|
||
| Get HTTPS with Client Side Certificates | ||
| [Tags] get get-cert | ||
| @{client_certs}= Create List ${CURDIR}${/}clientcert.pem ${CURDIR}${/}clientkey.pem | ||
| Create Client Cert Session crtsession https://server.cryptomix.com/secure client_certs=@{client_certs} | ||
| ${resp}= GET On Session crtsession / | ||
| Create Client Cert Session sslsession https://github.com client_certs=@{client_certs} | ||
| ${resp}= GET On Session sslsession / | ||
| Should Be Equal As Strings ${resp.status_code} 200 | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.