add logging to rest session actions
This commit is contained in:
parent
af255c6386
commit
6deb595fec
5 changed files with 58 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue