-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.txt
More file actions
643 lines (582 loc) · 19.2 KB
/
test.txt
File metadata and controls
643 lines (582 loc) · 19.2 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
index
MINIMUM_ORGANIZATION_NAME_LENGTH
Shortest organization name length
✓ default 1
✓ Integer
MAXIMUM_ORGANIZATION_NAME_LENGTH
Longest organization name length
✓ default 50
✓ Integer
MINIMUM_INVITATION_CODE_LENGTH
Shortest invitation code length
✓ default 6
✓ Integer
MAXIMUM_INVITATION_CODE_LENGTH
Longest invitation code length
✓ default 50
✓ Integer
MEMBERSHIP_PROFILE_FIELDS
Personal information to share with members
✓ default display-name,display-email
✓ Profile property list
/account/organizations/accept-invitation
view
✓ should present the form (665ms)
✓ should exclude invalid profiles (590ms)
submit
✓ should accept valid existing profile (2287ms)
✓ should accept invitation and create profile (screenshots) (35830ms)
errors
✓ invalid-account (4121ms)
/account/organizations/create-invitation
exceptions
✓ invalid-account (84ms)
before
✓ should bind data to req (39ms)
view
✓ should present the form (535ms)
submit
✓ should create invitation (screenshots) (32531ms)
/account/organizations/create-organization
view
✓ should present the form (512ms)
submit
✓ should accept valid existing profile (1634ms)
✓ should create organization (screenshots) (20884ms)
errors
✓ invalid-organization-name (1214ms)
✓ invalid-organization-name-length (3545ms)
✓ invalid-organization-email (1954ms)
/account/organizations/delete-invitation
exceptions
✓ invalid-account (62ms)
before
✓ should bind data (41ms)
view
✓ should present the form (508ms)
submit
✓ should delete invitation (screenshots) (31347ms)
/account/organizations/delete-membership
exceptions
✓ invalid-account (98ms)
before
✓ should bind data to req (75ms)
view
✓ should present the form (548ms)
submit
✓ should delete membership (screenshots) (25750ms)
/account/organizations/delete-organization
exceptions
✓ invalid-account (89ms)
before
✓ should bind data to req
view
✓ should present the form (526ms)
submit
✓ should delete organization (screenshots) (30006ms)
/account/organizations/edit-membership-profile
view
✓ should present the form (573ms)
✓ should have elements for full-name (538ms)
✓ should have elements for display-name (550ms)
✓ should have elements for contact-email (555ms)
✓ should have elements for display-email (565ms)
✓ should have elements for dob (528ms)
✓ should have elements for phone (598ms)
✓ should have elements for occupation (559ms)
✓ should have elements for location (603ms)
✓ should have elements for company-name (561ms)
✓ should have elements for website (562ms)
submit
✓ should update profile (screenshots) (42713ms)
✓ should update profile with full-name (1323ms)
✓ should update profile with display name (1237ms)
✓ should update profile with contact-email (1712ms)
✓ should update profile with display-email (1430ms)
✓ should update profile with dob in YYYY-MM-DD (1283ms)
✓ should update profile with dob in MM-DD-YYYY (1299ms)
✓ should update profile with phone (1732ms)
✓ should update profile with occupation (1685ms)
✓ should update profile with location (1742ms)
✓ should update profile with company-name (1778ms)
✓ should update profile with website (1711ms)
errors
✓ invalid-first-name (1040ms)
✓ invalid-first-name-length (2283ms)
✓ invalid-last-name (1118ms)
✓ invalid-last-name-length (2296ms)
✓ invalid-contact-email (1906ms)
✓ invalid-display-email (1904ms)
✓ invalid-display-name (921ms)
✓ invalid-display-name-length (1968ms)
✓ invalid-dob (1987ms)
✓ invalid-phone (891ms)
✓ invalid-occupation (863ms)
✓ invalid-location (903ms)
✓ invalid-company-name (931ms)
✓ invalid-website (889ms)
/account/organizations/edit-organization
exceptions
✓ should require owner (62ms)
before
✓ should bind data to req
view
✓ should present the form (503ms)
submit
✓ should apply organization update (screenshots) (34333ms)
errors
✓ invalid-organization-name (1501ms)
✓ invalid-organization-name-length (2078ms)
✓ invalid-organization-email (1114ms)
/account/organizations/index
before
✓ should bind data to req (82ms)
view
✓ should have row for each organization (523ms)
✓ should have row for each membership (screenshots) (8354ms)
/account/organizations/invitation
before
✓ should require owner (81ms)
✓ should bind data to req (45ms)
view
✓ should have row for invitation (screenshots) (29918ms)
/account/organizations/membership
before
✓ should reject non-member (121ms)
✓ should bind data to req (93ms)
view
✓ should have row for membership (screenshots) (17123ms)
✓ should show profile fields if data exists (3188ms)
/account/organizations/memberships
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
✓ should show profile fields if data exists (4495ms)
/account/organizations/organization-invitations
before
✓ should require owner (65ms)
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/organizations/organization-memberships
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/organizations/organization
before
✓ should reject non-member (65ms)
✓ should bind data to req (73ms)
view
✓ should have row for organization (screenshots) (19232ms)
/account/organizations/organizations
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/organizations/revoke-membership
exceptions
✓ invalid-account (71ms)
before
✓ should bind data to req (93ms)
view
✓ should present the form (566ms)
submit
✓ should delete membership (screenshots) (38934ms)
/account/organizations/transfer-organization
exceptions
✓ invalid-account (72ms)
before
✓ should bind data to req (79ms)
view
✓ should present the form (568ms)
submit
✓ should transfer ownership (screenshots) (30596ms)
/administrator/organizations/index
before
✓ should bind data to req (170ms)
view
✓ should have row for each organization (screenshots) (9698ms)
✓ should have organization row for each membership (584ms)
/administrator/organizations/invitation
before
✓ should bind data to req (67ms)
view
✓ should have row for invitation (screenshots) (19002ms)
/administrator/organizations/invitations
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/administrator/organizations/membership
before
✓ should bind data to req (95ms)
view
✓ should have row for membership (screenshots) (19599ms)
/administrator/organizations/memberships
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
✓ should show profile fields if data exists (4622ms)
/administrator/organizations/organization-invitations
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/administrator/organizations/organization-memberships
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/administrator/organizations/organization
before
✓ should bind data to req (97ms)
view
✓ should have row for organization (screenshots) (10885ms)
/administrator/organizations/organizations
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/api/administrator/organizations/invitation
exceptions
invalid-invitationid
✓ missing querystring invitationid
✓ invalid querystring invitationid
returns
✓ object (65ms)
redacts
✓ secretCodeHash (64ms)
/api/administrator/organizations/invitations-count
returns
✓ integer (141ms)
/api/administrator/organizations/invitations
receives
✓ optional querystring offset (integer)
✓ optional querystring limit (integer)
✓ optional querystring all (boolean)
✓ optional querystring accountid (string)
✓ optional querystring organizationid (string)
returns
✓ array
configuration
✓ environment PAGE_SIZE
/api/administrator/organizations/membership
exceptions
invalid-membershipid
✓ missing querystring membershipid
✓ invalid querystring membershipid
returns
✓ object (103ms)
/api/administrator/organizations/memberships-count
returns
✓ integer (199ms)
/api/administrator/organizations/memberships
receives
✓ optional querystring offset (integer)
✓ optional querystring limit (integer)
✓ optional querystring all (boolean)
✓ optional querystring accountid (string)
✓ optional querystring organizationid (string)
returns
✓ array
configuration
✓ environment PAGE_SIZE
/api/administrator/organizations/organization
exceptions
invalid-organizationid
✓ unspecified querystring organizationid
✓ invalid querystring organizationid
returns
✓ object (52ms)
/api/administrator/organizations/organizations-count
returns
✓ integer (121ms)
/api/administrator/organizations/organizations
receives
✓ optional querystring offset (integer)
✓ optional querystring limit (integer)
✓ optional querystring all (boolean)
✓ optional querystring accountid (string)
returns
✓ array
configuration
✓ environment PAGE_SIZE
/api/user/organizations/create-invitation
exceptions
invalid-organizationid
✓ missing querystring organizationid
✓ invalid querystring organizationid (38ms)
invalid-secret-code
✓ missing posted secret-code (47ms)
invalid-secret-code-length
✓ posted secret-code too short (38ms)
✓ posted secret-code too long (38ms)
invalid-account
✓ accessing account is not organization owner (49ms)
receives
✓ required posted secret-code
returns
✓ object
/api/user/organizations/create-membership
exceptions
invalid-invitationid
✓ missing querystring invitationid
✓ invalid querystring invitationid
invalid-invitation
✓ querystring invitationid has been used (107ms)
✓ posted secret-code has been used (98ms)
invalid-secret-code
✓ missing posted secret-code (63ms)
✓ invalid posted secret-code (63ms)
invalid-account
✓ accessing account is organization owner (50ms)
✓ accessing account is organization member (83ms)
invalid-profileid
✓ missing posted profileid (59ms)
✓ invalid posted profileid (92ms)
invalid-profile
✓ ineligible posted profileid is missing fields (63ms)
invalid-invitation
✓ querystring invitationid is not open invitation (95ms)
receives
✓ required posted secret-code (66ms)
✓ required posted profileid (64ms)
returns
✓ object (65ms)
/api/user/organizations/create-organization
exceptions
invalid-organization-name
✓ missing posted name
invalid-organization-name-length
✓ posted name too short
✓ posted name too long
invalid-organization-email
✓ missing posted email
✓ invalid posted email
invalid-profile
✓ missing posted profileid
✓ invalid posted profileid
✓ ineligible posted profileid missing fields
receives
✓ required posted organization-email
✓ required posted organization-name
✓ required posted profileid (39ms)
returns
✓ object
/api/user/organizations/delete-invitation
exceptions
invalid-invitationid
✓ missing querystring invitationid
✓ invalid querystring invitationid
invalid-invitation
✓ querystring invitationid is used invitation (72ms)
invalid-account
✓ accessing account is not organization owner (70ms)
returns
✓ boolean (38ms)
/api/user/organizations/delete-membership
exceptions
invalid-membershipid
✓ missing querystring membershipid
✓ invalid querystring membershipid
invalid-account
✓ accessing account is not membership or organization owner (87ms)
returns
✓ boolean (77ms)
/api/user/organizations/delete-organization
exceptions
invalid-organizationid
✓ missing querystring organizationid
✓ invalid querystring organizationid
invalid-account
✓ accessing account does not own organization (60ms)
returns
✓ boolean
/api/user/organizations/invitation
exceptions
invalid-invitationid
✓ missing querystring invitationid
✓ invalid querystring invitationid
invalid-account
✓ accessing account is not organization owner (71ms)
returns
✓ object (39ms)
redacts
✓ secretCodeHash (39ms)
/api/user/organizations/invitations-count
exceptions
invalid-accountid
✓ missing querystring accountid
✓ invalid querystring accountid
invalid-account
✓ ineligible accessing account (72ms)
returns
✓ integer (51ms)
/api/user/organizations/invitations
exceptions
invalid-accountid
✓ missing querystring accountid
✓ invalid querystring accountid
invalid-account
✓ ineligible accessing account (82ms)
receives
✓ optional querystring offset (integer)
✓ optional querystring limit (integer)
✓ optional querystring all (boolean)
✓ optional querystring organizationid (string)
returns
✓ array
configuration
✓ environment PAGE_SIZE
/api/user/organizations/membership
exceptions
invalid-membershipid
✓ missing querystring membershipid
✓ invalid querystring membershipid
invalid-account
✓ accessing account must be organization member or owner (93ms)
returns
✓ object (80ms)
/api/user/organizations/memberships-count
exceptions
invalid-accountid
✓ missing querystring accountid
✓ invalid querystring accountid
invalid-account
✓ ineligible accessing account (70ms)
returns
✓ integer (152ms)
/api/user/organizations/memberships
exceptions
invalid-accountid
✓ missing querystring accountid
✓ invalid querystring accountid
invalid-account
✓ ineligible accessing account (76ms)
receives
✓ optional querystring offset (integer)
✓ optional querystring limit (integer)
✓ optional querystring all (boolean)
✓ optional querystring organizationid (string)
returns
✓ array
configuration
✓ environment PAGE_SIZE
/api/user/organizations/invitation
exceptions
invalid-invitationid
✓ missing querystring invitationid
✓ invalid querystring invitationid
invalid-invitation
✓ querystring invitationid is used (82ms)
returns
✓ object (41ms)
/api/user/organizations/open-invitation
exceptions
invalid-invitationid
✓ missing querystring invitationid
✓ invalid querystring invitationid
invalid-invitation
✓ querystring invitationid is used (68ms)
returns
✓ object (59ms)
redacts
✓ secretCodeHash (53ms)
/api/user/organizations/organization-membership
exceptions
invalid-organizationid
✓ missing querystring organizationid
✓ invalid querystring organizationid
invalid-account
✓ accessing account must be organization member (85ms)
returns
✓ object (82ms)
/api/user/organizations/organization
exceptions
invalid-organizationid
✓ missing querystring organizationid
✓ invalid querystring organizationid
invalid-account
✓ accessing account must be organization member (92ms)
returns
✓ object
/api/user/organizations/organizations-count
exceptions
invalid-accountid
✓ missing querystring accountid
✓ invalid querystring accountid
invalid-account
✓ ineligible accessing account (79ms)
returns
✓ integer (48ms)
/api/user/organizations/organizations
exceptions
invalid-accountid
✓ missing querystring accountid
✓ invalid querystring accountid
invalid-account
✓ ineligible accessing account (75ms)
receives
✓ optional querystring offset (integer)
✓ optional querystring limit (integer)
✓ optional querystring all (boolean)
returns
✓ array
configuration
✓ environment PAGE_SIZE
/api/user/organizations/set-organization-owner
exceptions
invalid-organizationid
✓ missing querystring organizationid
✓ invalid querystring organizationid
invalid-accountid
✓ posted accountid is missing
✓ posted accountid is invalid (40ms)
invalid-account
✓ accessing account is not organization owner (76ms)
✓ posted accountid is organization owner (40ms)
✓ posted accountid is not member (57ms)
returns
✓ object (68ms)
/api/user/organizations/update-organization
exceptions
invalid-organizationid
✓ missing querystring organizationid
✓ invalid querystring organizationid
invalid-account
✓ accessing account is not organization owner (92ms)
invalid-organization-name
✓ missing posted name
invalid-organization-name-length
✓ posted name is too short (39ms)
✓ posted name is too long (43ms)
invalid-organization-email
✓ missing posted email
✓ invalid posted email
receives
✓ required posted name
✓ required posted email
returns
✓ object
314 passing (16m)