Capture lodgeit captchas for verification purposes
This will help us verify the captchas render properly. This has been an issue with the image library changing APIs. Depends-On: https://review.opendev.org/c/opendev/lodgeit/+/935712/ Change-Id: I847bbb23776e89b8a74bfd25e6e790cbdae4eda6
This commit is contained in:
parent
8be94508be
commit
32eae01bda
@ -59,3 +59,11 @@ def test_paste_screenshots(host):
|
||||
)
|
||||
|
||||
take_screenshots(host, shots)
|
||||
|
||||
# Selenium doesn't handle screenshots of pngs, but that is fine we can
|
||||
# just download and save the png directly into the screenshots dir.
|
||||
# We disable ssl verification because we're connecting via bridge and
|
||||
# it doesn't trust the cert.
|
||||
r = requests.get('https://paste99.opendev.org/_captcha.png', verify=False)
|
||||
with open('/var/log/screenshots/paste-captcha.png', 'wb') as f:
|
||||
f.write(r.content)
|
||||
|
Loading…
x
Reference in New Issue
Block a user