mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
tests: fix for fuzz tests (#4068)
This commit is contained in:
parent
0b7ace83d5
commit
71bffed190
3 changed files with 433 additions and 433 deletions
860
src/package-lock.json
generated
860
src/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -2,12 +2,12 @@
|
||||||
* Fuzz testing the import endpoint
|
* Fuzz testing the import endpoint
|
||||||
*/
|
*/
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const settings = require(__dirname+'/../../loadSettings').loadSettings();
|
const settings = require(__dirname+'/../../../../tests/container/loadSettings.js').loadSettings();
|
||||||
const host = "http://" + settings.ip + ":" + settings.port;
|
const host = "http://" + settings.ip + ":" + settings.port;
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const async = require(__dirname+'/../../../../src/node_modules/async');
|
const async = require(__dirname+'/../../../../src/node_modules/async');
|
||||||
const request = require('request');
|
const request = require('request');
|
||||||
const froth = require('mocha-froth');
|
const froth = require(__dirname+'/../../../../src/node_modules/mocha-froth');
|
||||||
|
|
||||||
var filePath = path.join(__dirname, '../../../../APIKEY.txt');
|
var filePath = path.join(__dirname, '../../../../APIKEY.txt');
|
||||||
var apiKey = fs.readFileSync(filePath, {encoding: 'utf-8'});
|
var apiKey = fs.readFileSync(filePath, {encoding: 'utf-8'});
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const supertest = require(__dirname+'/../../../../src/node_modules/supertest');
|
const supertest = require(__dirname+'/../../../../src/node_modules/supertest');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const settings = require(__dirname+'/../../loadSettings').loadSettings();
|
const settings = require(__dirname+'/../../../../tests/container/loadSettings.js').loadSettings();
|
||||||
const host = 'http://127.0.0.1:'+settings.port;
|
const host = 'http://127.0.0.1:'+settings.port;
|
||||||
const api = supertest('http://'+settings.ip+":"+settings.port);
|
const api = supertest('http://'+settings.ip+":"+settings.port);
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue