Skip to content

Commit

Permalink
Force geckodriver version
Browse files Browse the repository at this point in the history
Webui tests started to fail after the new release of geckodriver (v0.27.0).
As a temporary solution geckodriver has to be downgraded.

Issues:
- #388
- mozilla/geckodriver#1756
- https://pagure.io/freeipa/issue/8473

Signed-off-by: Armando Neto <abiagion@redhat.com>
  • Loading branch information
netoarmando committed Sep 2, 2020
1 parent 955a635 commit 641760a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ansible/roles/machine/setup/tasks/install_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,14 @@
executable: pip3
name: "{{ python_packages_to_install }}"

# TODO: Remove the hard coded version after the fix below is included in a release
# https://github.com/mozilla/geckodriver/issues/1756
- name: download geckodriver
shell: |
VERSION=$(curl https://github.com/mozilla/geckodriver/releases/latest 2>/dev/null | \
egrep -o 'href="[^"]*"' | sed 's/href="//' | sed 's/"$//' | \
awk -F"/" '{print $NF}')
# VERSION=$(curl https://github.com/mozilla/geckodriver/releases/latest 2>/dev/null | \
# egrep -o 'href="[^"]*"' | sed 's/href="//' | sed 's/"$//' | \
# awk -F"/" '{print $NF}')
VERSION="v0.26.0"
curl -L "https://github.com/mozilla/geckodriver/releases/download/$VERSION/geckodriver-$VERSION-linux64.tar.gz" | tar xzv -C /opt
- name: download selenium
Expand Down

0 comments on commit 641760a

Please sign in to comment.