diff options
| author | kumar <kumar.damani@mail.utoronto.ca> | 2016-07-27 14:57:22 +0000 |
|---|---|---|
| committer | kumar <kumar.damani@mail.utoronto.ca> | 2016-07-27 14:57:22 +0000 |
| commit | b19b2306723289e511efdbeae451612ab09bba6f (patch) | |
| tree | 43913e761c4d2acfce2e4430cec86a828bfbef1a /test/dbTests/testingDocs.txt | |
| parent | 24b4fd8b77fa1952a355e8e1fe910cd21dd9234c (diff) | |
db test files added
Diffstat (limited to 'test/dbTests/testingDocs.txt')
| -rw-r--r-- | test/dbTests/testingDocs.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/dbTests/testingDocs.txt b/test/dbTests/testingDocs.txt new file mode 100644 index 0000000..cb1290b --- /dev/null +++ b/test/dbTests/testingDocs.txt @@ -0,0 +1,53 @@ +CREDIT TO: +http://www.json-generator.com/ + +*************************************** +User template: + +[ + { + 'repeat(50, 50)': { + serial: '{{index(1)}}', + name: { + first: '{{firstName()}}', + last: '{{surname()}}' + }, + user_name: function () { + return ('username' + this.serial); + }, + password: '{{objectId()}}', + phone: '+1 {{phone()}}', + email: function () { + // Email tag is deprecated, because now you can produce an email as simple as this: + return (this.name.first + '.' + this.name.last + '@' + this.name.first + this.name.last + '.com'); + } + } + } +] + +*************************************** +Exam template: + +[ + { + 'repeat(50, 50)': { + id: '{{index(1)}}' + serial: '{{integer(300, 325)}}', + course_code: function () { + return ('CSC' + this.serial); + }, + year: '{{integer(2012,2016)}}', + term: '{{random("fall", "winter", "summer")}}', + type: '{{random("final", "midterm")}}', + instructors: ['{{firstName()}} {{surname()}}', + '{{firstName()}} {{surname()}}'], + page_count: '{{integer(10,20)}}', + questions_count: function () { + return (this.page_count); + }, + uploaded_by: 'admin0' + } + } +] + +*************************************
\ No newline at end of file |
