forked from sensiblecodeio/custard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixtures.js
172 lines (168 loc) · 9.1 KB
/
fixtures.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// To use these, install the mongo fixtures utility
// npm install pow-mongodb-fixtures -g
// and install mongodb locally, ensure it's runnning!
exports.users = [
{
shortName: 'test',
email: ['[email protected]'],
displayName: 'Test Testofferson',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: 'test',
isStaff: false,
sshKeys: [],
accountLevel: "free",
canBeReally: ['test'],
recurlyAccount: "test-2423432",
acceptedTerms: 1,
},
{
shortName: 'teststaff',
email: ['[email protected]'],
displayName: 'General Test Testington',
password: '$2a$10$CFjsDLWeS1x5BiX0mLulnOH97vop1KwUmzPnx5NvmZ1oda.LZNXNm',
apikey: 'teststaff',
isStaff: true,
sshKeys: [],
accountLevel: "free",
recurlyAccount: "testsdfs-2423432",
canBeReally: ['teststaff'],
acceptedTerms: 1
},
{
shortName: 'ehg',
email: ['[email protected]'],
displayName: 'Chris Blower',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: process.env.COTEST_STAFF_API_KEY,
isStaff: true,
sshKeys: [],
accountLevel: "grandfather",
recurlyAccount: "ehg-2423432",
acceptedTerms: 1,
canBeReally: ['ehg', 'test'],
defaultContext: "ehg"
},
{
shortName: 'ickletest',
email: ['[email protected]'],
displayName: 'Ickle Test',
password: '$2a$10$zGJXsNwhOBvze9GDm.jeEuLBX.TciRIKxNXfslxe5TZ.9/fDgpeDu',
apikey: process.env.COTEST_USER_API_KEY,
isStaff: false,
sshKeys: ['a', 'b', 'c'],
accountLevel: "free",
recurlyAccount: "ickletest-242363",
acceptedTerms: 1,
canBeReally: ['ickletest', 'test', 'ehg'],
defaultContext: "ickletest"
},
{
shortName: 'nopassword',
email: ['[email protected]'],
displayName: 'Ickle Test',
apikey: 'nopassowrd',
isStaff: false,
sshKeys: ['a', 'b', 'c'],
accountLevel: "free",
recurlyAccount: "nopassword-242325",
acceptedTerms: 1
},
{
shortName: 'zarino',
email: ['[email protected]'],
displayName: 'Zarino Testington',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: 'zarino',
sshKeys: ['d', 'e', 'f'],
isStaff: false,
accountLevel: "grandfather",
recurlyAccount: "zarino-2423348",
acceptedTerms: 1
},
{
shortName: 'mrgreedy',
email: ['[email protected]'],
displayName: 'Mr F Greedy',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: 'mrgreedy',
sshKeys: [],
isStaff: false,
accountLevel: "free",
recurlyAccount: "mrgreedy-1045756",
acceptedTerms: 1
},
{
shortName: 'mrlazy',
email: ['[email protected]'],
displayName: 'Longtime NoSee',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: 'mrlazy',
sshKeys: [],
isStaff: false,
accountLevel: "free",
recurlyAccount: "mrlazy-2319852"
},
{
shortName: 'testersonltd',
email: ['[email protected]'],
displayName: 'Testerson & Sons Ltd',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: 'testsersonsdf',
sshKeys: [],
isStaff: false,
accountLevel: "large",
canBeReally: ['tinat'],
recurlyAccount: "testersonltd-2319852"
},
{
shortName: 'tinat',
email: ['[email protected]'],
displayName: 'Tina Testerson NVQ',
password: '$2a$10$EWqKC.kk2vYtmkW4fdCk7OxcnvZbd5SXwszHK6LQRlh59PYQK1hBm',
apikey: 'tinat',
sshKeys: [],
isStaff: false,
accountLevel: "free",
recurlyAccount: "tinat-1045756",
defaultContext: "testersonltd",
acceptedTerms: 1
},
];
exports.tokens = [
{
token: "339231725782156",
shortName: "ickletest"
}
]
exports.tools = [
{ name: "newdataset", public: true, type: "importer", gitUrl: "https://github.com/scraperwiki/newdataset-tool.git", manifest: { description: "Create a new, empty dataset", displayName: "Code a dataset!", color: "#555", icon: "https://s3-eu-west-1.amazonaws.com/sw-icons/tool-icon-code.png" } },
{ name: "test-app", public: true, type: "importer", gitUrl: "https://github.com/scraperwiki/test-app-tool.git", manifest: { description: "Test app", displayName: "Test app" } },
{ name: "test-plugin", public: true, type: "view", gitUrl: "https://github.com/scraperwiki/test-plugin-tool.git", manifest: { description: "Test plugin", displayName: "Test plugin" } },
{ name: "test-push", public: true, type: "importer", gitUrl: "https://github.com/scraperwiki/test-push-tool.git", manifest: { description: "Test push", displayName: "Test push" } },
{ name: "spreadsheet-download", public: true, type: "view", gitUrl: "https://github.com/scraperwiki/spreadsheet-download-tool", manifest: { description: "Download your dataset as an Excel file", displayName: "Download as spreadsheet", color: "#029745", icon: "https://s3-eu-west-1.amazonaws.com/sw-icons/tool-icon-spreadsheet-upload.png" } },
{ name: "newview", public: true, type: "view", gitUrl: "git://github.com/scraperwiki/newview-tool.git", manifest: { description: "Visualise or export your dataset however you'd like. A blank slate. Get creative!", displayName: "Code your own view!", color: "#555", icon: "https://s3-eu-west-1.amazonaws.com/sw-icons/tool-icon-code.png" } },
{ name: "view-source", public: true, type: "view", gitUrl: "git://github.com/scraperwiki/view-source-tool.git", manifest: { description: "Find out how to see the code that powers your dataset", displayName: "View source" } },
{ name: "view-data", public: true, type: "view", gitUrl: "git://github.com/scraperwiki/spreadsheet-tool.git", manifest: { description: "See your data in a spreadsheet. Like it's 1990.", displayName: "View data" } },
{ name: "spreadsheet-upload", public: true, type: "importer", gitUrl: "git://github.com/scraperwiki/spreadsheet-upload-tool.git", manifest: { description: "Upload an Excel file or CSV", displayName: "Upload a spreadsheet", color: "#029745", icon: "https://s3-eu-west-1.amazonaws.com/sw-icons/tool-icon-spreadsheet-upload.png" } },
{ name: "view-source-pro", public: true, type: "view", gitUrl: "git://github.com/zarino/view-source-tool.git", manifest: { description: "Browse the filesystem behind ScraperWiki a dataset and see how it ticks.", displayName: "View source: Pro" } },
{ name: "datatables-view-tool", public: true, type: "view", gitUrl: "https://github.com/scraperwiki/datatables-view-tool", manifest: { description: "Sort, search and page through your data.", displayName: "View in a table", color: "#f6b730", icon: "https://s3-eu-west-1.amazonaws.com/sw-icons/tool-icon-data-table.png" } },
{ name: "prune-graph", public: true, type: "view", gitUrl: "https://github.com/scraperwiki/prune-graph-tool.git", manifest: { description: "GRAPH OF THE PRUNES", displayName: "Code a prune!" } }
]
exports.datasets = [
{ "box" : "3006375730", "tool": "test-app", "displayName" : "Cheese", "user" : "ickletest", "boxServer": "localhost", "views" : [] },
{ "box" : "3006375731", "tool": "test-app", "displayName" : "Apricot", "user" : "ehg", "boxServer": "localhost", "views" : [ { "name": "downloader", "displayName": "Download a Spreadsheet", "box": "4001815731", "state": "state", "boxServer": "localhost", "tool": "spreadsheet-download" }] },
{ "box" : "3006375815", "tool": "test-app", "displayName" : "Prune", "user" : "ehg","boxServer": "localhost", "views" : [ { "name": "prune-graph", "displayName": "Graph of Prunes", "box": "4008115731", "boxServer": "localhost", "state": "state", "tool": "prune-graph" }, { "name": "newview", "displayName": "Data Scientist's Report", "box": "4028374628", "boxServer": "localhost", "state": "state", "tool": "newview" } ] },
{ "box" : "3006375816", "boxServer": "localhost", "tool": "test-app", "displayName" : "Kittens", "user" : "zarino", "views" : [ { "name": "table1", "displayName": "View in a Table", "boxServer": "localhost", "box": "400857239", "state": "state", "tool": "test-plugin" } ], "status": { "updated": "2013-03-12T08:23:00.000Z", "message": "Fully up to date", "type": "ok" } },
{ "box" : "3006375818", "tool": "test-app", "displayName" : "Puppies", "user" : "zarino", "boxServer": "localhost", "views" : [], "status": { "updated": "2013-03-12T07:20:00.000Z", "message": "Fully up to date", "type": "ok" } },
{ "box" : "3006375819", "tool": "test-app", "displayName" : "Piglets", "user" : "zarino", "boxServer": "localhost", "views" : [], "status": { "updated": "2013-01-10T10:23:00.000Z", "message": "No piglets detected", "type": "error" } },
{ "box" : "3006375821", "tool": "test-app", "boxServer": "localhost", "displayName" : "Chicks", "user" : "zarino", "views" : [] },
{ "box" : "3006375823", "tool": "test-app", "boxServer": "localhost", "displayName" : "Bobcats", "user" : "zarino", "views" : [] },
{ "box" : "2416349265", "boxServer": "localhost", "tool": "spreadsheet-upload", "displayName" : "My Spreadsheet", "user" : "zarino", "views" : [] },
{ "box" : "1057304856", "boxServer": "localhost", "tool": "test-app", "displayName" : "Hamburger", "user" : "mrgreedy", "views" : [] },
{ "box" : "3046586739", "tool": "test-app", "boxServer": "localhost", "displayName" : "Fries", "user" : "mrgreedy", "views" : [] },
{ "box" : "4057690375", "tool": "test-app", "boxServer": "localhost", "displayName" : "Cola", "user" : "mrgreedy", "views" : [] }
]
exports.boxes = [
{ "users" : ['ehg'], "name": "3006375731", "uid": 4678 },
{ "users" : ['ehg'], "name": "3006375815", "uid": 5678 }
]