Skip to content
Snippets Groups Projects
Commit 75ac1af3 authored by Davide Aprea's avatar Davide Aprea
Browse files

add doc

parent fcc86f41
No related branches found
No related tags found
3 merge requests!1895Development,!1775Development,!1769Resolve "add stress test"
......@@ -10,13 +10,22 @@ use LaravelLocalization;
use Log;
use View;
/* The controller uses the MetaGers dummy engine ( documentation: https:\/\/gitlab.metager.de\/open-source\/dummy-engine )
* to generate a list of test results for stress testing purposes at "/admin/stress".
* For local testing go to config/stress.json and change sumas->dummy->host to "dummy-nginx".
* To activate browser and human verfication use the following route: "/admin/stress/verify".
*/
class Stresstest extends MetaGerSearch
{
public function index(Request $request, MetaGer $metager, $timing = false)
{
# adds / replaces query input with a random string to avoid cached results
$request->merge(["eingabe" => "test" . rand()]);
# deactivates adgoal
$metager->setDummy(true);
$metager->setAdgoalHash(true);
parent::search($request, $metager, $timing);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment