Skip to content

Commit b1213b2

Browse files
NkumarNkumar
Nkumar
authored and
Nkumar
committed
merged code
1 parent 8bbda85 commit b1213b2

17 files changed

+2214
-44
lines changed

Verification.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,36 @@
55
- Refer `README.md#Local Deployment` to start the app
66
- Import Postman collection and environment file in the `docs` folder to Postman and execute the scripts to validate the app from top to bottom.
77

8+
## Note About Testing `/taas-teams` Endpoints
9+
Before you run tests against the `taas-teams` endpoints, you should insert the dedicated test data by running `npm run test-data`.
810

911
## Unit test Coverage
1012

1113

1214
``` bash
13-
78 passing (137ms)
15+
96 passing (170ms)
1416

15-
----------------------------|---------|----------|---------|---------|-------------------
17+
----------------------------|---------|----------|---------|---------|----------------------------
1618
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
17-
----------------------------|---------|----------|---------|---------|-------------------
18-
All files | 98.1 | 91.55 | 100 | 98.28 |
19+
----------------------------|---------|----------|---------|---------|----------------------------
20+
All files | 98.43 | 91.03 | 100 | 98.56 |
1921
config | 100 | 100 | 100 | 100 |
2022
default.js | 100 | 100 | 100 | 100 |
2123
test.js | 100 | 100 | 100 | 100 |
2224
src | 90.91 | 50 | 100 | 94.44 |
2325
bootstrap.js | 90.91 | 50 | 100 | 94.44 | 18
24-
src/common | 97.17 | 90.91 | 100 | 97.12 |
26+
src/common | 97.69 | 90.91 | 100 | 97.66 |
2527
errors.js | 100 | 50 | 100 | 100 | 23
26-
helper.js | 96.88 | 92.86 | 100 | 96.81 | 94,176,284
28+
helper.js | 97.5 | 92.86 | 100 | 97.46 | 94,176,284
2729
src/models | 100 | 92.86 | 100 | 100 |
2830
Job.js | 100 | 100 | 100 | 100 |
2931
JobCandidate.js | 100 | 100 | 100 | 100 |
3032
ResourceBooking.js | 100 | 100 | 100 | 100 |
3133
index.js | 100 | 80 | 100 | 100 | 29
32-
src/services | 98.58 | 89.25 | 100 | 98.57 |
34+
src/services | 98.81 | 89.5 | 100 | 98.8 |
3335
JobCandidateService.js | 98.77 | 88 | 100 | 98.77 | 37
34-
JobService.js | 98.21 | 87.18 | 100 | 98.18 | 73,318
36+
JobService.js | 97.37 | 85.37 | 100 | 97.32 | 73,285,326
3537
ResourceBookingService.js | 98.86 | 93.1 | 100 | 98.86 | 54
36-
----------------------------|---------|----------|---------|---------|-------------------
38+
TeamService.js | 100 | 90.7 | 100 | 100 | 19,135-138,188-202,251,267
39+
----------------------------|---------|----------|---------|---------|----------------------------
3740
```

docs/Topcoder-bookings-api.postman_collection.json

