added user status and prediction user
This commit is contained in:
@ -734,11 +734,13 @@
|
||||
"group": "VN",
|
||||
"models": [
|
||||
{
|
||||
"_id": {"$oid":"120000000000000000000001"},
|
||||
"name": "Model A",
|
||||
"url": "http://model-a.com",
|
||||
"label": "ml/g"
|
||||
},
|
||||
{
|
||||
"_id": {"$oid":"120000000000000000000002"},
|
||||
"name": "Model B",
|
||||
"url": "http://model-b.com",
|
||||
"label": "ml/g"
|
||||
@ -749,6 +751,7 @@
|
||||
"group": "Moisture",
|
||||
"models": [
|
||||
{
|
||||
"_id": {"$oid":"120000000000000000000003"},
|
||||
"name": "Model 1",
|
||||
"url": "http://model-1.com",
|
||||
"label": "weight %"
|
||||
@ -765,7 +768,9 @@
|
||||
"level": "read",
|
||||
"location": "Rng",
|
||||
"devices": ["Alpha I"],
|
||||
"models": [],
|
||||
"key": "000000000000000000001001",
|
||||
"status": "new",
|
||||
"__v": 0
|
||||
},
|
||||
{
|
||||
@ -776,7 +781,9 @@
|
||||
"level": "write",
|
||||
"location": "Rng",
|
||||
"devices": ["Alpha I"],
|
||||
"models": [],
|
||||
"key": "000000000000000000001002",
|
||||
"status": "new",
|
||||
"__v": 0
|
||||
},
|
||||
{
|
||||
@ -787,7 +794,9 @@
|
||||
"level": "admin",
|
||||
"location": "Rng",
|
||||
"devices": [""],
|
||||
"models": [],
|
||||
"key": "000000000000000000001003",
|
||||
"status": "new",
|
||||
"__v": "0"
|
||||
},
|
||||
{
|
||||
@ -798,7 +807,35 @@
|
||||
"level": "write",
|
||||
"location": "Fe",
|
||||
"devices": ["Alpha I"],
|
||||
"models": [],
|
||||
"key": "000000000000000000001004",
|
||||
"status": "new",
|
||||
"__v": 0
|
||||
},
|
||||
{
|
||||
"_id": {"$oid":"000000000000000000000005"},
|
||||
"email": "customer@company.com",
|
||||
"name": "customer",
|
||||
"pass": "$2a$10$di26XKF63OG0V00PL1kSK.ceCcTxDExBMOg.jkHiCnXcY7cN7DlPi",
|
||||
"level": "predict",
|
||||
"location": "Fe",
|
||||
"devices": [],
|
||||
"models": [{"$oid":"120000000000000000000001"}],
|
||||
"key": "000000000000000000001005",
|
||||
"status": "new",
|
||||
"__v": 0
|
||||
},
|
||||
{
|
||||
"_id": {"$oid":"000000000000000000000006"},
|
||||
"email": "customerold@company2.com",
|
||||
"name": "customerold",
|
||||
"pass": "$2a$10$di26XKF63OG0V00PL1kSK.ceCcTxDExBMOg.jkHiCnXcY7cN7DlPi",
|
||||
"level": "predict",
|
||||
"location": "Fe",
|
||||
"devices": [],
|
||||
"models": [{"$oid":"120000000000000000000001"}],
|
||||
"key": "000000000000000000001006",
|
||||
"status": "deleted",
|
||||
"__v": 0
|
||||
}
|
||||
],
|
||||
|
@ -11,7 +11,8 @@ export default class TestHelper {
|
||||
admin: {pass: 'Abc123!#', key: '000000000000000000001003', id: '000000000000000000000003'},
|
||||
janedoe: {pass: 'Xyz890*)', key: '000000000000000000001002', id: '000000000000000000000002'},
|
||||
user: {pass: 'Xyz890*)', key: '000000000000000000001001', id: '000000000000000000000001'},
|
||||
johnnydoe: {pass: 'Xyz890*)', key: '000000000000000000001004', id: '000000000000000000000004'}
|
||||
johnnydoe: {pass: 'Xyz890*)', key: '000000000000000000001004', id: '000000000000000000000004'},
|
||||
customer: {pass: 'Xyz890*)', key: '000000000000000000001005', id: '000000000000000000000005'}
|
||||
}
|
||||
|
||||
public static res = { // default responses
|
||||
|
Reference in New Issue
Block a user