add groups feature

This commit is contained in:
Denis barbaron
2019-06-12 10:29:07 +02:00
parent 6fd750dad5
commit 7f5dc4c152
119 changed files with 12416 additions and 402 deletions

14
lib/util/fakeuser.js Normal file
View File

@@ -0,0 +1,14 @@
/**
* Copyright © 2019 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
**/
const util = require('util')
const uuid = require('uuid')
const dbapi = require('../db/api')
module.exports.generate = function() {
const name = 'fakeuser-' + util.format('%s', uuid.v4()).replace(/-/g, '')
const email = name + '@openstf.com'
return dbapi.createUser(email, name, '127.0.0.1').return(email)
}