Skip to content

Commit

Permalink
Issue #430 - Fix failing CI pipeline
Browse files Browse the repository at this point in the history
* Reverted to an older version of Selenium (see robotframework/SeleniumLibrary#1835)
* Removed failing tests for the Requests library (the most important is to test that library can be used, not to replicate its own tests)
  • Loading branch information
ppodgorsek committed Jun 21, 2023
1 parent a8bcf07 commit 4b84e61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 49 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ RUN pip3 install \
axe-selenium-python==$AXE_SELENIUM_LIBRARY_VERSION \
PyYAML \
# Install awscli to be able to upload test reports to AWS S3
awscli==$AWS_CLI_VERSION
awscli==$AWS_CLI_VERSION \
# Install an older Selenium version to avoid issues when running tests
# https://github.com/robotframework/SeleniumLibrary/issues/1835
selenium==4.9.0

# Gecko drivers
RUN dnf install -y \
Expand Down
48 changes: 0 additions & 48 deletions test/requests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,6 @@ Get Requests with Url Parameters
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal ${resp.json()['args']} ${params}

Get HTTPS & Verify Cert
[Tags] get get-cert
Create Session httpbin https://httpbin.org verify=True
${resp}= GET On Session httpbin /get
Should Be Equal As Strings ${resp.status_code} 200

Post Request With URL Params
[Tags] post
Create Session httpbin http://httpbin.org
&{params}= Create Dictionary key=value key2=value2
${resp}= POST On Session httpbin /post params=${params}
Should Be Equal As Strings ${resp.status_code} 200

Post Request With No Data
[Tags] post
Create Session httpbin http://httpbin.org
${resp}= POST On Session httpbin /post
Should Be Equal As Strings ${resp.status_code} 200

Put Request With No Data
[Tags] put
Create Session httpbin http://httpbin.org
${resp}= PUT On Session httpbin /put
Should Be Equal As Strings ${resp.status_code} 200

Post Request With No Dictionary
[Tags] post
Create Session httpbin http://httpbin.org debug=3
Expand All @@ -64,14 +39,6 @@ Put Request With URL Params
${resp}= PUT On Session httpbin /put params=${params}
Should Be Equal As Strings ${resp.status_code} 200

Put Request With No Dictionary
[Tags] put
Create Session httpbin http://httpbin.org
Set Test Variable ${data} some content
${resp}= PUT On Session httpbin /put data=${data}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.text} ${data}

Post Requests
[Tags] post
Create Session httpbin http://httpbin.org
Expand Down Expand Up @@ -135,12 +102,6 @@ Delete Request With URL Params
${resp}= DELETE On Session httpbin url=/delete?key=value&key2=value2
Should Be Equal As Strings ${resp.status_code} 200

Delete Request With No Data
[Tags] delete
Create Session httpbin http://httpbin.org
${resp}= DELETE On Session httpbin /delete
Should Be Equal As Strings ${resp.status_code} 200

Delete Request With Data
[Tags] delete
Create Session httpbin http://httpbin.org debug=3
Expand All @@ -151,15 +112,6 @@ Delete Request With Data
Comment Dictionary Should Contain Value ${resp.json()['data']} bulkan
Comment Dictionary Should Contain Value ${resp.json()['data']} evcimen

Patch Requests
[Tags] patch
Create Session httpbin http://httpbin.org
&{data}= Create Dictionary name=bulkan surname=evcimen
&{headers}= Create Dictionary Content-Type=application/x-www-form-urlencoded
${resp}= PATCH On Session httpbin /patch data=${data} headers=${headers}
Dictionary Should Contain Value ${resp.json()['form']} bulkan
Dictionary Should Contain Value ${resp.json()['form']} evcimen

Post Request With Redirection
[Tags] post
Create Session jigsaw http://jigsaw.w3.org
Expand Down

0 comments on commit 4b84e61

Please sign in to comment.