Skip to content

Commit

Permalink
Update DB test data to use the correct Mongo classes
Browse files Browse the repository at this point in the history
  • Loading branch information
anotheroneofthese committed Oct 25, 2024
1 parent e9d9ac5 commit db240f5
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions docker/mongo/mongo-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,50 @@ db.createCollection('items');
db.items.insertOne({
"hostName": "AXIELL",
"hostId": "item-12345",
"category": "BOOK",
"itemCategory": "BOOK",
"description": "Tyv etter loven",
"packaging": "NONE",
"location": "SYNQ_WAREHOUSE",
"quantity": 1,
"preferredEnvironment": "NONE",
"owner": "NB",
"_class": "no.nb.mlt.wls.domain.model.Item"
"_class": "no.nb.mlt.wls.infrastructure.repositories.item.MongoItem"
})

db.items.insertOne({
"hostName": "AXIELL",
"hostId": "item-54321",
"itemCategory": "BOOK",
"description": "Tyv etter loven",
"packaging": "NONE",
"location": "SYNQ_WAREHOUSE",
"quantity": 1,
"preferredEnvironment": "NONE",
"owner": "NB",
"_class": "no.nb.mlt.wls.infrastructure.repositories.item.MongoItem"
})


db.createCollection('orders')

db.orders.insertOne({
"hostName": "AXIELL",
"hostOrderId": "order-12345",
"status": "NOT_STARTED",
"orderLine": [
{
"hostId": "item-12345",
"status": "NOT_STARTED"
}
],
"orderType": "LOAN",
"owner": "NB",
"receiver": {
"name": "Doug Doug",
"address": "Somewhere in the United States"
},
"callbackUrl": "https://example.com/send/callback/here",
"_class": "no.nb.mlt.wls.infrastructure.repositories.order.MongoOrder"
})

print('END #################################################################');

0 comments on commit db240f5

Please sign in to comment.