Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion tests/js/client/fuzz/http-fuzz-fp.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@

const jsunity = require("jsunity");
const internal = require('internal');
const fs = require('fs');
const IM = global.instanceManager;

const ct = require('@arangodb/testutils/client-tools');

const wordListForRoute = [
"/_db", "/_admin", "/_api", "/_system", "/_cursor", "/version", "/status",
Expand Down Expand Up @@ -84,15 +85,36 @@ const wordListForKeys = [
"random"
];

const messages = [
"creating data",
"cleaning up"
];

////////////////////////////////////////////////////////////////////////////////
/// @brief Http Request Fuzzer suite
////////////////////////////////////////////////////////////////////////////////
function httpRequestsFuzzerTestSuite() {
return {
setUpAll: function () {
let moreargv = [];
let logFile = fs.join(fs.getTempPath(), `rta_out_create.log`);
let rc = ct.run.rtaMakedata(IM.options, IM, 0, messages[0], logFile, moreargv);
if (!rc.status) {
let rx = new RegExp(/\\n/g);
throw("http_fuzz: failed to create testdatas:\n" + fs.read(logFile).replace(rx, '\n'));
}

IM.rememberConnection();
},
tearDown: function () {
let moreargv = [];
let logFile = fs.join(fs.getTempPath(), `rta_out_clean.log`);
let rc = ct.run.rtaMakedata(IM.options, IM, 2, messages[1], logFile, moreargv);
if (!rc.status) {
let rx = new RegExp(/\\n/g);
print("http_fuzz: failed to clear testdatas:\n" + fs.read(logFile).replace(rx, '\n'));
}

IM.gatherNetstat();
IM.printNetstat();
},
Expand Down
4 changes: 2 additions & 2 deletions tests/test-definitions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ dump_with_crashes_non_parallel size=medium parallelity=1 priority=2000 -- --dump
audit_client,audit_server enterprise name=audit -- --dumpAgencyOnError true

# Full Tests Single Server
shell_fuzzer full !coverage cluster priority=500 parallelity=6 -- --dumpAgencyOnError true
shell_fuzzer full !coverage single priority=500 -- --dumpAgencyOnError true
shell_fuzzer full !coverage cluster priority=500 parallelity=6 size=big -- --dumpAgencyOnError true --extraArgs:experimental-vector-index true
shell_fuzzer full !coverage single priority=500 -- --dumpAgencyOnError true --extraArgs:experimental-vector-index true
authentication_parameters single full priority=1000
config single full priority=1000
foxx_manager single full priority=500
Expand Down