Test Report

Started: 2021-12-10 00:46:35
Suites (10)
10 passed
0 failed
0 pending
Tests (53)
53 passed
0 failed
0 pending
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/contracts.controller.test.ts
12.179s
Test Contracts Controller
POST /search
passed
0.007s
Test Contracts Controller
GET /search (no authorization)
passed
0.002s
Test Contracts Controller
GET /search (empty result)
passed
0.003s
Test Contracts Controller
GET /search (no pattern)
passed
0.002s
Test Contracts Controller
GET /search (IBApiNext error)
passed
0.003s
Test Contracts Controller
GET /detailsById
passed
0.005s
Test Contracts Controller
GET /detailsById (no authorization)
passed
0.002s
Test Contracts Controller
GET /detailsById (empty result)
passed
0.003s
Test Contracts Controller
GET /detailsById (invalid conId format)
passed
0.006s
Test Contracts Controller
GET /detailsById (IBApiNext error)
passed
0.003s
Test Contracts Controller
POST /details
passed
0.002s
Test Contracts Controller
GET /details (no authorization)
passed
0.001s
Test Contracts Controller
POST /details (empty result)
passed
0.002s
Test Contracts Controller
GET /details (IBApiNext error)
passed
0.002s
Test Contracts Controller
POST /historicData
passed
0.002s
Test Contracts Controller
POST /historicData (no authorization)
passed
0.002s
Test Contracts Controller
POST /historicData (invalid conId)
passed
0.002s
Test Contracts Controller
POST /historicData (no conId)
passed
0.002s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/realtime-positions.test.ts
2.354s
Test Real-time positions
Subscribe on 'positions'
passed
1.021s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/realtime-accountSummary.test.ts
3.383s
Test Real-time accountSummaries
Subscribe on 'accountSummary/'
passed
2.135s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/account.controller.test.ts
1.364s
Test Account Controller
GET /managedAccounts
passed
0.004s
Test Account Controller
GET /managedAccounts (no authorization)
passed
0.001s
Test Account Controller
GET /accountSummaries
passed
0.003s
Test Account Controller
GET /accountSummaries (no authorization)
passed
0.002s
Test Account Controller
GET /accountSummary/account
passed
0.002s
Test Account Controller
GET /accountSummary/account (no account)
passed
0.002s
Test Account Controller
GET /accountSummary/account (no authorization)
passed
0.001s
Test Account Controller
GET /positions
passed
0.003s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/realtime-marketdata.test.ts
1.318s
Test Real-time marketdata
Subscribe on 'marketdata'
passed
0.085s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/app.test.ts
4.341s
Test App
App boot
passed
0.026s
Test App
Proxy IBApiNext log to App Context
passed
0.12s
Test App
App boot (no IB_GATEWAY_PORT)
passed
0.003s
Test App
App boot (no IB_GATEWAY_HOST)
passed
0.005s
Test App
App boot (no REST_API_USERNAME)
passed
0.023s
Test App
App boot (no REST_API_PASSWORD)
passed
0.005s
Test App
App shutdown on connection loss
passed
3.011s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/realtime-data.controller.test.ts
1.149s
Test Real-time Data Controller
Connect to /stream
passed
0.005s
Test Real-time Data Controller
Connect to /stream (no auth argument)
passed
0.005s
Test Real-time Data Controller
Connect to /stream (not authorization)
passed
0.002s
Test Real-time Data Controller
Subscribe to invalid topic
passed
0.004s
Test Real-time Data Controller
Send invalid request (no JSON)
passed
0.002s
Test Real-time Data Controller
Send invalid request (invalid message type)
passed
0.002s
/__w/ib-api-service/ib-api-service/src/__tests__/unit/ib.helper.test.ts
0.98s
Test IBApiServiceHelper
Test formatPositionId
passed
0.002s
Test IBApiServiceHelper
Test marketDataTicksToModel
passed
0.002s
Test IBApiServiceHelper
Test colllectAccountSummaryTagValues
passed
0.001s
/__w/ib-api-service/ib-api-service/src/__tests__/unit/security.utils.test.ts
0.893s
Test SecurityUtils
Test ensureAuthorization (authorization header)
passed
0.002s
Test SecurityUtils
Test ensureAuthorization (cookie header)
passed
0s
Test SecurityUtils
Test ensureAuthorization (no authorization header)
passed
0.001s
Test SecurityUtils
Test ensureAuthorization (invalid Bearer token)
passed
0.001s
Test SecurityUtils
Test ensureAuthorization (invalid JWT token)
passed
0.001s
/__w/ib-api-service/ib-api-service/src/__tests__/acceptance/authentication.controller.test.ts
1.786s
Test User Authentication
Login with username and password
passed
0.034s
Test User Authentication
Login with username and password (wrong credentials)
passed
0.017s
Test User Authentication
Login with username and password (no credentials)
passed
0.009s