Lines changed: 95 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "48d00a68-e5e9-44b4-bc6e-357a3e95d1d6",
3+
"_postman_id": "e5068685-d152-46a2-acd9-41752e953288",
44
"name": "Topcoder-bookings-api",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
@@ -14,7 +14,7 @@
1414
{
1515
"listen": "test",
1616
"script": {
17-
"id": "2e346a9f-de3c-485d-8681-59271541dd78",
17+
"id": "c5b7367f-d0eb-4960-8bbf-c8becaf31674",
1818
"exec": [
1919
"var data = JSON.parse(responseBody);\r",
2020
"postman.setEnvironmentVariable(\"jobId\",data.id);"
@@ -59,7 +59,7 @@
5959
{
6060
"listen": "test",
6161
"script": {
62-
"id": "6420b802-df77-4836-9458-1c1d02c4bb51",
62+
"id": "d5c25c00-0033-4a0b-a71d-704f0fb77119",
6363
"exec": [
6464
"var data = JSON.parse(responseBody);\r",
6565
"postman.setEnvironmentVariable(\"jobId\",data.id);"
@@ -104,7 +104,7 @@
104104
{
105105
"listen": "test",
106106
"script": {
107-
"id": "3ccfd704-685e-48e4-91e8-b9a475e0ce76",
107+
"id": "0045ccac-5ce6-4c85-96d0-4747e38ce0af",
108108
"exec": [
109109
""
110110
],
@@ -148,7 +148,7 @@
148148
{
149149
"listen": "test",
150150
"script": {
151-
"id": "16f1cca4-3de4-47ec-9769-e80e2287f6c5",
151+
"id": "3f694a2f-50c7-45f9-b070-8b35d1356dac",
152152
"exec": [
153153
""
154154
],
@@ -192,7 +192,7 @@
192192
{
193193
"listen": "test",
194194
"script": {
195-
"id": "b2f757a8-8355-409a-850d-cf9c2570b5be",
195+
"id": "6d26576b-f1a6-453b-b370-9e043585a4b6",
196196
"exec": [
197197
""
198198
],
@@ -1186,7 +1186,7 @@
11861186
{
11871187
"listen": "test",
11881188
"script": {
1189-
"id": "5c05699c-7312-4f41-beb5-883401ea2fe0",
1189+
"id": "78c7277b-d167-473a-98c2-5d6f9bb8a6d4",
11901190
"exec": [
11911191
"var data = JSON.parse(responseBody);\r",
11921192
"postman.setEnvironmentVariable(\"jobCandidateId\",data.id);"
@@ -1231,7 +1231,7 @@
12311231
{
12321232
"listen": "test",
12331233
"script": {
1234-
"id": "401b5076-4055-4bc4-b63c-4366cffe4806",
1234+
"id": "cc3159cd-9d47-4781-b34e-2ffeb241835b",
12351235
"exec": [
12361236
"var data = JSON.parse(responseBody);\r",
12371237
"postman.setEnvironmentVariable(\"jobCandidateId\",data.id);"
@@ -1276,7 +1276,7 @@
12761276
{
12771277
"listen": "test",
12781278
"script": {
1279-
"id": "96fd60e4-fefd-4a0c-bcff-afb0aed66756",
1279+
"id": "e124c44c-4c49-4cee-ac6d-de02189b6b5f",
12801280
"exec": [
12811281
"var data = JSON.parse(responseBody);\r",
12821282
"postman.setEnvironmentVariable(\"jobCandidateId\",data.id);"
@@ -1321,7 +1321,7 @@
13211321
{
13221322
"listen": "test",
13231323
"script": {
1324-
"id": "3c191203-4715-4bc5-8f30-b4204e58ea46",
1324+
"id": "dd94720e-938a-4cc6-9256-f325a11f2adc",
13251325
"exec": [
13261326
"var data = JSON.parse(responseBody);\r",
13271327
"postman.setEnvironmentVariable(\"jobCandidateId\",data.id);"
@@ -1366,7 +1366,7 @@
13661366
{
13671367
"listen": "test",
13681368
"script": {
1369-
"id": "f1257f98-a3ec-49d4-8e8a-613e0c5c2273",
1369+
"id": "9af0ad9d-5b5a-4bd2-961a-3da81b3646ca",
13701370
"exec": [
13711371
""
13721372
],
@@ -2183,7 +2183,7 @@
21832183
{
21842184
"listen": "test",
21852185
"script": {
2186-
"id": "29ff4137-5b1f-4be4-bf5d-b0a1aab70eb5",
2186+
"id": "fbec4b77-da8e-4a68-8041-2b53f51b53a1",
21872187
"exec": [
21882188
"var data = JSON.parse(responseBody);\r",
21892189
"postman.setEnvironmentVariable(\"resourceBookingId\",data.id);"
@@ -2228,7 +2228,7 @@
22282228
{
22292229
"listen": "test",
22302230
"script": {
2231-
"id": "1693d79f-cbea-4b20-b04f-c7d0278116b2",
2231+
"id": "ec104283-7052-4e4e-bb47-243091b27cca",
22322232
"exec": [
22332233
"var data = JSON.parse(responseBody);\r",
22342234
"postman.setEnvironmentVariable(\"resourceBookingId\",data.id);"
@@ -2273,7 +2273,7 @@
22732273
{
22742274
"listen": "test",
22752275
"script": {
2276-
"id": "9895bedf-46f2-43bb-904b-f7c90e078cc4",
2276+
"id": "b0557557-4d52-402d-819b-238f764fefcf",
22772277
"exec": [
22782278
""
22792279
],
@@ -2317,7 +2317,7 @@
23172317
{
23182318
"listen": "test",
23192319
"script": {
2320-
"id": "1e0fdfea-6ef0-4a5f-abcd-a60b47ed3eb7",
2320+
"id": "837fc794-5bae-4903-8486-e37ae066faf0",
23212321
"exec": [
23222322
""
23232323
],
@@ -2361,7 +2361,7 @@
23612361
{
23622362
"listen": "test",
23632363
"script": {
2364-
"id": "414d9fae-4cc1-442e-b8a6-4827fd44e33a",
2364+
"id": "be5356b8-8068-4a6d-a17b-a2cef3cf6593",
23652365
"exec": [
23662366
""
23672367
],
@@ -3208,6 +3208,85 @@
32083208
],
32093209
"protocolProfileBehavior": {}
32103210
},
3211+
{
3212+
"name": "Taas Teams",
3213+
"item": [
3214+
{
3215+
"name": "GET /taas-teams",
3216+
"request": {
3217+
"method": "GET",
3218+
"header": [
3219+
{
3220+
"key": "Authorization",
3221+
"value": "Bearer {{token_connectUser}}",
3222+
"type": "text"
3223+
}
3224+
],
3225+
"url": {
3226+
"raw": "{{URL}}/taas-teams",
3227+
"host": [
3228+
"{{URL}}"
3229+
],
3230+
"path": [
3231+
"taas-teams"
3232+
]
3233+
}
3234+
},
3235+
"response": []
3236+
},
3237+
{
3238+
"name": "GET /taas-teams/:id",
3239+
"request": {
3240+
"method": "GET",
3241+
"header": [
3242+
{
3243+
"key": "Authorization",
3244+
"value": "Bearer {{token_connectUser}}",
3245+
"type": "text"
3246+
}
3247+
],
3248+
"url": {
3249+
"raw": "{{URL}}/taas-teams/9050",
3250+
"host": [
3251+
"{{URL}}"
3252+
],
3253+
"path": [
3254+
"taas-teams",
3255+
"9050"
3256+
]
3257+
}
3258+
},
3259+
"response": []
3260+
},
3261+
{
3262+
"name": "GET /taas-teams/:id/jobs/:jobId",
3263+
"request": {
3264+
"method": "GET",
3265+
"header": [
3266+
{
3267+
"key": "Authorization",
3268+
"value": "Bearer {{token_connectUser}}",
3269+
"type": "text"
3270+
}
3271+
],
3272+
"url": {
3273+
"raw": "{{URL}}/taas-teams/9050/jobs/1d9e8c1a-e653-4d31-a799-2685e41da212",
3274+
"host": [
3275+
"{{URL}}"
3276+
],
3277+
"path": [
3278+
"taas-teams",
3279+
"9050",
3280+
"jobs",
3281+
"1d9e8c1a-e653-4d31-a799-2685e41da212"
3282+
]
3283+
}
3284+
},
3285+
"response": []
3286+
}
3287+
],
3288+
"protocolProfileBehavior": {}
3289+
},
32113290
{
32123291
"name": "health check",
32133292
"item": [

0 commit comments

Comments
 (0)