{"id":24107934,"url":"https://github.com/ricardobranco777/hawk_test","last_synced_at":"2025-09-17T19:31:03.494Z","repository":{"id":45051897,"uuid":"209012947","full_name":"ricardobranco777/hawk_test","owner":"ricardobranco777","description":"Docker image to run a set of Selenium tests for testing Hawk","archived":true,"fork":false,"pushed_at":"2022-09-11T18:28:08.000Z","size":92,"stargazers_count":0,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T14:23:53.827Z","etag":null,"topics":["docker-image","hawk","selenium-python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ricardobranco777.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-17T09:27:53.000Z","updated_at":"2023-08-07T13:38:56.000Z","dependencies_parsed_at":"2023-01-18T04:00:39.920Z","dependency_job_id":null,"html_url":"https://github.com/ricardobranco777/hawk_test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ricardobranco777/hawk_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobranco777%2Fhawk_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobranco777%2Fhawk_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobranco777%2Fhawk_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobranco777%2Fhawk_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricardobranco777","download_url":"https://codeload.github.com/ricardobranco777/hawk_test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobranco777%2Fhawk_test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275649815,"owners_count":25503212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","hawk","selenium-python"],"created_at":"2025-01-10T22:53:18.462Z","updated_at":"2025-09-17T19:31:03.179Z","avatar_url":"https://github.com/ricardobranco777.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hawk_test\n\nThis Docker image runs a set of Selenium tests for testing [Hawk](https://github.com/ClusterLabs/hawk/)\n\n[![Build Status](https://travis-ci.com/ricardobranco777/hawk_test.svg?branch=master)](https://travis-ci.org/ricardobranco777/hawk_test)\n\n## Usage\n\n```\nusage: hawk_test.py [-h] [-b {firefox,chrome,chromium}] [-H HOST] [-S SLAVE]\n                    [-I VIRTUAL_IP] [-P PORT]\n                    [-s SECRET] [-r RESULTS] [--xvfb]\n```\n\n## Dependencies\n\n- OS packages:\n  - Xvfb (optional)\n  - Docker (optional)\n  - Firefox\n  - [Geckodriver](https://github.com/mozilla/geckodriver/releases)\n  - Chromium (optional)\n  - [Chromedriver](https://chromedriver.chromium.org/downloads) (optional)\n  - Python 3.6+\n- Python packages:\n  - paramiko\n  - selenium\n  - PyVirtualDisplay\n\n## Usage with Docker\n\nBuild image with:\n\n`docker build -t hawk_test -f Dockerfile.alpine`\n\nRun:\n\n```docker run --rm --ipc=host hawk_test --xvfb [OPTIONS]```\n\nIf you don't want to use the Xvfb headless mode:\n\n```\nxhost +\ndocker run --rm --ipc=host -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix hawk_test [OPTIONS]\n```\n\nNotes:\n  - You may want to add `--net=host` if you have problems with DNS resolution.\n\n## Options\n\n```\n  -h, --help            show this help message and exit\n  -b {firefox,chrome,chromium}, --browser {firefox,chrome,chromium}\n                        Browser to use in the test\n  -H HOST, --host HOST  Host or IP address where HAWK is running\n  -S SLAVE, --slave SLAVE\n                        Host or IP address of the slave\n  -I VIRTUAL_IP, --virtual-ip VIRTUAL_IP\n                        Virtual IP address in CIDR notation\n  -P PORT, --port PORT  TCP port where HAWK is running\n  -s SECRET, --secret SECRET\n                        root SSH Password of the HAWK node\n  -r RESULTS, --results RESULTS\n                        Generate hawk_test.results file for use with openQA.\n  --xvfb                Use Xvfb. Headless mode\n```\n\n## FAQ\n\n- Why Xvfb?\n  - The `-headless` in both browsers still have bugs, specially with modal dialogs.\n  - Having Xvfb prevents it from connecting to our X system.\n- Why docker?\n  - The Docker image packs the necessary dependencies in such a way that fits the compatibility matrix between Python, Selenium, Firefox (and Geckodriver) \u0026 Chromium (and Chromedriver).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardobranco777%2Fhawk_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricardobranco777%2Fhawk_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardobranco777%2Fhawk_test/lists"}