-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_3_0_0.txt
37 lines (37 loc) · 1.39 KB
/
test_3_0_0.txt
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
TAP version 13
# Tests for express-mongodb-rest (3.0.0)
# Node.js (v9.2.0)
# Description: Express middleware for MongoDB REST APIs
# Date: 2018-01-16 06:10:21
# Dependencies: mongodb (^3.0.0-rc0)
# Developer: coveralls (^3.0.0), documentation (^5.3.3), dotenv (^4.0.0), express (^4.16.2), express-query-int (^2.0.0), istanbul (^0.4.5), moment (^2.19.1), supertest (^3.0.0), tape (^4.8.0)
ok 1 (MAIN) insertMany
ok 2 (MAIN) MongoDB connect
# (A) tests on app response
ok 3 (A) base app GET 200 success
ok 4 (A) REST GET 200 success
ok 5 (A) REST POST 200 success
ok 6 (A) REST PUT 200 success
ok 7 (A) REST DELETE 200 success
ok 8 (A) custom GET 200 success
ok 9 (A) custom GET denied database 400 bad request
ok 10 (A) custom GET denied collection 400 bad request
ok 11 (A) custom GET not allowed database 400 bad request
ok 12 (A) custom GET not allowed collection 400 bad request
# (B) tests on base app
ok 13 (B) base /api GET
ok 14 (B) base /api GET string query
ok 15 (B) base /api GET number query
# (C) tests on REST app
ok 16 (C) REST /rest GET
ok 17 (C) REST /rest GET string query
ok 18 (C) REST /rest GET number query
ok 19 (C) REST /rest GET OR string query
ok 20 (C) REST /rest POST
ok 21 (C) REST /rest PUT
ok 22 (C) REST /rest DELETE
# (D) tests on custom app
ok 23 (D) custom /custom GET
ok 24 (D) custom /custom GET query
ok 25 (D) custom /custom GET unknown collection
ok 26 (MAIN) Drop MongoDB database