-
Notifications
You must be signed in to change notification settings - Fork 1
Mock Data Set
anthonyjchriste edited this page Oct 1, 2015
·
3 revisions
- Create 30
boxdocuments
- With
device_id= 0 <=device_id< 30 - With
secret_key= "secret[device_id]" - With random valid
access_modifiers (see here)
- Create 10
opq_userdocuments
- With
email= "[a..j]@a.com"
-
For each
box, choose a random owner -
For each
opq_user, choose randomly other boxes to subscribe to that that user doesn't already own
- Check
access_modifiers of said box, if it'sPUBLIC, then subscribe - If it's
SUBSCRIBE, send asubscription_request - Provide a random status for
subscription_request. One ofPENDING,APPROVED, orDENIED - If the
subscription_requestis approved, go ahead and subscribe - If the
subscription_requestis pending or denied, do not subscribe
- For each device, generate 50-150 events over time period
- Each event for that device will take place after device was created
- Events will be sorted by timestamp for each device when inserted into device document