Skip to content
anthonyjchriste edited this page Oct 1, 2015 · 3 revisions

0.1 - initial mock data set (time period, two months 07/30/15 01:00:00 to 09/30/15 01:00:00)

  1. Create 30 box documents
  • With device_id = 0 <= device_id < 30
  • With secret_key = "secret[device_id]"
  • With random valid access_modifiers (see here)
  1. Create 10 opq_user documents
  • With email = "[a..j]@a.com"
  1. For each box, choose a random owner

  2. 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's PUBLIC, then subscribe
  • If it's SUBSCRIBE, send a subscription_request
  • Provide a random status for subscription_request. One of PENDING, APPROVED, or DENIED
  • If the subscription_request is approved, go ahead and subscribe
  • If the subscription_request is pending or denied, do not subscribe
  1. 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

Clone this wiki locally