From 48d95c228a2e4f483c4602f31fb12d55e7e0da2c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 11 Sep 2018 15:02:02 +0200 Subject: [PATCH] creator instead of factory, as it does registration and authentication --- src/rest/{factory.js => creator.js} | 2 +- start.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/rest/{factory.js => creator.js} (98%) diff --git a/src/rest/factory.js b/src/rest/creator.js similarity index 98% rename from src/rest/factory.js rename to src/rest/creator.js index 2df6624ef9..05976552d0 100644 --- a/src/rest/factory.js +++ b/src/rest/creator.js @@ -19,7 +19,7 @@ const exec = util.promisify(require('child_process').exec); const request = require('request-promise-native'); const RestSession = require('./session'); -module.exports = class RestSessionFactory { +module.exports = class RestSessionCreator { constructor(synapseSubdir, hsUrl, cwd) { this.synapseSubdir = synapseSubdir; this.hsUrl = hsUrl; diff --git a/start.js b/start.js index c21fcd0a2d..e39681f71b 100644 --- a/start.js +++ b/start.js @@ -17,7 +17,7 @@ limitations under the License. const assert = require('assert'); const RiotSession = require('./src/session'); const scenario = require('./src/scenario'); -const RestSessionFactory = require('./src/rest/factory'); +const RestSessionCreator = require('./src/rest/creator'); const program = require('commander'); program @@ -41,14 +41,14 @@ async function runTests() { options.executablePath = path; } - const restFactory = new RestSessionFactory( + const restCreator = new RestSessionCreator( 'synapse/installations/consent', 'http://localhost:5005', __dirname ); function createRestSession(username, password) { - return restFactory.createSession(username, password); + return restCreator.createSession(username, password); } async function createSession(username) {