Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 597974fdb80bae280b4f27d2dd4f4f14e841fde3
https://github.com/tribe29/checkmk/commit/597974fdb80bae280b4f27d2dd4f4f14e…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-02-28 (Fri, 28 Feb 2020)
Changed paths:
A buildscripts/scripts/test-gui-crawl.jenkins
M tests-py3/Makefile
A tests-py3/gui_crawl/conftest.py
A tests-py3/gui_crawl/install-cmk.py
A tests-py3/gui_crawl/run-gui-crawl.py
A tests-py3/gui_crawl/test_gui_crawl.py
A tests-py3/testlib/containers.py
M tests/Makefile
M tests/conftest.py
R tests/integration/cmk/gui/test_crawl.py
M tests/testlib/site.py
M tests/testlib/utils.py
M tests/testlib/version.py
M tests/testlib/web_session.py
Log Message:
-----------
Containerize and Python 3 port GUI crawl test
* The GUI crawl is now executed in a containerized environment based on
our 19.04 OS image.
* The test is now executed with Python 3.
The procedure is like this now:
- To start the GUI crawl you have two targets:
make -C tests-py3 test-gui-crawl-docker
It creates a container and starts the GUI crawl in it. This is the
target that is started by the CI crawl job.
make -C tests-py3 test-gui-crawl
It starts the GUI crawl test on the local machine.
- The test-gui-crawl-docker target starts the script
tests-py3/gui_crawl/run-gui-crawl.py which first creates a GUI crawl
image based on the Ubuntu 19.04 OS image we use for other tests. It
basically installs the desired Checkmk version in image and stores the
result as derived image for later executions.
- Then run-gui-crawls.py starts a crawl container and executes the
second make target in the container:
make -C tests-py3 test-gui-crawl
- The target starts "pytest -T gui_crawl tests-py3/gui_crawl/test_gui_crawl.py"
which finally executes the crawl test using pytest.
- The results are stored in "/results" in the container context and
in "[tmp_path]/results" after executing the test. The final path can
be controlled by setting the environment variable RESULT_PATH. This
is done by the GUI crawl jenkins job to archive the resulting files.
Change-Id: Ifbe10a70f72612e313bf146c7e7d4a66dc023732