Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====>> Spin up Environment
- Build-agent version 0.0.5895-01cdb92 (2018-05-29T20:07:10+0000)
- Starting container circleci/node:8.11.2
- using image circleci/node@sha256:8ed7ee7353bfc4d639bc14804db26ed000365861de40b7a98f01ef55eb91e6df
- Starting container circleci/postgres:9.6-alpine-postgis-ram
- using image circleci/postgres@sha256:1b49ac27f153d0e674759bd0cdcfc22e6c3f17219575cca7949a5b345197e5ba
- ====>> Container circleci/postgres:9.6-alpine-postgis-ram
- Service containers logs streaming is disabled for local builds
- You can manually monitor container 54b2397dc407947f73c1ef09c641d1d61f9807246a2ab75a66869a0b6fe386e7
- ====>> Checkout code
- #!/bin/sh
- mkdir -p /home/circleci/repo && cp -r /tmp/_circleci_local_build_repo/. /home/circleci/repo
- ====>> Install Jest
- #!/bin/bash -eo pipefail
- yarn add --dev jest-junit
- yarn add v1.6.0
- [1/4] Resolving packages...
- warning apidoc > nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
- [2/4] Fetching packages...
- info fsevents@1.2.3: The platform "linux" is incompatible with this module.
- info "fsevents@1.2.3" is an optional dependency and failed compatibility check. Excluding it from installation.
- [3/4] Linking dependencies...
- [4/4] Building fresh packages...
- success Saved lockfile.
- success Saved 75 new dependencies.
- info Direct dependencies
- ├─ apidoc@0.17.6
- ├─ jest-junit@5.1.0
- ├─ standart@6.1.0
- ├─ winston-loggly-bulk@2.0.2
- └─ winston@2.4.3
- info All dependencies
- ├─ acorn-jsx@3.0.1
- ├─ ajv-keywords@1.5.1
- ├─ ajv@4.11.8
- ├─ apidoc-core@0.8.3
- ├─ apidoc@0.17.6
- ├─ array-union@1.0.2
- ├─ array-uniq@1.0.3
- ├─ caller-path@0.1.0
- ├─ circular-json@0.3.3
- ├─ cli-cursor@1.0.2
- ├─ cli-width@2.2.0
- ├─ concat-stream@1.6.2
- ├─ debug-log@1.0.1
- ├─ deglob@2.1.1
- ├─ del@2.2.2
- ├─ entities@1.1.1
- ├─ es6-map@0.1.5
- ├─ es6-set@0.1.5
- ├─ es6-symbol@3.1.1
- ├─ es6-weak-map@2.0.2
- ├─ escope@3.6.0
- ├─ eslint-config-standard-jsx@3.2.0
- ├─ eslint-config-standart@0.2.0
- ├─ eslint-plugin-promise@3.4.2
- ├─ eslint-plugin-react@6.7.1
- ├─ eslint-plugin-standard@2.0.1
- ├─ eslint@3.11.1
- ├─ espree@3.5.4
- ├─ esrecurse@4.2.1
- ├─ exit-hook@1.1.1
- ├─ file-entry-cache@2.0.0
- ├─ flat-cache@1.3.0
- ├─ generate-function@2.0.0
- ├─ generate-object-property@1.2.0
- ├─ globby@5.0.0
- ├─ ignore@3.3.10
- ├─ inquirer@0.12.0
- ├─ is-my-ip-valid@1.0.0
- ├─ is-my-json-valid@2.17.2
- ├─ is-path-cwd@1.0.0
- ├─ is-path-in-cwd@1.0.1
- ├─ is-path-inside@1.0.1
- ├─ is-property@1.0.2
- ├─ is-resolvable@1.1.0
- ├─ jest-junit@5.1.0
- ├─ js-yaml@3.12.0
- ├─ jsonpointer@4.0.1
- ├─ jsx-ast-utils@1.4.1
- ├─ klaw-sync@2.1.0
- ├─ linkify-it@2.0.3
- ├─ markdown-it@8.4.1
- ├─ mdurl@1.0.1
- ├─ next-tick@1.0.0
- ├─ node-loggly-bulk@2.2.2
- ├─ onetime@1.1.0
- ├─ pkg-config@1.1.1
- ├─ progress@1.1.8
- ├─ readline2@1.0.1
- ├─ require-uncached@1.0.3
- ├─ restore-cursor@1.0.1
- ├─ run-async@0.1.0
- ├─ run-parallel@1.1.9
- ├─ rx-lite@3.1.2
- ├─ shelljs@0.7.8
- ├─ slice-ansi@0.0.4
- ├─ standard-engine@5.3.0
- ├─ standart@6.1.0
- ├─ table@3.8.3
- ├─ uc.micro@1.0.5
- ├─ uniq@1.0.1
- ├─ user-home@2.0.0
- ├─ winston-loggly-bulk@2.0.2
- ├─ winston@2.4.3
- ├─ write@0.2.1
- └─ xml@1.0.1
- Done in 77.90s.
- ====>> Run Integration Tests
- #!/bin/bash -eo pipefail
- yarn jest '\.int.test\.js$' --runInBand --forceExit --ci --testResultsProcessor=jest-junit -c='./jest.int.config.js'
- yarn run v1.6.0
- $ /home/circleci/repo/node_modules/.bin/jest '\.int.test\.js$' --runInBand --forceExit --ci --testResultsProcessor=jest-junit -c=./jest.int.config.js
- i18n:debug will use /home/circleci/repo/config/locales/en.json +0ms
- i18n:debug read /home/circleci/repo/config/locales/en.json for locale: en +2ms
- i18n:debug will use /home/circleci/repo/config/locales/es.json +1ms
- i18n:debug read /home/circleci/repo/config/locales/es.json for locale: es +0ms
- i18n:debug will use /home/circleci/repo/config/locales/fr.json +1ms
- i18n:debug read /home/circleci/repo/config/locales/fr.json for locale: fr +0ms
- i18n:debug will use /home/circleci/repo/config/locales/de.json +1ms
- i18n:debug read /home/circleci/repo/config/locales/de.json for locale: de +0ms
- console.log node_modules/captains-log/lib/write.js:83
- verbose: logger hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: request hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading the app's models and any custom adapters...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading app models...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading app adapters...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Overriding ejs engine config with ejslocals to implement layout support...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: views hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading blueprint middleware...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: blueprints hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: responses hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: controllers hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading policy modules from app...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Finished loading policy middleware logic.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: policies hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: services hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: csrf hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: cors hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: i18n hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: session hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Setting default Express view engine to ejs...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: http hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Preparing socket.io...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: sockets hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading adapter (`sails-postgresql`) from this app's `node_modules/` directory...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Starting ORM...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: orm hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: pubsub hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: validation hook loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Built-in hooks are ready.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Instantiating registry...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Loading router...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Policy-controller bindings complete!
- console.log node_modules/captains-log/lib/write.js:83
- verbose: All hooks were loaded successfully.
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Starting app at /home/circleci/repo...
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Running the setup logic in `sails.config.bootstrap(cb)`...
- console.log node_modules/captains-log/lib/write.js:83
- info: Migrated: 23
- console.log node_modules/captains-log/lib/write.js:83
- info:
- console.log node_modules/captains-log/lib/write.js:83
- info: .-..-.
- console.log node_modules/captains-log/lib/write.js:83
- info:
- console.log node_modules/captains-log/lib/write.js:83
- info: Sails <| .-..-.
- console.log node_modules/captains-log/lib/write.js:83
- info: v0.12.14 |\
- console.log node_modules/captains-log/lib/write.js:83
- info: /|.\
- console.log node_modules/captains-log/lib/write.js:83
- info: / || \
- console.log node_modules/captains-log/lib/write.js:83
- info: ,' |' \
- console.log node_modules/captains-log/lib/write.js:83
- info: .-'.-==|/_--'
- console.log node_modules/captains-log/lib/write.js:83
- info: `--'-------'
- console.log node_modules/captains-log/lib/write.js:83
- info: __---___--___---___--___---___--___
- console.log node_modules/captains-log/lib/write.js:83
- info: ____---___--___---___--___---___--___-__
- console.log node_modules/captains-log/lib/write.js:83
- info:
- console.log node_modules/captains-log/lib/write.js:83
- info: Server lifted in `/home/circleci/repo`
- console.log node_modules/captains-log/lib/write.js:83
- info: To see your app, visit http://localhost:1337
- console.log node_modules/captains-log/lib/write.js:83
- info: To shut down Sails, press <CTRL> + C at any time.
- console.log node_modules/captains-log/lib/write.js:83
- console.error node_modules/captains-log/lib/write.js:83
- debug: -------------------------------------------------------
- console.error node_modules/captains-log/lib/write.js:83
- debug: :: Fri Jun 22 2018 15:07:11 GMT+0000 (UTC)
- console.log node_modules/captains-log/lib/write.js:83
- console.error node_modules/captains-log/lib/write.js:83
- debug: Environment : test
- console.error node_modules/captains-log/lib/write.js:83
- debug: Port : 1337
- console.error node_modules/captains-log/lib/write.js:83
- debug: -------------------------------------------------------
- (node:150) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=User successfully logged in, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=User successfully logged in, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Admin was found, email=webapp_admin@mieterengel.de
- info: message=User successfully logged in, email=webapp_admin@mieterengel.de
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer wasn't found, email=user@test.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 400 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=User successfully logged in, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer wasn't found, email=lawyer@test.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 400 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=User successfully logged in, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding all topic
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Could not update hubspot contact, statusCode=404, error=Hubspot contact vid not found, email=test_customer1@protonmail.com
- console.error node_modules/captains-log/lib/write.js:83
- error: Could not update hubspot contact: Error: Hubspot contact vid not found
- info: message=Customer was updated, email=test_customer1@protonmail.com
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 400 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 400 response
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Sending 404 ("Not Found") response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding customer documents
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- console.log node_modules/captains-log/lib/write.js:83
- verbose: Sending 404 ("Not Found") response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Customer subscription was found, id=5
- console.error node_modules/captains-log/lib/write.js:83
- error: error: null value in column "topic_id" violates not-null constraint
- at Connection.Object.<anonymous>.Connection.parseE (/home/circleci/repo/node_modules/pg/lib/connection.js:545:11)
- at Connection.Object.<anonymous>.Connection.parseMessage (/home/circleci/repo/node_modules/pg/lib/connection.js:370:19)
- at Socket.<anonymous> (/home/circleci/repo/node_modules/pg/lib/connection.js:113:22)
- at emitOne (events.js:116:13)
- at Socket.emit (events.js:211:7)
- at addChunk (_stream_readable.js:263:12)
- at readableAddChunk (_stream_readable.js:250:11)
- at Socket.Readable.push (_stream_readable.js:208:10)
- at TCP.onread (net.js:597:20)
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 500 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Customer subscription was found, id=5
- info: message=Created consultation
- info: message=Consultation message was found, consultation=6
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=Consultation was found, query=6
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Consultation wasn't found (can't find one), id=2147483647, customer=4
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 404 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Consultation message was found, consultation=6
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=Consultation was found, id=6, customer=4
- info: message=Consultation message is updating, query=[]
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Customer subscription was found, id=5
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=Lawyer was found
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Customer subscription was found, id=5
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Consultation message was found, consultation=6
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Consultation was found, id=6, customer=4
- info: message=Сan't create new consultation message due to wrong message author, id=6, customer=4
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 400 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding customer document categories
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding customer document categories
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Creating customer document category
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding customer document categories
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Customer document category was removed, id=1
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding customer document categories
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding document category
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Creating document category
- console.error node_modules/captains-log/lib/write.js:83
- error: Error (E_VALIDATION) :: 1 attribute is invalid
- at new WLError (/home/circleci/repo/node_modules/waterline/lib/waterline/error/WLError.js:26:15)
- at Object.<anonymous>.module.exports.patch (/home/circleci/repo/node_modules/sails-hook-validation/lib/WLValidationError.js:8:13)
- at /home/circleci/repo/node_modules/sails-hook-validation/lib/create.js:66:48
- at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/dql/create.js:73:23
- at /home/circleci/repo/node_modules/async/lib/async.js:726:13
- at /home/circleci/repo/node_modules/async/lib/async.js:52:16
- at /home/circleci/repo/node_modules/async/lib/async.js:264:21
- at /home/circleci/repo/node_modules/async/lib/async.js:44:16
- at /home/circleci/repo/node_modules/async/lib/async.js:723:17
- at /home/circleci/repo/node_modules/async/lib/async.js:167:37
- at /home/circleci/repo/node_modules/sails-hook-validation/lib/validate.js:45:21
- at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:79:23
- at /home/circleci/repo/node_modules/async/lib/async.js:726:13
- at /home/circleci/repo/node_modules/async/lib/async.js:52:16
- at /home/circleci/repo/node_modules/async/lib/async.js:264:21
- at /home/circleci/repo/node_modules/async/lib/async.js:44:16
- at /home/circleci/repo/node_modules/async/lib/async.js:723:17
- at /home/circleci/repo/node_modules/async/lib/async.js:167:37
- at _afterValidating (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:53:20)
- at allValidationsChecked (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/core/validations.js:265:12)
- at /home/circleci/repo/node_modules/async/lib/async.js:52:16
- at Object.<anonymous>.async.forEachOf.async.eachOf (/home/circleci/repo/node_modules/async/lib/async.js:236:30)
- at Object.<anonymous>.async.forEach.async.each (/home/circleci/repo/node_modules/async/lib/async.js:209:22)
- at Object.<anonymous>.module.exports.Object.<anonymous>.Validator.validate (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/core/validations.js:144:9)
- at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:42:25
- at /home/circleci/repo/node_modules/async/lib/async.js:718:13
- at Immediate.iterate (/home/circleci/repo/node_modules/async/lib/async.js:262:13)
- at runCallback (timers.js:810:20)
- Details: Details: Invalid attributes sent to DocumentCategory:
- • name
- • Value should be a string (instead of null, which is an object)
- • "required" validation rule failed for input: null
- Specifically, it threw an error. Details:
- undefined
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 500 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Creating document category
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding document category
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.error node_modules/captains-log/lib/write.js:83
- error: Error (E_VALIDATION) :: 1 attribute is invalid
- at new WLError (/home/circleci/repo/node_modules/waterline/lib/waterline/error/WLError.js:26:15)
- at Object.<anonymous>.module.exports.patch (/home/circleci/repo/node_modules/sails-hook-validation/lib/WLValidationError.js:8:13)
- at /home/circleci/repo/node_modules/sails-hook-validation/lib/update.js:57:48
- at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/dql/update.js:57:23
- at /home/circleci/repo/node_modules/async/lib/async.js:726:13
- at /home/circleci/repo/node_modules/async/lib/async.js:52:16
- at /home/circleci/repo/node_modules/async/lib/async.js:264:21
- at /home/circleci/repo/node_modules/async/lib/async.js:44:16
- at /home/circleci/repo/node_modules/async/lib/async.js:723:17
- at /home/circleci/repo/node_modules/async/lib/async.js:167:37
- at /home/circleci/repo/node_modules/sails-hook-validation/lib/validate.js:45:21
- at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:79:23
- at /home/circleci/repo/node_modules/async/lib/async.js:726:13
- at /home/circleci/repo/node_modules/async/lib/async.js:52:16
- at /home/circleci/repo/node_modules/async/lib/async.js:264:21
- at /home/circleci/repo/node_modules/async/lib/async.js:44:16
- at /home/circleci/repo/node_modules/async/lib/async.js:723:17
- at /home/circleci/repo/node_modules/async/lib/async.js:167:37
- at _afterValidating (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:53:20)
- at allValidationsChecked (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/core/validations.js:265:12)
- at /home/circleci/repo/node_modules/async/lib/async.js:52:16
- at Object.<anonymous>.async.forEachOf.async.eachOf (/home/circleci/repo/node_modules/async/lib/async.js:236:30)
- at Object.<anonymous>.async.forEach.async.each (/home/circleci/repo/node_modules/async/lib/async.js:209:22)
- at Object.<anonymous>.module.exports.Object.<anonymous>.Validator.validate (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/core/validations.js:144:9)
- at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:42:25
- at /home/circleci/repo/node_modules/async/lib/async.js:718:13
- at Immediate.iterate (/home/circleci/repo/node_modules/async/lib/async.js:262:13)
- at runCallback (timers.js:810:20)
- Details: Details: Invalid attributes sent to DocumentCategory:
- • name
- • Value should be a string (instead of null, which is an object)
- • "required" validation rule failed for input: null
- Specifically, it threw an error. Details:
- undefined
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 500 response
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Finding document category
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Document category was updated, id=1
- info: message=Document category was found, query=1
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Document wasn't found (can't find), query=2147483647
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 404 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- info: message=Document wasn't found (can't update)
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 404 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Document wasn't found (can't remove)
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 404 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=Finding lawyer subscriptions
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=Lawyer customers was found
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Customer was found, email=test_customer1@protonmail.com
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 403 response
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Lawyer was found, email=test_lawyer@protonmail.com
- info: message=Finding all lawyer documents
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Admin was found, email=webapp_admin@mieterengel.de
- info: message=Can't create subscription (billing cycle is required), name=New subscription, price=23, currency=EUR, lawyer=1, hubspot_deal_pipeline_prop_key=qwer-23-qweqwe-324
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.fail :: Sending 400 response
- console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
- Error: Loggly Error (403): Forbidden
- at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
- at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- info: message=Admin was found, email=webapp_admin@mieterengel.de
- info: message=Subscription was created, name=New subscription, price=23, currency=EUR, lawyer=1, hubspot_deal_pipeline_prop_key=qwer-23-qweqwe-324, billing_cycle=12, id=300
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Customer subscription was updated, id=300
- info: message=Finding one subscription
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- info: message=Admin was found, email=webapp_admin@mieterengel.de
- info: message=Getting all subscriptions
- console.log node_modules/captains-log/lib/write.js:83
- verbose: res.ok :: Sending 200 response
- PASS tests/integration/controllers/AllControllers.int.test.js (9.52s)
- AuthController
- Login
- ✓ should return 400 HTTP code and error when customer doesn't exist (22ms)
- ✓ should return 200 HTTP code and customer info (112ms)
- ✓ should return 400 HTTP code and error when lawyer doesn't exist (14ms)
- ✓ should return 200 HTTP code and lawyer info (142ms)
- ConsultationController
- Find topics
- ✓ should return 200 HTTP code and consultation topics (38ms)
- Count unread customer messages
- ✓ should return 300 HTTP code and number (37ms)
- Count unanswered lawyers messages
- ✓ should return 200 HTTP code and number of unanswared questions (28ms)
- CustomerController
- Find one
- ✓ should return 403 HTTP code when trying to reach data of another user (12ms)
- ✓ should return 200 HTTP code and customer data (16ms)
- Update
- ✓ should return 403 HTTP code when trying to reach data of another user (9ms)
- ✓ should return 200 HTTP code and updated customer (50ms)
- Update password
- ✓ should return 400 HTTP code when old password is same as new password (19ms)
- ✓ should return 400 HTTP code and error when confirmPassword doesn't match new password (18ms)
- Find customer documents
- ✓ should return 404 HTTP code when trying to reach documents of another user (4ms)
- ✓ should return 200 HTTP code and customer documents (26ms)
- Find consultations
- ✓ should return 404 HTTP code when trying to reach consultations of another user (64ms)
- ✓ should return 200 HTTP code and customer consultations (18ms)
- Create consultation
- ✓ should return 500 HTTP code when no topic was provided (35ms)
- ✓ should return 200 HTTP code and consultation info (66ms)
- Find consultation
- ✓ should return 404 HTTP code when no consultation was found (14ms)
- ✓ should return 200 HTTP code and consultation info (62ms)
- Find lawyer
- ✓ should return 200 HTTP code and lawyer info (25ms)
- Find main subscription
- ✓ should return 200 HTTP code and subscription info (11ms)
- Create consultation message
- ✓ should return 400 HTTP code when sending 2 client messages in row (61ms)
- CustomerDocumentController
- Find customer document categories
- ✓ Should return 200 HTTP code and document categories (7ms)
- Find customer document category
- ✓ should return 200 HTTP code and document category (7ms)
- Create customer document category
- ✓ should return 200 HTTP code and created document category (20ms)
- Remove customer document category
- ✓ should return 200 HTTP code (20ms)
- Update customer document category
- ✓ should return 200 HTTP code (8ms)
- DocumentController
- Find document categories
- ✓ should return 200 HTTP code and document categories (8ms)
- Create document category
- ✓ should return 500 HTTP code when no document category name was provided (18ms)
- ✓ should return 200 HTTP code and created document category (23ms)
- Update document category
- ✓ should return 500 HTTP code when no document category name was provided (22ms)
- ✓ should return 200 HTTP code and updated document category (42ms)
- Find one
- ✓ should return 404 HTTP code when no document was found (11ms)
- ✓ should return 200 HTTP code and document info (12ms)
- Find
- ✓ should return 200 HTTP code and all documents (8ms)
- Update
- ✓ should return 404 HTTP code when document doesn't exist (17ms)
- ✓ should return 200 HTTP code and update document (14ms)
- Remove
- ✓ should return 404 HTTP code when document doesn't exist (14ms)
- ✓ should return 200 HTTP code (8ms)
- LawyerController
- Find subscriptions
- ✓ should return 403 HTTP code when trying to reach subscriptions of another lawyer (6ms)
- ✓ should return 200 HTTP code and subscriptions (10ms)
- Find customers
- ✓ should return 403 HTTP code when trying to reach customers of another lawyer (6ms)
- ✓ should return 200 HTTP code and customer info (18ms)
- Find customer
- ✓ should return 403 HTTP code when trying to reach customer of another lawyer (10ms)
- ✓ should return 200 HTTP code and customer info (8ms)
- Find customer documents
- ✓ should return 200 HTTP code and customer documents info (6ms)
- Find customer subscriptions
- ✓ should return 200 HTTP code and client subscriptions (6ms)
- Find customer consultations
- ✓ should return 200 HTTP code and customer consultations (10ms)
- Find lawyer consultations
- ✓ should return 200 HTTP code and lawyer consultations (11ms)
- Find consultation
- ✓ should return 200 HTTP code and consultation (7ms)
- Find documents
- ✓ should return 200 HTTP code and documents (15ms)
- SubscriptionController
- Create lawyer subscription
- ✓ should return 400 HTTP code when some request field is missing (20ms)
- ✓ should return 200 HTTP code when subscription was created (21ms)
- Update subscription
- ✓ should return 200 HTTP code (16ms)
- Get all subscriptions
- ✓ should return 200 HTTP code (11ms)
- Test Suites: 1 passed, 1 total
- Tests: 57 passed, 57 total
- Snapshots: 0 total
- Time: 9.649s
- Ran all test suites matching /\.int.test\.js$/i.
- testResultsProcessor support is deprecated. Please use jest reporter. See https://github.com/jest-community/jest-junit#usage:
- {
- "reporters": [
- "jest-junit"
- ]
- }
- Done in 11.17s.
- ====>> Run Unit Tests
- #!/bin/bash -eo pipefail
- yarn jest '\.unit.test\.js$' --ci --testResultsProcessor=jest-junit
- yarn run v1.6.0
- $ /home/circleci/repo/node_modules/.bin/jest '\.unit.test\.js$' --ci --testResultsProcessor=jest-junit
- PASS tests/unit/DocumentService.unit.test.js
- PASS tests/unit/ConsultationService.unit.test.js
- (node:225) UnhandledPromiseRejectionWarning: Error: expect(received).rejects.toThrow()
- Expected received Promise to reject, instead it resolved to value
- {"confirmNewsletterSent": true, "emailSent": true}
- (node:225) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
- (node:225) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- PASS tests/unit/AuthService.unit.test.js
- (node:219) UnhandledPromiseRejectionWarning: Error: expect(received).rejects.toThrow()
- Expected received Promise to reject, instead it resolved to value
- {"email": "test_customer@gmail.com", "first_name": "Test", "hubspot_vid": 10001, "id": 10, "is_activated": false, "last_name": "Customer", "membership_number": 20002, "mobile": null, "profile_picture_url": null}
- (node:219) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
- (node:219) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- PASS tests/unit/CustomerService.unit.test.js
- PASS tests/unit/LawyerService.unit.test.js
- PASS tests/unit/CustomerDocumentService.unit.test.js
- PASS tests/unit/LawyerDocumentService.unit.test.js
- PASS tests/unit/CustomerDocumentCategoryService.unit.test.js
- PASS tests/unit/SubscriptionService.unit.test.js
- PASS tests/unit/DocumentTypeService.unit.test.js
- PASS tests/unit/DocumentCategoryService.unit.test.js
- PASS tests/unit/CustomerNoteService.unit.test.js
- PASS tests/unit/AdminService.unit.test.js
- PASS tests/unit/ConsultationMessageService.unit.test.js
- PASS tests/unit/UtilService.unit.test.js
- PASS tests/unit/AWSBucketService.unit.test.js
- Test Suites: 16 passed, 16 total
- Tests: 1 skipped, 100 passed, 101 total
- Snapshots: 0 total
- Time: 2.737s
- Ran all test suites matching /\.unit.test\.js$/i.
- testResultsProcessor support is deprecated. Please use jest reporter. See https://github.com/jest-community/jest-junit#usage:
- {
- "reporters": [
- "jest-junit"
- ]
- }
- Done in 3.45s.
- ====>> Run Linter
- #!/bin/bash -eo pipefail
- yarn lint
- yarn run v1.6.0
- $ node_modules/.bin/standart
- Done in 2.13s.
- ====>> Uploading test results
- Archiving the following test results
- * /home/circleci/repo/reports/junit
- Error: Failed uploading test results directory
- Error &errors.errorString{s:"not supported"}
- ====>> Uploading artifacts
- Uploading /home/circleci/repo/reports/junit to home/circleci/repo/reports/junit
- Uploading /home/circleci/repo/reports/junit/integration/test-results-integration.xml (14 kB): {"Runner":true,"level":"error","msg":"Can't add file ///home/circleci/repo/reports/junit to tar: io: read/write on closed pipe","time":"2018-06-22T15:07:20Z"}
- {"Runner":true,"level":"error","msg":"Can't close tar writer: io: read/write on closed pipe","time":"2018-06-22T15:07:20Z"}
- Error: FAILED with error not supported
- Uploading /home/circleci/repo/reports/junit/unit/test-results-unit.xml (27 kB): Error: FAILED with error not supported
- Success!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement