Archived
2

sample number generation

This commit is contained in:
VLE2FE
2020-05-18 09:58:15 +02:00
parent ec03e0699c
commit fe6e82f00b
9 changed files with 121 additions and 77 deletions

View File

@ -51,7 +51,7 @@
},
{
"_id": {"$oid":"400000000000000000000005"},
"number": "33",
"number": "Rng33",
"type": "granulate",
"color": "black",
"batch": "1653000308",
@ -250,7 +250,7 @@
{
"_id": {"$oid":"700000000000000000000002"},
"sample_id": {"$oid":"400000000000000000000002"},
"number": "A3",
"number": "A1",
"parameters": {
"material": "copper",
"weeks": 3
@ -262,7 +262,7 @@
{
"_id": {"$oid":"700000000000000000000003"},
"sample_id": {"$oid":"400000000000000000000004"},
"number": "A4",
"number": "A1",
"parameters": {
"material": "copper",
"weeks": 3
@ -274,7 +274,7 @@
{
"_id": {"$oid":"700000000000000000000004"},
"sample_id": {"$oid":"400000000000000000000001"},
"number": "A6",
"number": "A2",
"parameters": {
"material": "hot air",
"weeks": 5
@ -446,6 +446,17 @@
"device_name": "",
"key": "000000000000000000001003",
"__v": "0"
},
{
"_id": {"$oid":"000000000000000000000004"},
"email": "johnny.doe@bosch.com",
"name": "johnnydoe",
"pass": "$2a$10$di26XKF63OG0V00PL1kSK.ceCcTxDExBMOg.jkHiCnXcY7cN7DlPi",
"level": "write",
"location": "Fe",
"device_name": "Alpha I",
"key": "000000000000000000001004",
"__v": 0
}
]
}

View File

@ -7,7 +7,8 @@ export default class TestHelper {
public static auth = {
admin: {pass: 'Abc123!#', key: '000000000000000000001003'},
janedoe: {pass: 'Xyz890*)', key: '000000000000000000001002'},
user: {pass: 'Xyz890*)', key: '000000000000000000001001'}
user: {pass: 'Xyz890*)', key: '000000000000000000001001'},
johnnydoe: {pass: 'Xyz890*)', key: '000000000000000000001004'}
}
public static res = {
400: {status: 'Bad request'},