add logging to rest session actions

This commit is contained in:
Bruno Windels 2018-09-14 12:17:22 +02:00
parent af255c6386
commit 6deb595fec
5 changed files with 58 additions and 16 deletions

View file

@ -27,10 +27,10 @@ module.exports = class RestSessionCreator {
this.cwd = cwd;
}
async createSessionRange(usernames, password) {
async createSessionRange(usernames, password, groupName) {
const sessionPromises = usernames.map((username) => this.createSession(username, password));
const sessions = await Promise.all(sessionPromises);
return new RestMultiSession(sessions);
return new RestMultiSession(sessions, groupName);
}
async createSession(username, password) {