diff options
author | 2017-08-07 11:39:39 +0800 | |
---|---|---|
committer | 2017-08-07 11:39:39 +0800 | |
commit | 21d72c4a80fe2937d0c4ddd20624b27adbcd989b (patch) | |
tree | e5013ee12f74f8452e01cbff16e7b0158bc456cb /common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js | |
parent | f533e73e2ae32e010b16abdcf7985abaf31ab843 (diff) |
Upload the ESR GUI seed code
Issue-ID: AAI-68
Change-Id: Ia50ce0570c2fabecd77199d4e8454f56fe587c4e
Signed-off-by: lizi00164331 <li.zi30@zte.com.cn>
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js')
-rw-r--r-- | common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js new file mode 100644 index 0000000..7beafd9 --- /dev/null +++ b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js @@ -0,0 +1,101 @@ +var ObjectId = require('mongodb').ObjectID; + +exports.users = [ + { + _id: new ObjectId(), + username: "test", + pass_hash: 12374238719845134515, + }, + { + _id: new ObjectId(), + username: "test2", + pass_hash: 1237987381263189273123, + } +]; + +exports.movies = [ + { + _id: new ObjectId(), + title: "Title1", + year: 2012, + meta: { + productionco: "idk", + director: exports.users[1]._id, + }, + creator: exports.users[0]._id, + secret: "A SECRET STRING", + }, + { + _id: new ObjectId(), + title: "Title2", + year: 2011 + }, + { + _id: new ObjectId(), + title: "Title3", + year: 2013 + }, + { + _id: new ObjectId(), + title: "Title4", + year: 2013 + }, + { + _id: new ObjectId(), + title: "Title5", + year: 2013 + }, + { + _id: new ObjectId(), + title: "Title6", + year: 2010 + }, + { + _id: new ObjectId(), + title: "Title7", + year: 2011 + }, + { + _id: new ObjectId(), + title: "Title8", + year: 2012 + }, + { + _id: new ObjectId(), + title: "Title9", + year: 2010 + }, + { + _id: new ObjectId(), + title: "Title10", + year: 2011 + }, + { + _id: new ObjectId(), + title: "Title11", + year: 2012 + }, + { + _id: new ObjectId(), + title: "Title12", + year: 2010 + }, + { + _id: new ObjectId(), + title: "Title13", + year: 2011 + }, + { + _id: new ObjectId(), + title: "Title14", + year: 2009 + } +]; + +exports.reviews = [ + { + _id: new ObjectId(), + body: "This is a movie review!", + length: 127 + } +]; |