Module: check_mk
Branch: master
Commit: 5a952cea79d61c48ea388acf07830d3ec8ba4457
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5a952cea79d61c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 16 20:07:19 2018 +0200
Added some more tests for the GUI
* Integration: Add some basic tests to verify access to the Check_MK web URLs
* Unit tests: Add new for html() helpers
* Unit tests: Simplified and cleaned up existing tests
* Unit tests: Testing cookie setting / deleting
Change-Id: I4cf86abbf10e26680db1cc3ae9f5d3d6ed17df36
---
tests/integration/omd/test_web_access.py | 83 +
tests/unit/web/auto_build_test.py | 179 --
tests/unit/web/auto_refactor.py | 264 ---
tests/unit/web/class_deprecated_renderer.py | 780 ------
tests/unit/web/classes.py | 181 --
tests/unit/web/conftest.py | 20 +
tests/unit/web/generate_integration.py | 314 ---
tests/unit/web/old/classes.py | 94 +
tests/unit/web/{ => old}/html_tests.py | 79 +-
tests/unit/web/{ => old}/test_integration.py | 18 +-
.../{ => old}/unittest_files/body_start.unittest | 8 +-
.../web/{ => old}/unittest_files/button.unittest | 0
.../{ => old}/unittest_files/buttonlink.unittest | 0
.../web/{ => old}/unittest_files/checkbox.unittest | 0
.../unittest_files/context_button_test.unittest | 1153 +++++++++
.../unittest_files/default_html_headers.unittest | 0
.../{ => old}/unittest_files/empty_icon.unittest | 0
.../web/{ => old}/unittest_files/header.unittest | 16 +-
.../web/{ => old}/unittest_files/help.unittest | 0
.../{ => old}/unittest_files/hidden_field.unittest | 0
.../{ => old}/unittest_files/html_foot.unittest | 0
.../{ => old}/unittest_files/html_head.unittest | 14 +-
.../web/{ => old}/unittest_files/icon.unittest | 2 +-
.../{ => old}/unittest_files/icon_button.unittest | 0
.../{ => old}/unittest_files/icon_select.unittest | 0
.../{ => old}/unittest_files/javascript.unittest | 0
.../unittest_files/javascript_file.unittest | 0
.../{ => old}/unittest_files/play_sound.unittest | 0
.../unittest_files/popup_trigger.unittest | 0
.../{ => old}/unittest_files/radiobuttons.unittest | 0
.../{ => old}/unittest_files/render_icon.unittest | 2 +-
.../unittest_files/render_icon_button.unittest | 0
.../web/{ => old}/unittest_files/select.unittest | 0
.../{ => old}/unittest_files/stylesheet.unittest | 0
.../web/{ => old}/unittest_files/test_1.unittest | 0
.../web/{ => old}/unittest_files/test_2.unittest | 0
.../web/{ => old}/unittest_files/test_3.unittest | 0
.../{ => old}/unittest_files/text_area.unittest | 0
.../{ => old}/unittest_files/text_input.unittest | 0
.../{ => old}/unittest_files/top_heading.unittest | 2 +-
.../unittest_files/top_heading_left.unittest | 0
.../unittest_files/top_heading_right.unittest | 2 +-
tests/unit/web/test_escaping.py | 49 -
tests/unit/web/test_html.sh | 6 -
tests/unit/web/test_html_tests.py | 110 -
tests/unit/web/test_htmllib_Encoder.py | 66 +
tests/unit/web/test_htmllib_Escaper.py | 56 +
.../web/{test_html.py => test_htmllib_HTML.py} | 17 +-
..._generator.py => test_htmllib_HTMLGenerator.py} | 27 +-
tests/unit/web/test_htmllib_OutputFunnel.py | 45 +-
tests/unit/web/test_htmllib_TimeoutManager.py | 29 +
tests/unit/web/test_htmllib_TransactionManager.py | 89 +
tests/unit/web/test_http.py | 84 +
tests/unit/web/test_request_handler.py | 107 -
tests/unit/web/test_table.py | 133 +-
.../unittest_files/context_button_test.unittest | 2496 --------------------
tests/unit/web/unittest_generation/README.md | 24 -
.../unit/web/unittest_generation/checkbox.testgen | 13 -
tests/unit/web/unittest_generation/help.testgen | 3 -
web/htdocs/htmllib.py | 2 +-
60 files changed, 1790 insertions(+), 4777 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=5a952cea79…