diff options
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/exam.json | 58 | ||||
| -rw-r--r-- | test/data/user.json | 35 |
2 files changed, 93 insertions, 0 deletions
diff --git a/test/data/exam.json b/test/data/exam.json new file mode 100644 index 0000000..ac9c0dc --- /dev/null +++ b/test/data/exam.json @@ -0,0 +1,58 @@ +{ + "existing" : { + "_id": { + "$oid": "578a429640e1bf7e118a6b7b" + }, + "course_code": "CSC148", + "year": 2010, + "term": "fall", + "type": "midterm", + "instructors": [ + "Faith Ellen", + "Tom F." + ], + "page_count": 20, + "questions_count": 2, + "questions_list": [ + { + "q_id": 1, + "question": "this is q1" + }, + { + "q_id": 2, + "question": "this is q2" + } + ], + "upload_date": "some date", + "uploaded_by": "some user name" + }, + "nonExisting" : { + "_id": { + "$oid": "999999999999999999999999" + }, + "course_code": "CSC373", + "year": "2016", + "term": "Midterm", + "type": "Winter", + "instructors": [ + "Robert Dane" + ], + "page_count": "20", + "questions_count": "2", + "questions_list": [ + { + "q_id": 1, + "question": "Question 1" + }, + { + "q_id": 2, + "question": "Question 2" + } + ], + "upload_date": "2005-06-10", + "uploaded_by": [ + "humair", + "" + ] + } +}
\ No newline at end of file diff --git a/test/data/user.json b/test/data/user.json new file mode 100644 index 0000000..b8ca88d --- /dev/null +++ b/test/data/user.json @@ -0,0 +1,35 @@ +{ + "existingUser": { + "_id": { + "$oid": "57950d18543bc2fe7681f28c" + }, + "email": "kumar@kumar.com", + "user_name": "kumar", + "f_name": "KUMAR", + "l_name": "DAMANI", + "university": "", + "department": "", + "answered": 1, + "messages": 0, + "comments": 4, + "phone_num": "", + "followers": [] + }, + + "nonExistingUser": { + "_id": { + "$oid": "57950d18543bc2fe7681f28c" + }, + "email": "kumar@kumar.com", + "user_name": "kumarFake", + "f_name": "KUMAR", + "l_name": "DAMANI", + "university": "", + "department": "", + "answered": 1, + "messages": 0, + "comments": 4, + "phone_num": "", + "followers": [] + } +}
\ No newline at end of file |
