From 16a889dd8f4886cedf92a008ca89724bba0992dd Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 29 Dec 2020 11:01:35 +0100 Subject: [enh] checker: add rosebud test --- searx/settings.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'searx/settings.yml') diff --git a/searx/settings.yml b/searx/settings.yml index 30afbf957..f0ec05542 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -102,6 +102,17 @@ outgoing: # communication with search engines # - "HTTPS rewrite" # - ... +additional_tests: + rosebud: &test_rosebud + matrix: + query: rosebud + lang: en + result_container: + - not_empty + - [one_title_contains', 'citizen kane'] + test: + - unique_results + engines: - name: apk mirror engine: apkmirror @@ -278,6 +289,8 @@ engines: engine : etools shortcut : eto disabled : True + additional_tests: + rosebud: *test_rosebud - name : etymonline engine : xpath @@ -343,6 +356,8 @@ engines: shortcut : gb timeout : 3.0 disabled: True + additional_tests: + rosebud: *test_rosebud - name : gentoo engine : gentoo @@ -646,6 +661,8 @@ engines: shortcut : qw categories : general disabled : True + additional_tests: + rosebud: *test_rosebud - name : qwant images engine : qwant @@ -745,6 +762,8 @@ engines: shortcut : sp timeout : 6.0 disabled : True + additional_tests: + rosebud: *test_rosebud - name : tokyotoshokan engine : tokyotoshokan @@ -856,6 +875,8 @@ engines: number_of_results : 5 search_type : text disabled : True + additional_tests: + rosebud: *test_rosebud - name : wikisource engine : mediawiki -- cgit v1.2.3 From ca0889d488d232d357baacc8f16320c74333092c Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 29 Dec 2020 11:02:18 +0100 Subject: [enh] checker: wikidata & ddd: add specific tests --- searx/settings.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'searx/settings.yml') diff --git a/searx/settings.yml b/searx/settings.yml index f0ec05542..3094fc7a7 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -113,6 +113,14 @@ additional_tests: test: - unique_results +tests: + infobox: &tests_infobox + infobox: + matrix: + query: ["linux", "new york", "bbc"] + result_container: + - has_infobox + engines: - name: apk mirror engine: apkmirror @@ -229,6 +237,7 @@ engines: shortcut : ddd weight : 2 disabled : True + tests: *tests_infobox # cloudflare protected # - name : digbt @@ -273,6 +282,7 @@ engines: shortcut : wd timeout : 3.0 weight : 2 + tests: *tests_infobox - name : duckduckgo engine : duckduckgo -- cgit v1.2.3 From 3a9f513521d006a7939538cce368d7b799e32c30 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 5 Jan 2021 11:24:39 +0100 Subject: [enh] checker: background check See settings.yml for the options SIGUSR1 signal starts the checker. The result is available at /stats/checker --- searx/settings.yml | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) (limited to 'searx/settings.yml') diff --git a/searx/settings.yml b/searx/settings.yml index 3094fc7a7..55c9849c1 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -102,24 +102,33 @@ outgoing: # communication with search engines # - "HTTPS rewrite" # - ... -additional_tests: - rosebud: &test_rosebud - matrix: - query: rosebud - lang: en - result_container: - - not_empty - - [one_title_contains', 'citizen kane'] - test: - - unique_results - -tests: - infobox: &tests_infobox - infobox: - matrix: - query: ["linux", "new york", "bbc"] - result_container: - - has_infobox +checker: + # disable checker when in debug mode + off_when_debug: True + # scheduling: interval or int + # use "scheduling: False" to disable scheduling + scheduling: + start_after: [300, 1800] # delay to start the first run of the checker + every: [86400, 90000] # how often the checker runs + # additional tests: only for the YAML anchors (see the engines section) + additional_tests: + rosebud: &test_rosebud + matrix: + query: rosebud + lang: en + result_container: + - not_empty + - ['one_title_contains', 'citizen kane'] + test: + - unique_results + # tests: only for the YAML anchors (see the engines section) + tests: + infobox: &tests_infobox + infobox: + matrix: + query: ["linux", "new york", "bbc"] + result_container: + - has_infobox engines: - name: apk mirror -- cgit v1.2.3