on master help sign in
[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>

commite436287385d448eb54f80398bc181598333cf6be authorMarkus Heiser <markus.heiser@darmarit.de> dateTue 26 Jan 2021, 12:48 (6 years ago) parentb1fefec
1 file changed+42−16
searx/settings.yml+42−16
searx/settings.yml+42−16
@@ -109,7 +109,7 @@ checker:
109109 # scheduling: interval or int
110110 # use "scheduling: False" to disable scheduling
111111 # to activate the scheduler:
112− # * uncomment "scheduling" section
112+ # * uncomment "scheduling" section
113113 # * add "cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1" to your uwsgi.ini
114114
115115 # scheduling:
@@ -117,24 +117,36 @@ checker:
117117 # every: [86400, 90000] # how often the checker runs
118118
119119 # additional tests: only for the YAML anchors (see the engines section)
120+
120121 additional_tests:
121− rosebud: &test_rosebud
122− matrix:
123− query: rosebud
124− lang: en
125− result_container:
126− - not_empty
127− - ['one_title_contains', 'citizen kane']
128− test:
129− - unique_results
122+ rosebud: &test_rosebud
123+ matrix:
124+ query: rosebud
125+ lang: en
126+ result_container:
127+ - not_empty
128+ - ['one_title_contains', 'citizen kane']
129+ test:
130+ - unique_results
131+
132+ android: &test_android
133+ matrix:
134+ query: ['android']
135+ lang: ['en', 'de', 'fr', 'zh-CN']
136+ result_container:
137+ - not_empty
138+ - ['one_title_contains', 'google']
139+ test:
140+ - unique_results
141+
130142 # tests: only for the YAML anchors (see the engines section)
131143 tests:
132− infobox: &tests_infobox
133− infobox:
134− matrix:
135− query: ["linux", "new york", "bbc"]
136− result_container:
137− - has_infobox
144+ infobox: &tests_infobox
145+ infobox:
146+ matrix:
147+ query: ["linux", "new york", "bbc"]
148+ result_container:
149+ - has_infobox
138150
139151engines:
140152 - name: apk mirror
@@ -480,18 +492,32 @@ engines:
480492 - name : google
481493 engine : google
482494 shortcut : go
495+ # additional_tests:
496+ # android: *test_android
483497
484498 - name : google images
485499 engine : google_images
486500 shortcut : goi
501+ # additional_tests:
502+ # android: *test_android
503+ # dali:
504+ # matrix:
505+ # query: ['Dali Christ']
506+ # lang: ['en', 'de', 'fr', 'zh-CN']
507+ # result_container:
508+ # - ['one_title_contains', 'Salvador']
487509
488510 - name : google news
489511 engine : google_news
490512 shortcut : gon
513+ # additional_tests:
514+ # android: *test_android
491515
492516 - name : google videos
493517 engine : google_videos
494518 shortcut : gov
519+ # additional_tests:
520+ # android: *test_android
495521
496522 - name : google scholar
497523 engine : xpath