[mod] checker: add some additional tests

BTW: fix indentation by 2 spaces

The additional tests has been commented out in the google engines to not release
any CAPTCHA issues.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-01-26 12:48:59 +01:00
parent b1fefec40d
commit e436287385

View file

@ -117,6 +117,7 @@ checker:
# every: [86400, 90000] # how often the checker runs # every: [86400, 90000] # how often the checker runs
# additional tests: only for the YAML anchors (see the engines section) # additional tests: only for the YAML anchors (see the engines section)
additional_tests: additional_tests:
rosebud: &test_rosebud rosebud: &test_rosebud
matrix: matrix:
@ -127,6 +128,17 @@ checker:
- ['one_title_contains', 'citizen kane'] - ['one_title_contains', 'citizen kane']
test: test:
- unique_results - unique_results
android: &test_android
matrix:
query: ['android']
lang: ['en', 'de', 'fr', 'zh-CN']
result_container:
- not_empty
- ['one_title_contains', 'google']
test:
- unique_results
# tests: only for the YAML anchors (see the engines section) # tests: only for the YAML anchors (see the engines section)
tests: tests:
infobox: &tests_infobox infobox: &tests_infobox
@ -480,18 +492,32 @@ engines:
- name : google - name : google
engine : google engine : google
shortcut : go shortcut : go
# additional_tests:
# android: *test_android
- name : google images - name : google images
engine : google_images engine : google_images
shortcut : goi shortcut : goi
# additional_tests:
# android: *test_android
# dali:
# matrix:
# query: ['Dali Christ']
# lang: ['en', 'de', 'fr', 'zh-CN']
# result_container:
# - ['one_title_contains', 'Salvador']
- name : google news - name : google news
engine : google_news engine : google_news
shortcut : gon shortcut : gon
# additional_tests:
# android: *test_android
- name : google videos - name : google videos
engine : google_videos engine : google_videos
shortcut : gov shortcut : gov
# additional_tests:
# android: *test_android
- name : google scholar - name : google scholar
engine : xpath engine : xpath