Skip to content

Commit

Permalink
Grid Beta 2 Prerelease 9c138bc189 (SeleniumHQ#1229) [deploy][prerelease]
Browse files Browse the repository at this point in the history
* Grid Beta 2 Prerelease 9c138bc189
  • Loading branch information
diemol authored Mar 12, 2021
1 parent 53aefd6 commit 8375b36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ COPY supervisord.conf /etc
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
&& touch /opt/selenium/config.toml \
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \
&& wget --no-verbose https://github.com/SeleniumHQ/docker-selenium/raw/beta-jars/selenium-server-4.0.0-prerelease-beta-2-aadc2039d7.jar \
&& wget --no-verbose https://github.com/SeleniumHQ/docker-selenium/raw/beta-jars/selenium-server-4.0.0-prerelease-beta-2-9c138bc189.jar \
-O /opt/selenium/selenium-server.jar \
# && wget --no-verbose https://selenium-release.storage.googleapis.com/4.0-beta-1/selenium-server-4.0.0-beta-1.jar \
# -O /opt/selenium/selenium-server.jar \
Expand Down
4 changes: 3 additions & 1 deletion tests/K8sSmokeTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@

def get_grid_status():
try:
response = urlopen('%s/status1' % (SELENIUM_GRID_URL))
response = urlopen('%s/status' % (SELENIUM_GRID_URL))
print("Response code: " + str(response.getcode()))
response = urlopen('%s/status' % (SELENIUM_GRID_URL))
encoded_response = response.read()
encoding = response.headers.get_content_charset('utf-8')
decoded_response = encoded_response.decode(encoding)
print("Response: " + decoded_response)
response_json = json.loads(decoded_response)
return response_json['value']['ready']
except Exception as e:
print(e)
return False


Expand Down

0 comments on commit 8375b36

Please sign in to comment.