Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
1,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 55.33 KB | None | 0 0
  1.  
  2. ====>> Spin up Environment
  3. Build-agent version 0.0.5895-01cdb92 (2018-05-29T20:07:10+0000)
  4. Starting container circleci/node:8.11.2
  5.   using image circleci/node@sha256:8ed7ee7353bfc4d639bc14804db26ed000365861de40b7a98f01ef55eb91e6df
  6. Starting container circleci/postgres:9.6-alpine-postgis-ram
  7.   using image circleci/postgres@sha256:1b49ac27f153d0e674759bd0cdcfc22e6c3f17219575cca7949a5b345197e5ba
  8. ====>> Container circleci/postgres:9.6-alpine-postgis-ram
  9. Service containers logs streaming is disabled for local builds
  10. You can manually monitor container 54b2397dc407947f73c1ef09c641d1d61f9807246a2ab75a66869a0b6fe386e7
  11. ====>> Checkout code
  12.   #!/bin/sh
  13. mkdir -p /home/circleci/repo && cp -r /tmp/_circleci_local_build_repo/. /home/circleci/repo
  14. ====>> Install Jest
  15.   #!/bin/bash -eo pipefail
  16. yarn add --dev jest-junit
  17.  
  18. yarn add v1.6.0
  19. [1/4] Resolving packages...
  20. warning apidoc > nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
  21. [2/4] Fetching packages...
  22. info fsevents@1.2.3: The platform "linux" is incompatible with this module.
  23. info "fsevents@1.2.3" is an optional dependency and failed compatibility check. Excluding it from installation.
  24. [3/4] Linking dependencies...
  25. [4/4] Building fresh packages...
  26. success Saved lockfile.
  27. success Saved 75 new dependencies.
  28. info Direct dependencies
  29. ├─ apidoc@0.17.6
  30. ├─ jest-junit@5.1.0
  31. ├─ standart@6.1.0
  32. ├─ winston-loggly-bulk@2.0.2
  33. └─ winston@2.4.3
  34. info All dependencies
  35. ├─ acorn-jsx@3.0.1
  36. ├─ ajv-keywords@1.5.1
  37. ├─ ajv@4.11.8
  38. ├─ apidoc-core@0.8.3
  39. ├─ apidoc@0.17.6
  40. ├─ array-union@1.0.2
  41. ├─ array-uniq@1.0.3
  42. ├─ caller-path@0.1.0
  43. ├─ circular-json@0.3.3
  44. ├─ cli-cursor@1.0.2
  45. ├─ cli-width@2.2.0
  46. ├─ concat-stream@1.6.2
  47. ├─ debug-log@1.0.1
  48. ├─ deglob@2.1.1
  49. ├─ del@2.2.2
  50. ├─ entities@1.1.1
  51. ├─ es6-map@0.1.5
  52. ├─ es6-set@0.1.5
  53. ├─ es6-symbol@3.1.1
  54. ├─ es6-weak-map@2.0.2
  55. ├─ escope@3.6.0
  56. ├─ eslint-config-standard-jsx@3.2.0
  57. ├─ eslint-config-standart@0.2.0
  58. ├─ eslint-plugin-promise@3.4.2
  59. ├─ eslint-plugin-react@6.7.1
  60. ├─ eslint-plugin-standard@2.0.1
  61. ├─ eslint@3.11.1
  62. ├─ espree@3.5.4
  63. ├─ esrecurse@4.2.1
  64. ├─ exit-hook@1.1.1
  65. ├─ file-entry-cache@2.0.0
  66. ├─ flat-cache@1.3.0
  67. ├─ generate-function@2.0.0
  68. ├─ generate-object-property@1.2.0
  69. ├─ globby@5.0.0
  70. ├─ ignore@3.3.10
  71. ├─ inquirer@0.12.0
  72. ├─ is-my-ip-valid@1.0.0
  73. ├─ is-my-json-valid@2.17.2
  74. ├─ is-path-cwd@1.0.0
  75. ├─ is-path-in-cwd@1.0.1
  76. ├─ is-path-inside@1.0.1
  77. ├─ is-property@1.0.2
  78. ├─ is-resolvable@1.1.0
  79. ├─ jest-junit@5.1.0
  80. ├─ js-yaml@3.12.0
  81. ├─ jsonpointer@4.0.1
  82. ├─ jsx-ast-utils@1.4.1
  83. ├─ klaw-sync@2.1.0
  84. ├─ linkify-it@2.0.3
  85. ├─ markdown-it@8.4.1
  86. ├─ mdurl@1.0.1
  87. ├─ next-tick@1.0.0
  88. ├─ node-loggly-bulk@2.2.2
  89. ├─ onetime@1.1.0
  90. ├─ pkg-config@1.1.1
  91. ├─ progress@1.1.8
  92. ├─ readline2@1.0.1
  93. ├─ require-uncached@1.0.3
  94. ├─ restore-cursor@1.0.1
  95. ├─ run-async@0.1.0
  96. ├─ run-parallel@1.1.9
  97. ├─ rx-lite@3.1.2
  98. ├─ shelljs@0.7.8
  99. ├─ slice-ansi@0.0.4
  100. ├─ standard-engine@5.3.0
  101. ├─ standart@6.1.0
  102. ├─ table@3.8.3
  103. ├─ uc.micro@1.0.5
  104. ├─ uniq@1.0.1
  105. ├─ user-home@2.0.0
  106. ├─ winston-loggly-bulk@2.0.2
  107. ├─ winston@2.4.3
  108. ├─ write@0.2.1
  109. └─ xml@1.0.1
  110. Done in 77.90s.
  111. ====>> Run Integration Tests
  112.   #!/bin/bash -eo pipefail
  113. yarn jest '\.int.test\.js$' --runInBand --forceExit --ci --testResultsProcessor=jest-junit -c='./jest.int.config.js'
  114.  
  115. yarn run v1.6.0
  116. $ /home/circleci/repo/node_modules/.bin/jest '\.int.test\.js$' --runInBand --forceExit --ci --testResultsProcessor=jest-junit -c=./jest.int.config.js
  117.   i18n:debug will use /home/circleci/repo/config/locales/en.json +0ms
  118.   i18n:debug read /home/circleci/repo/config/locales/en.json for locale: en +2ms
  119.   i18n:debug will use /home/circleci/repo/config/locales/es.json +1ms
  120.   i18n:debug read /home/circleci/repo/config/locales/es.json for locale: es +0ms
  121.   i18n:debug will use /home/circleci/repo/config/locales/fr.json +1ms
  122.   i18n:debug read /home/circleci/repo/config/locales/fr.json for locale: fr +0ms
  123.   i18n:debug will use /home/circleci/repo/config/locales/de.json +1ms
  124.   i18n:debug read /home/circleci/repo/config/locales/de.json for locale: de +0ms
  125.   console.log node_modules/captains-log/lib/write.js:83
  126.     verbose: logger hook loaded successfully.
  127.  
  128.   console.log node_modules/captains-log/lib/write.js:83
  129.     verbose: request hook loaded successfully.
  130.  
  131.   console.log node_modules/captains-log/lib/write.js:83
  132.     verbose: Loading the app's models and any custom adapters...
  133.  
  134.  console.log node_modules/captains-log/lib/write.js:83
  135.    verbose: Loading app models...
  136.  
  137.  console.log node_modules/captains-log/lib/write.js:83
  138.    verbose: Loading app adapters...
  139.  
  140.  console.log node_modules/captains-log/lib/write.js:83
  141.    verbose: Overriding ejs engine config with ejslocals to implement layout support...
  142.  
  143.  console.log node_modules/captains-log/lib/write.js:83
  144.    verbose: views hook loaded successfully.
  145.  
  146.  console.log node_modules/captains-log/lib/write.js:83
  147.    verbose: Loading blueprint middleware...
  148.  
  149.  console.log node_modules/captains-log/lib/write.js:83
  150.    verbose: blueprints hook loaded successfully.
  151.  
  152.  console.log node_modules/captains-log/lib/write.js:83
  153.    verbose: responses hook loaded successfully.
  154.  
  155.  console.log node_modules/captains-log/lib/write.js:83
  156.    verbose: controllers hook loaded successfully.
  157.  
  158.  console.log node_modules/captains-log/lib/write.js:83
  159.    verbose: Loading policy modules from app...
  160.  
  161.  console.log node_modules/captains-log/lib/write.js:83
  162.    verbose: Finished loading policy middleware logic.
  163.  
  164.  console.log node_modules/captains-log/lib/write.js:83
  165.    verbose: policies hook loaded successfully.
  166.  
  167.  console.log node_modules/captains-log/lib/write.js:83
  168.    verbose: services hook loaded successfully.
  169.  
  170.  console.log node_modules/captains-log/lib/write.js:83
  171.    verbose: csrf hook loaded successfully.
  172.  
  173.  console.log node_modules/captains-log/lib/write.js:83
  174.    verbose: cors hook loaded successfully.
  175.  
  176.  console.log node_modules/captains-log/lib/write.js:83
  177.    verbose: i18n hook loaded successfully.
  178.  
  179.  console.log node_modules/captains-log/lib/write.js:83
  180.    verbose: session hook loaded successfully.
  181.  
  182.  console.log node_modules/captains-log/lib/write.js:83
  183.    verbose: Setting default Express view engine to ejs...
  184.  
  185.  console.log node_modules/captains-log/lib/write.js:83
  186.    verbose: http hook loaded successfully.
  187.  
  188.  console.log node_modules/captains-log/lib/write.js:83
  189.    verbose: Preparing socket.io...
  190.  
  191.  console.log node_modules/captains-log/lib/write.js:83
  192.    verbose: sockets hook loaded successfully.
  193.  
  194.  console.log node_modules/captains-log/lib/write.js:83
  195.    verbose: Loading adapter (`sails-postgresql`) from this app's `node_modules/` directory...
  196.  
  197.   console.log node_modules/captains-log/lib/write.js:83
  198.     verbose: Starting ORM...
  199.  
  200.   console.log node_modules/captains-log/lib/write.js:83
  201.     verbose: orm hook loaded successfully.
  202.  
  203.   console.log node_modules/captains-log/lib/write.js:83
  204.     verbose: pubsub hook loaded successfully.
  205.  
  206.   console.log node_modules/captains-log/lib/write.js:83
  207.     verbose: validation hook loaded successfully.
  208.  
  209.   console.log node_modules/captains-log/lib/write.js:83
  210.     verbose: Built-in hooks are ready.
  211.  
  212.   console.log node_modules/captains-log/lib/write.js:83
  213.     verbose: Instantiating registry...
  214.  
  215.   console.log node_modules/captains-log/lib/write.js:83
  216.     verbose: Loading router...
  217.  
  218.   console.log node_modules/captains-log/lib/write.js:83
  219.     verbose: Policy-controller bindings complete!
  220.  
  221.   console.log node_modules/captains-log/lib/write.js:83
  222.     verbose: All hooks were loaded successfully.
  223.  
  224.   console.log node_modules/captains-log/lib/write.js:83
  225.     verbose: Starting app at /home/circleci/repo...
  226.  
  227.   console.log node_modules/captains-log/lib/write.js:83
  228.     verbose: Running the setup logic in `sails.config.bootstrap(cb)`...
  229.  
  230.   console.log node_modules/captains-log/lib/write.js:83
  231.     info: Migrated: 23
  232.  
  233.   console.log node_modules/captains-log/lib/write.js:83
  234.     info:
  235.  
  236.   console.log node_modules/captains-log/lib/write.js:83
  237.     info:                .-..-.
  238.  
  239.   console.log node_modules/captains-log/lib/write.js:83
  240.     info:
  241.  
  242.   console.log node_modules/captains-log/lib/write.js:83
  243.     info:    Sails              <|    .-..-.
  244.  
  245.   console.log node_modules/captains-log/lib/write.js:83
  246.     info:    v0.12.14            |\
  247.  
  248.   console.log node_modules/captains-log/lib/write.js:83
  249.     info:                       /|.\
  250.  
  251.   console.log node_modules/captains-log/lib/write.js:83
  252.     info:                      / || \
  253.  
  254.   console.log node_modules/captains-log/lib/write.js:83
  255.     info:                    ,'  |'  \
  256.  
  257.   console.log node_modules/captains-log/lib/write.js:83
  258.     info:                 .-'.-==|/_--'
  259.  
  260.   console.log node_modules/captains-log/lib/write.js:83
  261.     info:                 `--'-------'
  262.  
  263.   console.log node_modules/captains-log/lib/write.js:83
  264.     info:    __---___--___---___--___---___--___
  265.  
  266.   console.log node_modules/captains-log/lib/write.js:83
  267.     info:  ____---___--___---___--___---___--___-__
  268.  
  269.   console.log node_modules/captains-log/lib/write.js:83
  270.     info:
  271.  
  272.   console.log node_modules/captains-log/lib/write.js:83
  273.     info: Server lifted in `/home/circleci/repo`
  274.  
  275.   console.log node_modules/captains-log/lib/write.js:83
  276.     info: To see your app, visit http://localhost:1337
  277.  
  278.   console.log node_modules/captains-log/lib/write.js:83
  279.     info: To shut down Sails, press <CTRL> + C at any time.
  280.  
  281.   console.log node_modules/captains-log/lib/write.js:83
  282.    
  283.  
  284.   console.error node_modules/captains-log/lib/write.js:83
  285.     debug: -------------------------------------------------------
  286.  
  287.   console.error node_modules/captains-log/lib/write.js:83
  288.     debug: :: Fri Jun 22 2018 15:07:11 GMT+0000 (UTC)
  289.  
  290.   console.log node_modules/captains-log/lib/write.js:83
  291.    
  292.  
  293.   console.error node_modules/captains-log/lib/write.js:83
  294.     debug: Environment : test
  295.  
  296.   console.error node_modules/captains-log/lib/write.js:83
  297.     debug: Port        : 1337
  298.  
  299.   console.error node_modules/captains-log/lib/write.js:83
  300.     debug: -------------------------------------------------------
  301.  
  302. (node:150) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
  303. info:  message=Customer was found, email=test_customer1@protonmail.com
  304. info:  message=User successfully logged in, email=test_customer1@protonmail.com
  305.   console.log node_modules/captains-log/lib/write.js:83
  306.     verbose: res.ok :: Sending 200 response
  307.  
  308. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  309. info:  message=User successfully logged in, email=test_lawyer@protonmail.com
  310.   console.log node_modules/captains-log/lib/write.js:83
  311.     verbose: res.ok :: Sending 200 response
  312.  
  313. info:  message=Admin was found, email=webapp_admin@mieterengel.de
  314. info:  message=User successfully logged in, email=webapp_admin@mieterengel.de
  315.   console.log node_modules/captains-log/lib/write.js:83
  316.     verbose: res.ok :: Sending 200 response
  317.  
  318. info:  message=Customer wasn't found, email=user@test.com
  319.  console.log node_modules/captains-log/lib/write.js:83
  320.    verbose: res.fail :: Sending 400 response
  321.  
  322. info:  message=Customer was found, email=test_customer1@protonmail.com
  323. info:  message=User successfully logged in, email=test_customer1@protonmail.com
  324.  console.log node_modules/captains-log/lib/write.js:83
  325.    verbose: res.ok :: Sending 200 response
  326.  
  327. info:  message=Customer wasn't found, email=lawyer@test.com
  328.   console.log node_modules/captains-log/lib/write.js:83
  329.     verbose: res.fail :: Sending 400 response
  330.  
  331. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  332. info:  message=User successfully logged in, email=test_lawyer@protonmail.com
  333.   console.log node_modules/captains-log/lib/write.js:83
  334.     verbose: res.ok :: Sending 200 response
  335.  
  336. info:  message=Customer was found, email=test_customer1@protonmail.com
  337. info:  message=Finding all topic
  338.   console.log node_modules/captains-log/lib/write.js:83
  339.     verbose: res.ok :: Sending 200 response
  340.  
  341. info:  message=Customer was found, email=test_customer1@protonmail.com
  342.   console.log node_modules/captains-log/lib/write.js:83
  343.     verbose: res.ok :: Sending 200 response
  344.  
  345. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  346.   console.log node_modules/captains-log/lib/write.js:83
  347.     verbose: res.ok :: Sending 200 response
  348.  
  349. info:  message=Customer was found, email=test_customer1@protonmail.com
  350.   console.log node_modules/captains-log/lib/write.js:83
  351.     verbose: res.fail :: Sending 403 response
  352.  
  353. info:  message=Customer was found, email=test_customer1@protonmail.com
  354. info:  message=Customer was found, email=test_customer1@protonmail.com
  355.   console.log node_modules/captains-log/lib/write.js:83
  356.     verbose: res.ok :: Sending 200 response
  357.  
  358. info:  message=Customer was found, email=test_customer1@protonmail.com
  359.   console.log node_modules/captains-log/lib/write.js:83
  360.     verbose: res.fail :: Sending 403 response
  361.  
  362. info:  message=Customer was found, email=test_customer1@protonmail.com
  363. info:  message=Could not update hubspot contact, statusCode=404, error=Hubspot contact vid not found, email=test_customer1@protonmail.com
  364.   console.error node_modules/captains-log/lib/write.js:83
  365.     error: Could not update hubspot contact: Error: Hubspot contact vid not found
  366.  
  367. info:  message=Customer was updated, email=test_customer1@protonmail.com
  368. info:  message=Customer was found, email=test_customer1@protonmail.com
  369.   console.log node_modules/captains-log/lib/write.js:83
  370.     verbose: res.ok :: Sending 200 response
  371.  
  372. info:  message=Customer was found, email=test_customer1@protonmail.com
  373.   console.log node_modules/captains-log/lib/write.js:83
  374.     verbose: res.fail :: Sending 400 response
  375.  
  376. info:  message=Customer was found, email=test_customer1@protonmail.com
  377.   console.log node_modules/captains-log/lib/write.js:83
  378.     verbose: res.fail :: Sending 400 response
  379.  
  380.   console.log node_modules/captains-log/lib/write.js:83
  381.     verbose: Sending 404 ("Not Found") response
  382.  
  383. info:  message=Customer was found, email=test_customer1@protonmail.com
  384. info:  message=Finding customer documents
  385.   console.log node_modules/captains-log/lib/write.js:83
  386.     verbose: res.ok :: Sending 200 response
  387.  
  388.   console.log node_modules/captains-log/lib/write.js:83
  389.     verbose: Sending 404 ("Not Found") response
  390.  
  391. info:  message=Customer was found, email=test_customer1@protonmail.com
  392.   console.log node_modules/captains-log/lib/write.js:83
  393.     verbose: res.ok :: Sending 200 response
  394.  
  395. info:  message=Customer was found, email=test_customer1@protonmail.com
  396. info:  message=Customer subscription was found, id=5
  397.   console.error node_modules/captains-log/lib/write.js:83
  398.     error: error: null value in column "topic_id" violates not-null constraint
  399.         at Connection.Object.<anonymous>.Connection.parseE (/home/circleci/repo/node_modules/pg/lib/connection.js:545:11)
  400.         at Connection.Object.<anonymous>.Connection.parseMessage (/home/circleci/repo/node_modules/pg/lib/connection.js:370:19)
  401.         at Socket.<anonymous> (/home/circleci/repo/node_modules/pg/lib/connection.js:113:22)
  402.         at emitOne (events.js:116:13)
  403.         at Socket.emit (events.js:211:7)
  404.         at addChunk (_stream_readable.js:263:12)
  405.         at readableAddChunk (_stream_readable.js:250:11)
  406.         at Socket.Readable.push (_stream_readable.js:208:10)
  407.         at TCP.onread (net.js:597:20)
  408.  
  409.   console.log node_modules/captains-log/lib/write.js:83
  410.     verbose: res.fail :: Sending 500 response
  411.  
  412. info:  message=Customer was found, email=test_customer1@protonmail.com
  413. info:  message=Customer subscription was found, id=5
  414. info:  message=Created consultation
  415. info:  message=Consultation message was found, consultation=6
  416. info:  message=Customer was found, email=test_customer1@protonmail.com
  417. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  418. info:  message=Consultation was found, query=6
  419.   console.log node_modules/captains-log/lib/write.js:83
  420.     verbose: res.ok :: Sending 200 response
  421.  
  422. info:  message=Customer was found, email=test_customer1@protonmail.com
  423. info:  message=Consultation wasn't found (can't find one), id=2147483647, customer=4
  424.   console.log node_modules/captains-log/lib/write.js:83
  425.     verbose: res.fail :: Sending 404 response
  426.  
  427. info:  message=Customer was found, email=test_customer1@protonmail.com
  428.   console.log node_modules/captains-log/lib/write.js:83
  429.     verbose: res.ok :: Sending 200 response
  430.  
  431. info:  message=Customer was found, email=test_customer1@protonmail.com
  432. info:  message=Consultation message was found, consultation=6
  433. info:  message=Customer was found, email=test_customer1@protonmail.com
  434. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  435. info:  message=Consultation was found, id=6, customer=4
  436. info:  message=Consultation message is updating, query=[]
  437.   console.log node_modules/captains-log/lib/write.js:83
  438.     verbose: res.ok :: Sending 200 response
  439.  
  440. info:  message=Customer was found, email=test_customer1@protonmail.com
  441. info:  message=Customer subscription was found, id=5
  442. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  443. info:  message=Lawyer was found
  444.   console.log node_modules/captains-log/lib/write.js:83
  445.     verbose: res.ok :: Sending 200 response
  446.  
  447. info:  message=Customer was found, email=test_customer1@protonmail.com
  448. info:  message=Customer subscription was found, id=5
  449.   console.log node_modules/captains-log/lib/write.js:83
  450.     verbose: res.ok :: Sending 200 response
  451.  
  452. info:  message=Customer was found, email=test_customer1@protonmail.com
  453.   console.log node_modules/captains-log/lib/write.js:83
  454.     verbose: res.ok :: Sending 200 response
  455.  
  456. info:  message=Customer was found, email=test_customer1@protonmail.com
  457. info:  message=Consultation message was found, consultation=6
  458. info:  message=Customer was found, email=test_customer1@protonmail.com
  459. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  460.   console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  461.     Error: Loggly Error (403): Forbidden
  462.         at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  463.         at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  464.         at emitTwo (events.js:126:13)
  465.         at Request.emit (events.js:214:7)
  466.         at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  467.         at emitOne (events.js:116:13)
  468.         at Request.emit (events.js:211:7)
  469.         at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  470.         at Object.onceWrapper (events.js:313:30)
  471.         at emitNone (events.js:111:20)
  472.         at IncomingMessage.emit (events.js:208:7)
  473.         at endReadableNT (_stream_readable.js:1064:12)
  474.         at _combinedTickCallback (internal/process/next_tick.js:138:11)
  475.         at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  476.  
  477.   console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  478.     Error: Loggly Error (403): Forbidden
  479.         at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  480.         at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  481.         at emitTwo (events.js:126:13)
  482.         at Request.emit (events.js:214:7)
  483.         at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  484.         at emitOne (events.js:116:13)
  485.         at Request.emit (events.js:211:7)
  486.         at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  487.         at Object.onceWrapper (events.js:313:30)
  488.         at emitNone (events.js:111:20)
  489.         at IncomingMessage.emit (events.js:208:7)
  490.         at endReadableNT (_stream_readable.js:1064:12)
  491.         at _combinedTickCallback (internal/process/next_tick.js:138:11)
  492.         at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  493.  
  494.   console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  495.     Error: Loggly Error (403): Forbidden
  496.         at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  497.         at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  498.         at emitTwo (events.js:126:13)
  499.         at Request.emit (events.js:214:7)
  500.         at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  501.         at emitOne (events.js:116:13)
  502.         at Request.emit (events.js:211:7)
  503.         at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  504.         at Object.onceWrapper (events.js:313:30)
  505.         at emitNone (events.js:111:20)
  506.         at IncomingMessage.emit (events.js:208:7)
  507.         at endReadableNT (_stream_readable.js:1064:12)
  508.         at _combinedTickCallback (internal/process/next_tick.js:138:11)
  509.         at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  510.  
  511.   console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  512.     Error: Loggly Error (403): Forbidden
  513.         at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  514.         at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  515.         at emitTwo (events.js:126:13)
  516.         at Request.emit (events.js:214:7)
  517.         at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  518.         at emitOne (events.js:116:13)
  519.         at Request.emit (events.js:211:7)
  520.         at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  521.         at Object.onceWrapper (events.js:313:30)
  522.         at emitNone (events.js:111:20)
  523.         at IncomingMessage.emit (events.js:208:7)
  524.         at endReadableNT (_stream_readable.js:1064:12)
  525.         at _combinedTickCallback (internal/process/next_tick.js:138:11)
  526.         at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  527.  
  528. info:  message=Consultation was found, id=6, customer=4
  529. info:  message=Сan't create new consultation message due to wrong message author, id=6, customer=4
  530.  console.log node_modules/captains-log/lib/write.js:83
  531.    verbose: res.fail :: Sending 400 response
  532.  
  533. info:  message=Customer was found, email=test_customer1@protonmail.com
  534. info:  message=Finding customer document categories
  535.  console.log node_modules/captains-log/lib/write.js:83
  536.    verbose: res.ok :: Sending 200 response
  537.  
  538. info:  message=Customer was found, email=test_customer1@protonmail.com
  539. info:  message=Finding customer document categories
  540.  console.log node_modules/captains-log/lib/write.js:83
  541.    verbose: res.ok :: Sending 200 response
  542.  
  543. info:  message=Customer was found, email=test_customer1@protonmail.com
  544. info:  message=Creating customer document category
  545.  console.log node_modules/captains-log/lib/write.js:83
  546.    verbose: res.ok :: Sending 200 response
  547.  
  548. info:  message=Customer was found, email=test_customer1@protonmail.com
  549. info:  message=Finding customer document categories
  550.  console.log node_modules/captains-log/lib/write.js:83
  551.    verbose: res.ok :: Sending 200 response
  552.  
  553. info:  message=Customer was found, email=test_customer1@protonmail.com
  554. info:  message=Customer document category was removed, id=1
  555.  console.log node_modules/captains-log/lib/write.js:83
  556.    verbose: res.ok :: Sending 200 response
  557.  
  558. info:  message=Customer was found, email=test_customer1@protonmail.com
  559. info:  message=Finding customer document categories
  560.  console.log node_modules/captains-log/lib/write.js:83
  561.    verbose: res.ok :: Sending 200 response
  562.  
  563. info:  message=Customer was found, email=test_customer1@protonmail.com
  564. info:  message=Finding document category
  565.  console.log node_modules/captains-log/lib/write.js:83
  566.    verbose: res.ok :: Sending 200 response
  567.  
  568. info:  message=Customer was found, email=test_customer1@protonmail.com
  569. info:  message=Creating document category
  570.  console.error node_modules/captains-log/lib/write.js:83
  571.    error: Error (E_VALIDATION) :: 1 attribute is invalid
  572.        at new WLError (/home/circleci/repo/node_modules/waterline/lib/waterline/error/WLError.js:26:15)
  573.        at Object.<anonymous>.module.exports.patch (/home/circleci/repo/node_modules/sails-hook-validation/lib/WLValidationError.js:8:13)
  574.        at /home/circleci/repo/node_modules/sails-hook-validation/lib/create.js:66:48
  575.        at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/dql/create.js:73:23
  576.        at /home/circleci/repo/node_modules/async/lib/async.js:726:13
  577.        at /home/circleci/repo/node_modules/async/lib/async.js:52:16
  578.        at /home/circleci/repo/node_modules/async/lib/async.js:264:21
  579.        at /home/circleci/repo/node_modules/async/lib/async.js:44:16
  580.        at /home/circleci/repo/node_modules/async/lib/async.js:723:17
  581.        at /home/circleci/repo/node_modules/async/lib/async.js:167:37
  582.        at /home/circleci/repo/node_modules/sails-hook-validation/lib/validate.js:45:21
  583.        at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:79:23
  584.        at /home/circleci/repo/node_modules/async/lib/async.js:726:13
  585.        at /home/circleci/repo/node_modules/async/lib/async.js:52:16
  586.        at /home/circleci/repo/node_modules/async/lib/async.js:264:21
  587.        at /home/circleci/repo/node_modules/async/lib/async.js:44:16
  588.        at /home/circleci/repo/node_modules/async/lib/async.js:723:17
  589.        at /home/circleci/repo/node_modules/async/lib/async.js:167:37
  590.        at _afterValidating (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:53:20)
  591.        at allValidationsChecked (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/core/validations.js:265:12)
  592.        at /home/circleci/repo/node_modules/async/lib/async.js:52:16
  593.        at Object.<anonymous>.async.forEachOf.async.eachOf (/home/circleci/repo/node_modules/async/lib/async.js:236:30)
  594.        at Object.<anonymous>.async.forEach.async.each (/home/circleci/repo/node_modules/async/lib/async.js:209:22)
  595.        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)
  596.        at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:42:25
  597.        at /home/circleci/repo/node_modules/async/lib/async.js:718:13
  598.        at Immediate.iterate (/home/circleci/repo/node_modules/async/lib/async.js:262:13)
  599.        at runCallback (timers.js:810:20)
  600.    
  601.    Details:  Details:  Invalid attributes sent to DocumentCategory:
  602.     • name
  603.       • Value should be a string (instead of null, which is an object)
  604.       • "required" validation rule failed for input: null
  605.    Specifically, it threw an error.  Details:
  606.     undefined
  607.    
  608.    
  609.    
  610.  
  611.  console.log node_modules/captains-log/lib/write.js:83
  612.    verbose: res.fail :: Sending 500 response
  613.  
  614. info:  message=Customer was found, email=test_customer1@protonmail.com
  615. info:  message=Creating document category
  616.  console.log node_modules/captains-log/lib/write.js:83
  617.    verbose: res.ok :: Sending 200 response
  618.  
  619. info:  message=Customer was found, email=test_customer1@protonmail.com
  620. info:  message=Finding document category
  621.  console.log node_modules/captains-log/lib/write.js:83
  622.    verbose: res.ok :: Sending 200 response
  623.  
  624. info:  message=Customer was found, email=test_customer1@protonmail.com
  625.  console.error node_modules/captains-log/lib/write.js:83
  626.    error: Error (E_VALIDATION) :: 1 attribute is invalid
  627.        at new WLError (/home/circleci/repo/node_modules/waterline/lib/waterline/error/WLError.js:26:15)
  628.        at Object.<anonymous>.module.exports.patch (/home/circleci/repo/node_modules/sails-hook-validation/lib/WLValidationError.js:8:13)
  629.        at /home/circleci/repo/node_modules/sails-hook-validation/lib/update.js:57:48
  630.        at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/dql/update.js:57:23
  631.        at /home/circleci/repo/node_modules/async/lib/async.js:726:13
  632.        at /home/circleci/repo/node_modules/async/lib/async.js:52:16
  633.        at /home/circleci/repo/node_modules/async/lib/async.js:264:21
  634.        at /home/circleci/repo/node_modules/async/lib/async.js:44:16
  635.        at /home/circleci/repo/node_modules/async/lib/async.js:723:17
  636.        at /home/circleci/repo/node_modules/async/lib/async.js:167:37
  637.        at /home/circleci/repo/node_modules/sails-hook-validation/lib/validate.js:45:21
  638.        at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:79:23
  639.        at /home/circleci/repo/node_modules/async/lib/async.js:726:13
  640.        at /home/circleci/repo/node_modules/async/lib/async.js:52:16
  641.        at /home/circleci/repo/node_modules/async/lib/async.js:264:21
  642.        at /home/circleci/repo/node_modules/async/lib/async.js:44:16
  643.        at /home/circleci/repo/node_modules/async/lib/async.js:723:17
  644.        at /home/circleci/repo/node_modules/async/lib/async.js:167:37
  645.        at _afterValidating (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:53:20)
  646.        at allValidationsChecked (/home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/core/validations.js:265:12)
  647.        at /home/circleci/repo/node_modules/async/lib/async.js:52:16
  648.        at Object.<anonymous>.async.forEachOf.async.eachOf (/home/circleci/repo/node_modules/async/lib/async.js:236:30)
  649.        at Object.<anonymous>.async.forEach.async.each (/home/circleci/repo/node_modules/async/lib/async.js:209:22)
  650.        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)
  651.        at /home/circleci/repo/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/query/validate.js:42:25
  652.        at /home/circleci/repo/node_modules/async/lib/async.js:718:13
  653.        at Immediate.iterate (/home/circleci/repo/node_modules/async/lib/async.js:262:13)
  654.        at runCallback (timers.js:810:20)
  655.    
  656.    Details:  Details:  Invalid attributes sent to DocumentCategory:
  657.     • name
  658.       • Value should be a string (instead of null, which is an object)
  659.       • "required" validation rule failed for input: null
  660.    Specifically, it threw an error.  Details:
  661.     undefined
  662.    
  663.    
  664.    
  665.  
  666.  console.log node_modules/captains-log/lib/write.js:83
  667.    verbose: res.fail :: Sending 500 response
  668.  
  669.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  670.    Error: Loggly Error (403): Forbidden
  671.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  672.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  673.        at emitTwo (events.js:126:13)
  674.        at Request.emit (events.js:214:7)
  675.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  676.        at emitOne (events.js:116:13)
  677.        at Request.emit (events.js:211:7)
  678.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  679.        at Object.onceWrapper (events.js:313:30)
  680.        at emitNone (events.js:111:20)
  681.        at IncomingMessage.emit (events.js:208:7)
  682.        at endReadableNT (_stream_readable.js:1064:12)
  683.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  684.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  685.  
  686.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  687.    Error: Loggly Error (403): Forbidden
  688.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  689.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  690.        at emitTwo (events.js:126:13)
  691.        at Request.emit (events.js:214:7)
  692.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  693.        at emitOne (events.js:116:13)
  694.        at Request.emit (events.js:211:7)
  695.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  696.        at Object.onceWrapper (events.js:313:30)
  697.        at emitNone (events.js:111:20)
  698.        at IncomingMessage.emit (events.js:208:7)
  699.        at endReadableNT (_stream_readable.js:1064:12)
  700.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  701.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  702.  
  703.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  704.    Error: Loggly Error (403): Forbidden
  705.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  706.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  707.        at emitTwo (events.js:126:13)
  708.        at Request.emit (events.js:214:7)
  709.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  710.        at emitOne (events.js:116:13)
  711.        at Request.emit (events.js:211:7)
  712.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  713.        at Object.onceWrapper (events.js:313:30)
  714.        at emitNone (events.js:111:20)
  715.        at IncomingMessage.emit (events.js:208:7)
  716.        at endReadableNT (_stream_readable.js:1064:12)
  717.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  718.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  719.  
  720. info:  message=Customer was found, email=test_customer1@protonmail.com
  721. info:  message=Finding document category
  722.  console.log node_modules/captains-log/lib/write.js:83
  723.    verbose: res.ok :: Sending 200 response
  724.  
  725. info:  message=Customer was found, email=test_customer1@protonmail.com
  726. info:  message=Document category was updated, id=1
  727. info:  message=Document category was found, query=1
  728.  console.log node_modules/captains-log/lib/write.js:83
  729.    verbose: res.ok :: Sending 200 response
  730.  
  731. info:  message=Customer was found, email=test_customer1@protonmail.com
  732. info:  message=Document wasn't found (can't find), query=2147483647
  733.  console.log node_modules/captains-log/lib/write.js:83
  734.    verbose: res.fail :: Sending 404 response
  735.  
  736. info:  message=Customer was found, email=test_customer1@protonmail.com
  737.  console.log node_modules/captains-log/lib/write.js:83
  738.    verbose: res.ok :: Sending 200 response
  739.  
  740. info:  message=Customer was found, email=test_customer1@protonmail.com
  741.  console.log node_modules/captains-log/lib/write.js:83
  742.    verbose: res.ok :: Sending 200 response
  743.  
  744. info:  message=Customer was found, email=test_customer1@protonmail.com
  745. info:  message=Document wasn't found (can't update)
  746.  console.log node_modules/captains-log/lib/write.js:83
  747.    verbose: res.fail :: Sending 404 response
  748.  
  749. info:  message=Customer was found, email=test_customer1@protonmail.com
  750.  console.log node_modules/captains-log/lib/write.js:83
  751.    verbose: res.ok :: Sending 200 response
  752.  
  753.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  754.    Error: Loggly Error (403): Forbidden
  755.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  756.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  757.        at emitTwo (events.js:126:13)
  758.        at Request.emit (events.js:214:7)
  759.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  760.        at emitOne (events.js:116:13)
  761.        at Request.emit (events.js:211:7)
  762.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  763.        at Object.onceWrapper (events.js:313:30)
  764.        at emitNone (events.js:111:20)
  765.        at IncomingMessage.emit (events.js:208:7)
  766.        at endReadableNT (_stream_readable.js:1064:12)
  767.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  768.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  769.  
  770. info:  message=Customer was found, email=test_customer1@protonmail.com
  771.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  772.    Error: Loggly Error (403): Forbidden
  773.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  774.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  775.        at emitTwo (events.js:126:13)
  776.        at Request.emit (events.js:214:7)
  777.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  778.        at emitOne (events.js:116:13)
  779.        at Request.emit (events.js:211:7)
  780.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  781.        at Object.onceWrapper (events.js:313:30)
  782.        at emitNone (events.js:111:20)
  783.        at IncomingMessage.emit (events.js:208:7)
  784.        at endReadableNT (_stream_readable.js:1064:12)
  785.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  786.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  787.  
  788.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  789.    Error: Loggly Error (403): Forbidden
  790.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  791.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  792.        at emitTwo (events.js:126:13)
  793.        at Request.emit (events.js:214:7)
  794.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  795.        at emitOne (events.js:116:13)
  796.        at Request.emit (events.js:211:7)
  797.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  798.        at Object.onceWrapper (events.js:313:30)
  799.        at emitNone (events.js:111:20)
  800.        at IncomingMessage.emit (events.js:208:7)
  801.        at endReadableNT (_stream_readable.js:1064:12)
  802.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  803.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  804.  
  805. info:  message=Document wasn't found (can't remove)
  806.  console.log node_modules/captains-log/lib/write.js:83
  807.    verbose: res.fail :: Sending 404 response
  808.  
  809. info:  message=Customer was found, email=test_customer1@protonmail.com
  810.  console.log node_modules/captains-log/lib/write.js:83
  811.    verbose: res.ok :: Sending 200 response
  812.  
  813. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  814.  console.log node_modules/captains-log/lib/write.js:83
  815.    verbose: res.fail :: Sending 403 response
  816.  
  817. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  818. info:  message=Finding lawyer subscriptions
  819.  console.log node_modules/captains-log/lib/write.js:83
  820.    verbose: res.ok :: Sending 200 response
  821.  
  822. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  823.  console.log node_modules/captains-log/lib/write.js:83
  824.    verbose: res.fail :: Sending 403 response
  825.  
  826. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  827. info:  message=Lawyer customers was found
  828.  console.log node_modules/captains-log/lib/write.js:83
  829.    verbose: res.ok :: Sending 200 response
  830.  
  831. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  832.  console.log node_modules/captains-log/lib/write.js:83
  833.    verbose: res.fail :: Sending 403 response
  834.  
  835. info:  message=Customer was found, email=test_customer1@protonmail.com
  836.  console.log node_modules/captains-log/lib/write.js:83
  837.    verbose: res.fail :: Sending 403 response
  838.  
  839. info:  message=Customer was found, email=test_customer1@protonmail.com
  840.  console.log node_modules/captains-log/lib/write.js:83
  841.    verbose: res.fail :: Sending 403 response
  842.  
  843. info:  message=Customer was found, email=test_customer1@protonmail.com
  844.  console.log node_modules/captains-log/lib/write.js:83
  845.    verbose: res.fail :: Sending 403 response
  846.  
  847. info:  message=Customer was found, email=test_customer1@protonmail.com
  848.  console.log node_modules/captains-log/lib/write.js:83
  849.    verbose: res.fail :: Sending 403 response
  850.  
  851. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  852.  console.log node_modules/captains-log/lib/write.js:83
  853.    verbose: res.ok :: Sending 200 response
  854.  
  855.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  856.    Error: Loggly Error (403): Forbidden
  857.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  858.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  859.        at emitTwo (events.js:126:13)
  860.        at Request.emit (events.js:214:7)
  861.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  862.        at emitOne (events.js:116:13)
  863.        at Request.emit (events.js:211:7)
  864.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  865.        at Object.onceWrapper (events.js:313:30)
  866.        at emitNone (events.js:111:20)
  867.        at IncomingMessage.emit (events.js:208:7)
  868.        at endReadableNT (_stream_readable.js:1064:12)
  869.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  870.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  871.  
  872. info:  message=Customer was found, email=test_customer1@protonmail.com
  873.  console.log node_modules/captains-log/lib/write.js:83
  874.    verbose: res.fail :: Sending 403 response
  875.  
  876.  console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  877.    Error: Loggly Error (403): Forbidden
  878.        at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  879.        at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  880.        at emitTwo (events.js:126:13)
  881.        at Request.emit (events.js:214:7)
  882.        at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  883.        at emitOne (events.js:116:13)
  884.        at Request.emit (events.js:211:7)
  885.        at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  886.        at Object.onceWrapper (events.js:313:30)
  887.        at emitNone (events.js:111:20)
  888.        at IncomingMessage.emit (events.js:208:7)
  889.        at endReadableNT (_stream_readable.js:1064:12)
  890.        at _combinedTickCallback (internal/process/next_tick.js:138:11)
  891.        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  892.  
  893. info:  message=Lawyer was found, email=test_lawyer@protonmail.com
  894. info:  message=Finding all lawyer documents
  895.  console.log node_modules/captains-log/lib/write.js:83
  896.    verbose: res.ok :: Sending 200 response
  897.  
  898. info:  message=Admin was found, email=webapp_admin@mieterengel.de
  899. 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
  900.   console.log node_modules/captains-log/lib/write.js:83
  901.     verbose: res.fail :: Sending 400 response
  902.  
  903.   console.log node_modules/node-loggly-bulk/lib/loggly/common.js:131
  904.     Error: Loggly Error (403): Forbidden
  905.         at Request._callback (/home/circleci/repo/node_modules/node-loggly-bulk/lib/loggly/common.js:201:31)
  906.         at Request.self.callback (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:185:22)
  907.         at emitTwo (events.js:126:13)
  908.         at Request.emit (events.js:214:7)
  909.         at Request.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1157:10)
  910.         at emitOne (events.js:116:13)
  911.         at Request.emit (events.js:211:7)
  912.         at IncomingMessage.<anonymous> (/home/circleci/repo/node_modules/node-loggly-bulk/node_modules/request/request.js:1079:12)
  913.         at Object.onceWrapper (events.js:313:30)
  914.         at emitNone (events.js:111:20)
  915.         at IncomingMessage.emit (events.js:208:7)
  916.         at endReadableNT (_stream_readable.js:1064:12)
  917.         at _combinedTickCallback (internal/process/next_tick.js:138:11)
  918.         at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  919.  
  920. info:  message=Admin was found, email=webapp_admin@mieterengel.de
  921. 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
  922.   console.log node_modules/captains-log/lib/write.js:83
  923.     verbose: res.ok :: Sending 200 response
  924.  
  925. info:  message=Customer subscription was updated, id=300
  926. info:  message=Finding one subscription
  927.   console.log node_modules/captains-log/lib/write.js:83
  928.     verbose: res.ok :: Sending 200 response
  929.  
  930. info:  message=Admin was found, email=webapp_admin@mieterengel.de
  931. info:  message=Getting all subscriptions
  932.   console.log node_modules/captains-log/lib/write.js:83
  933.     verbose: res.ok :: Sending 200 response
  934.  
  935.  PASS  tests/integration/controllers/AllControllers.int.test.js (9.52s)
  936.   AuthController
  937.     Login
  938.       ✓ should return 400 HTTP code and error when customer doesn't exist (22ms)
  939.      ✓ should return 200 HTTP code and customer info (112ms)
  940.      ✓ should return 400 HTTP code and error when lawyer doesn't exist (14ms)
  941.       ✓ should return 200 HTTP code and lawyer info (142ms)
  942.   ConsultationController
  943.     Find topics
  944.       ✓ should return 200 HTTP code and consultation topics (38ms)
  945.     Count unread customer messages
  946.       ✓ should return 300 HTTP code and number (37ms)
  947.     Count unanswered lawyers messages
  948.       ✓ should return 200 HTTP code and number of unanswared questions (28ms)
  949.   CustomerController
  950.     Find one
  951.       ✓ should return 403 HTTP code when trying to reach data of another user (12ms)
  952.       ✓ should return 200 HTTP code and customer data (16ms)
  953.     Update
  954.       ✓ should return 403 HTTP code when trying to reach data of another user (9ms)
  955.       ✓ should return 200 HTTP code and updated customer (50ms)
  956.     Update password
  957.       ✓ should return 400 HTTP code when old password is same as new password (19ms)
  958.       ✓ should return 400 HTTP code and error when confirmPassword doesn't match new password (18ms)
  959.    Find customer documents
  960.      ✓ should return 404 HTTP code when trying to reach documents of another user (4ms)
  961.      ✓ should return 200 HTTP code and customer documents (26ms)
  962.    Find consultations
  963.      ✓ should return 404 HTTP code when trying to reach consultations of another user (64ms)
  964.      ✓ should return 200 HTTP code and customer consultations (18ms)
  965.    Create consultation
  966.      ✓ should return 500 HTTP code when no topic was provided (35ms)
  967.      ✓ should return 200 HTTP code and consultation info (66ms)
  968.    Find consultation
  969.      ✓ should return 404 HTTP code when no consultation was found (14ms)
  970.      ✓ should return 200 HTTP code and consultation info (62ms)
  971.    Find lawyer
  972.      ✓ should return 200 HTTP code and lawyer info (25ms)
  973.    Find main subscription
  974.      ✓ should return 200 HTTP code and subscription info (11ms)
  975.    Create consultation message
  976.      ✓ should return 400 HTTP code when sending 2 client messages in row (61ms)
  977.  CustomerDocumentController
  978.    Find customer document categories
  979.      ✓ Should return 200 HTTP code and document categories (7ms)
  980.    Find customer document category
  981.      ✓ should return 200 HTTP code and document category (7ms)
  982.    Create customer document category
  983.      ✓ should return 200 HTTP code and created document category (20ms)
  984.    Remove customer document category
  985.      ✓ should return 200 HTTP code (20ms)
  986.    Update customer document category
  987.      ✓ should return 200 HTTP code (8ms)
  988.  DocumentController
  989.    Find document categories
  990.      ✓ should return 200 HTTP code and document categories (8ms)
  991.    Create document category
  992.      ✓ should return 500 HTTP code when no document category name was provided (18ms)
  993.      ✓ should return 200 HTTP code and created document category (23ms)
  994.    Update document category
  995.      ✓ should return 500 HTTP code when no document category name was provided (22ms)
  996.      ✓ should return 200 HTTP code and updated document category (42ms)
  997.    Find one
  998.      ✓ should return 404 HTTP code when no document was found (11ms)
  999.      ✓ should return 200 HTTP code and document info (12ms)
  1000.    Find
  1001.      ✓ should return 200 HTTP code and all documents (8ms)
  1002.    Update
  1003.      ✓ should return 404 HTTP code when document doesn't exist  (17ms)
  1004.       ✓ should return 200 HTTP code and update document (14ms)
  1005.     Remove
  1006.       ✓ should return 404 HTTP code when document doesn't exist (14ms)
  1007.      ✓ should return 200 HTTP code (8ms)
  1008.  LawyerController
  1009.    Find subscriptions
  1010.      ✓ should return 403 HTTP code when trying to reach subscriptions of another lawyer (6ms)
  1011.      ✓ should return 200 HTTP code and subscriptions (10ms)
  1012.    Find customers
  1013.      ✓ should return 403 HTTP code when trying to reach customers of another lawyer (6ms)
  1014.      ✓ should return 200 HTTP code and customer info (18ms)
  1015.    Find customer
  1016.      ✓ should return 403 HTTP code when trying to reach customer of another lawyer (10ms)
  1017.      ✓ should return 200 HTTP code and customer info (8ms)
  1018.    Find customer documents
  1019.      ✓ should return 200 HTTP code and customer documents info (6ms)
  1020.    Find customer subscriptions
  1021.      ✓ should return 200 HTTP code and client subscriptions (6ms)
  1022.    Find customer consultations
  1023.      ✓ should return 200 HTTP code and customer consultations (10ms)
  1024.    Find lawyer consultations
  1025.      ✓ should return 200 HTTP code and lawyer consultations (11ms)
  1026.    Find consultation
  1027.      ✓ should return 200 HTTP code and consultation (7ms)
  1028.    Find documents
  1029.      ✓ should return 200 HTTP code and documents (15ms)
  1030.  SubscriptionController
  1031.    Create lawyer subscription
  1032.      ✓ should return 400 HTTP code when some request field is missing (20ms)
  1033.      ✓ should return 200 HTTP code when subscription was created (21ms)
  1034.    Update subscription
  1035.      ✓ should return 200 HTTP code (16ms)
  1036.    Get all subscriptions
  1037.      ✓ should return 200 HTTP code (11ms)
  1038.  
  1039. Test Suites: 1 passed, 1 total
  1040. Tests:       57 passed, 57 total
  1041. Snapshots:   0 total
  1042. Time:        9.649s
  1043. Ran all test suites matching /\.int.test\.js$/i.
  1044. testResultsProcessor support is deprecated. Please use jest reporter. See https://github.com/jest-community/jest-junit#usage:
  1045.  
  1046. {
  1047.  "reporters": [
  1048.    "jest-junit"
  1049.  ]
  1050. }
  1051.  
  1052. Done in 11.17s.
  1053. ====>> Run Unit Tests
  1054.  #!/bin/bash -eo pipefail
  1055. yarn jest '\.unit.test\.js$' --ci --testResultsProcessor=jest-junit
  1056.  
  1057. yarn run v1.6.0
  1058. $ /home/circleci/repo/node_modules/.bin/jest '\.unit.test\.js$' --ci --testResultsProcessor=jest-junit
  1059. PASS  tests/unit/DocumentService.unit.test.js
  1060. PASS  tests/unit/ConsultationService.unit.test.js
  1061. (node:225) UnhandledPromiseRejectionWarning: Error: expect(received).rejects.toThrow()
  1062.  
  1063. Expected received Promise to reject, instead it resolved to value
  1064.  {"confirmNewsletterSent": true, "emailSent": true}
  1065. (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)
  1066. (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.
  1067. PASS  tests/unit/AuthService.unit.test.js
  1068. (node:219) UnhandledPromiseRejectionWarning: Error: expect(received).rejects.toThrow()
  1069.  
  1070. Expected received Promise to reject, instead it resolved to value
  1071.  {"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}
  1072. (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)
  1073. (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.
  1074. PASS  tests/unit/CustomerService.unit.test.js
  1075. PASS  tests/unit/LawyerService.unit.test.js
  1076. PASS  tests/unit/CustomerDocumentService.unit.test.js
  1077. PASS  tests/unit/LawyerDocumentService.unit.test.js
  1078. PASS  tests/unit/CustomerDocumentCategoryService.unit.test.js
  1079. PASS  tests/unit/SubscriptionService.unit.test.js
  1080. PASS  tests/unit/DocumentTypeService.unit.test.js
  1081. PASS  tests/unit/DocumentCategoryService.unit.test.js
  1082. PASS  tests/unit/CustomerNoteService.unit.test.js
  1083. PASS  tests/unit/AdminService.unit.test.js
  1084. PASS  tests/unit/ConsultationMessageService.unit.test.js
  1085. PASS  tests/unit/UtilService.unit.test.js
  1086. PASS  tests/unit/AWSBucketService.unit.test.js
  1087.  
  1088. Test Suites: 16 passed, 16 total
  1089. Tests:       1 skipped, 100 passed, 101 total
  1090. Snapshots:   0 total
  1091. Time:        2.737s
  1092. Ran all test suites matching /\.unit.test\.js$/i.
  1093. testResultsProcessor support is deprecated. Please use jest reporter. See https://github.com/jest-community/jest-junit#usage:
  1094.  
  1095. {
  1096.  "reporters": [
  1097.    "jest-junit"
  1098.  ]
  1099. }
  1100.  
  1101. Done in 3.45s.
  1102. ====>> Run Linter
  1103.  #!/bin/bash -eo pipefail
  1104. yarn lint
  1105.  
  1106. yarn run v1.6.0
  1107. $ node_modules/.bin/standart
  1108. Done in 2.13s.
  1109. ====>> Uploading test results
  1110. Archiving the following test results
  1111.  * /home/circleci/repo/reports/junit
  1112.  
  1113. Error: Failed uploading test results directory
  1114. Error &errors.errorString{s:"not supported"}
  1115.  
  1116. ====>> Uploading artifacts
  1117. Uploading /home/circleci/repo/reports/junit to home/circleci/repo/reports/junit
  1118. 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"}
  1119. {"Runner":true,"level":"error","msg":"Can't close tar writer: io: read/write on closed pipe","time":"2018-06-22T15:07:20Z"}
  1120. Error: FAILED with error not supported
  1121.  
  1122. Uploading /home/circleci/repo/reports/junit/unit/test-results-unit.xml (27 kB): Error: FAILED with error not supported
  1123.  
  1124. Success!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement