@miqro/core 3.0.6 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/README.md +0 -204
  2. package/build/app.d.ts +23 -0
  3. package/build/app.js +101 -0
  4. package/build/app.js.map +1 -0
  5. package/build/common.d.ts +106 -0
  6. package/build/common.js +477 -0
  7. package/build/common.js.map +1 -0
  8. package/build/lib.d.ts +7 -0
  9. package/build/lib.js +8 -0
  10. package/build/lib.js.map +1 -0
  11. package/build/middleware/body-parser.d.ts +78 -0
  12. package/build/middleware/body-parser.js +552 -0
  13. package/build/middleware/body-parser.js.map +1 -0
  14. package/build/middleware/router.d.ts +114 -0
  15. package/build/middleware/router.js +704 -0
  16. package/build/middleware/router.js.map +1 -0
  17. package/build/{esm/common/session/service.d.ts → middleware/session.d.ts} +10 -9
  18. package/build/middleware/session.js +369 -0
  19. package/build/middleware/session.js.map +1 -0
  20. package/build/types.d.ts +309 -0
  21. package/build/types.js +455 -0
  22. package/build/types.js.map +1 -0
  23. package/build/websocket.d.ts +31 -0
  24. package/build/websocket.js +316 -0
  25. package/build/websocket.js.map +1 -0
  26. package/package.json +13 -14
  27. package/src/app.ts +64 -29
  28. package/src/common.ts +528 -0
  29. package/src/lib.ts +82 -0
  30. package/src/middleware/body-parser.ts +597 -0
  31. package/src/middleware/router.ts +840 -0
  32. package/src/middleware/session.ts +271 -37
  33. package/src/types.ts +785 -0
  34. package/src/websocket.ts +356 -0
  35. package/build/cjs/api-router.d.ts +0 -34
  36. package/build/cjs/api-router.js +0 -52
  37. package/build/cjs/api-router.js.map +0 -1
  38. package/build/cjs/app-utils.d.ts +0 -13
  39. package/build/cjs/app-utils.js +0 -82
  40. package/build/cjs/app-utils.js.map +0 -1
  41. package/build/cjs/app.d.ts +0 -12
  42. package/build/cjs/app.js +0 -79
  43. package/build/cjs/app.js.map +0 -1
  44. package/build/cjs/common/api-router-types.d.ts +0 -28
  45. package/build/cjs/common/api-router-types.js +0 -17
  46. package/build/cjs/common/api-router-types.js.map +0 -1
  47. package/build/cjs/common/api-router-utils.d.ts +0 -3
  48. package/build/cjs/common/api-router-utils.js +0 -115
  49. package/build/cjs/common/api-router-utils.js.map +0 -1
  50. package/build/cjs/common/config/config.d.ts +0 -15
  51. package/build/cjs/common/config/config.js +0 -45
  52. package/build/cjs/common/config/config.js.map +0 -1
  53. package/build/cjs/common/config/featuretoggle.d.ts +0 -1
  54. package/build/cjs/common/config/featuretoggle.js +0 -10
  55. package/build/cjs/common/config/featuretoggle.js.map +0 -1
  56. package/build/cjs/common/config/index.d.ts +0 -3
  57. package/build/cjs/common/config/index.js +0 -20
  58. package/build/cjs/common/config/index.js.map +0 -1
  59. package/build/cjs/common/config/loader.d.ts +0 -13
  60. package/build/cjs/common/config/loader.js +0 -70
  61. package/build/cjs/common/config/loader.js.map +0 -1
  62. package/build/cjs/common/context.d.ts +0 -57
  63. package/build/cjs/common/context.js +0 -141
  64. package/build/cjs/common/context.js.map +0 -1
  65. package/build/cjs/common/error/badrequesterror.d.ts +0 -3
  66. package/build/cjs/common/error/badrequesterror.js +0 -11
  67. package/build/cjs/common/error/badrequesterror.js.map +0 -1
  68. package/build/cjs/common/error/configfilenotfound.d.ts +0 -3
  69. package/build/cjs/common/error/configfilenotfound.js +0 -11
  70. package/build/cjs/common/error/configfilenotfound.js.map +0 -1
  71. package/build/cjs/common/error/forbiddenerror.d.ts +0 -3
  72. package/build/cjs/common/error/forbiddenerror.js +0 -11
  73. package/build/cjs/common/error/forbiddenerror.js.map +0 -1
  74. package/build/cjs/common/error/index.d.ts +0 -6
  75. package/build/cjs/common/error/index.js +0 -23
  76. package/build/cjs/common/error/index.js.map +0 -1
  77. package/build/cjs/common/error/notfound.d.ts +0 -3
  78. package/build/cjs/common/error/notfound.js +0 -11
  79. package/build/cjs/common/error/notfound.js.map +0 -1
  80. package/build/cjs/common/error/notimplemented.d.ts +0 -3
  81. package/build/cjs/common/error/notimplemented.js +0 -11
  82. package/build/cjs/common/error/notimplemented.js.map +0 -1
  83. package/build/cjs/common/error/unauthorizederror.d.ts +0 -3
  84. package/build/cjs/common/error/unauthorizederror.js +0 -11
  85. package/build/cjs/common/error/unauthorizederror.js.map +0 -1
  86. package/build/cjs/common/index.d.ts +0 -11
  87. package/build/cjs/common/index.js +0 -34
  88. package/build/cjs/common/index.js.map +0 -1
  89. package/build/cjs/common/logger/constants.d.ts +0 -14
  90. package/build/cjs/common/logger/constants.js +0 -27
  91. package/build/cjs/common/logger/constants.js.map +0 -1
  92. package/build/cjs/common/logger/factory.d.ts +0 -16
  93. package/build/cjs/common/logger/factory.js +0 -53
  94. package/build/cjs/common/logger/factory.js.map +0 -1
  95. package/build/cjs/common/logger/index.d.ts +0 -5
  96. package/build/cjs/common/logger/index.js +0 -22
  97. package/build/cjs/common/logger/index.js.map +0 -1
  98. package/build/cjs/common/logger/interfaces.d.ts +0 -18
  99. package/build/cjs/common/logger/interfaces.js +0 -3
  100. package/build/cjs/common/logger/interfaces.js.map +0 -1
  101. package/build/cjs/common/logger/logger.d.ts +0 -35
  102. package/build/cjs/common/logger/logger.js +0 -100
  103. package/build/cjs/common/logger/logger.js.map +0 -1
  104. package/build/cjs/common/logger/transport/console.d.ts +0 -5
  105. package/build/cjs/common/logger/transport/console.js +0 -41
  106. package/build/cjs/common/logger/transport/console.js.map +0 -1
  107. package/build/cjs/common/logger/transport/file.d.ts +0 -2
  108. package/build/cjs/common/logger/transport/file.js +0 -29
  109. package/build/cjs/common/logger/transport/file.js.map +0 -1
  110. package/build/cjs/common/router-default-logger-factory.d.ts +0 -4
  111. package/build/cjs/common/router-default-logger-factory.js +0 -42
  112. package/build/cjs/common/router-default-logger-factory.js.map +0 -1
  113. package/build/cjs/common/router-handler.d.ts +0 -21
  114. package/build/cjs/common/router-handler.js +0 -161
  115. package/build/cjs/common/router-handler.js.map +0 -1
  116. package/build/cjs/common/router-types.d.ts +0 -58
  117. package/build/cjs/common/router-types.js +0 -58
  118. package/build/cjs/common/router-types.js.map +0 -1
  119. package/build/cjs/common/router-utils.d.ts +0 -3
  120. package/build/cjs/common/router-utils.js +0 -51
  121. package/build/cjs/common/router-utils.js.map +0 -1
  122. package/build/cjs/common/session/common.d.ts +0 -37
  123. package/build/cjs/common/session/common.js +0 -3
  124. package/build/cjs/common/session/common.js.map +0 -1
  125. package/build/cjs/common/session/index.d.ts +0 -2
  126. package/build/cjs/common/session/index.js +0 -19
  127. package/build/cjs/common/session/index.js.map +0 -1
  128. package/build/cjs/common/session/service.d.ts +0 -26
  129. package/build/cjs/common/session/service.js +0 -149
  130. package/build/cjs/common/session/service.js.map +0 -1
  131. package/build/cjs/common/tokenize-match.d.ts +0 -19
  132. package/build/cjs/common/tokenize-match.js +0 -79
  133. package/build/cjs/common/tokenize-match.js.map +0 -1
  134. package/build/cjs/common/url-utils.d.ts +0 -6
  135. package/build/cjs/common/url-utils.js +0 -54
  136. package/build/cjs/common/url-utils.js.map +0 -1
  137. package/build/cjs/index.d.ts +0 -7
  138. package/build/cjs/index.js +0 -24
  139. package/build/cjs/index.js.map +0 -1
  140. package/build/cjs/middleware/buffer.d.ts +0 -6
  141. package/build/cjs/middleware/buffer.js +0 -81
  142. package/build/cjs/middleware/buffer.js.map +0 -1
  143. package/build/cjs/middleware/cookie.d.ts +0 -4
  144. package/build/cjs/middleware/cookie.js +0 -19
  145. package/build/cjs/middleware/cookie.js.map +0 -1
  146. package/build/cjs/middleware/cors.d.ts +0 -8
  147. package/build/cjs/middleware/cors.js +0 -92
  148. package/build/cjs/middleware/cors.js.map +0 -1
  149. package/build/cjs/middleware/form.d.ts +0 -6
  150. package/build/cjs/middleware/form.js +0 -61
  151. package/build/cjs/middleware/form.js.map +0 -1
  152. package/build/cjs/middleware/group.d.ts +0 -2
  153. package/build/cjs/middleware/group.js +0 -79
  154. package/build/cjs/middleware/group.js.map +0 -1
  155. package/build/cjs/middleware/index.d.ts +0 -14
  156. package/build/cjs/middleware/index.js +0 -65
  157. package/build/cjs/middleware/index.js.map +0 -1
  158. package/build/cjs/middleware/json.d.ts +0 -6
  159. package/build/cjs/middleware/json.js +0 -58
  160. package/build/cjs/middleware/json.js.map +0 -1
  161. package/build/cjs/middleware/logger.d.ts +0 -4
  162. package/build/cjs/middleware/logger.js +0 -20
  163. package/build/cjs/middleware/logger.js.map +0 -1
  164. package/build/cjs/middleware/parse.d.ts +0 -13
  165. package/build/cjs/middleware/parse.js +0 -82
  166. package/build/cjs/middleware/parse.js.map +0 -1
  167. package/build/cjs/middleware/result.d.ts +0 -8
  168. package/build/cjs/middleware/result.js +0 -58
  169. package/build/cjs/middleware/result.js.map +0 -1
  170. package/build/cjs/middleware/session.d.ts +0 -2
  171. package/build/cjs/middleware/session.js +0 -151
  172. package/build/cjs/middleware/session.js.map +0 -1
  173. package/build/cjs/middleware/tag.d.ts +0 -4
  174. package/build/cjs/middleware/tag.js +0 -14
  175. package/build/cjs/middleware/tag.js.map +0 -1
  176. package/build/cjs/middleware/text.d.ts +0 -5
  177. package/build/cjs/middleware/text.js +0 -49
  178. package/build/cjs/middleware/text.js.map +0 -1
  179. package/build/cjs/proxy.d.ts +0 -19
  180. package/build/cjs/proxy.js +0 -78
  181. package/build/cjs/proxy.js.map +0 -1
  182. package/build/cjs/router.d.ts +0 -26
  183. package/build/cjs/router.js +0 -120
  184. package/build/cjs/router.js.map +0 -1
  185. package/build/cjs/static.d.ts +0 -14
  186. package/build/cjs/static.js +0 -212
  187. package/build/cjs/static.js.map +0 -1
  188. package/build/esm/api-router.d.ts +0 -34
  189. package/build/esm/api-router.js +0 -48
  190. package/build/esm/api-router.js.map +0 -1
  191. package/build/esm/app-utils.d.ts +0 -13
  192. package/build/esm/app-utils.js +0 -78
  193. package/build/esm/app-utils.js.map +0 -1
  194. package/build/esm/app.d.ts +0 -12
  195. package/build/esm/app.js +0 -74
  196. package/build/esm/app.js.map +0 -1
  197. package/build/esm/common/api-router-types.d.ts +0 -28
  198. package/build/esm/common/api-router-types.js +0 -14
  199. package/build/esm/common/api-router-types.js.map +0 -1
  200. package/build/esm/common/api-router-utils.d.ts +0 -3
  201. package/build/esm/common/api-router-utils.js +0 -111
  202. package/build/esm/common/api-router-utils.js.map +0 -1
  203. package/build/esm/common/config/config.d.ts +0 -15
  204. package/build/esm/common/config/config.js +0 -38
  205. package/build/esm/common/config/config.js.map +0 -1
  206. package/build/esm/common/config/featuretoggle.d.ts +0 -1
  207. package/build/esm/common/config/featuretoggle.js +0 -6
  208. package/build/esm/common/config/featuretoggle.js.map +0 -1
  209. package/build/esm/common/config/index.d.ts +0 -3
  210. package/build/esm/common/config/index.js +0 -4
  211. package/build/esm/common/config/index.js.map +0 -1
  212. package/build/esm/common/config/loader.d.ts +0 -13
  213. package/build/esm/common/config/loader.js +0 -64
  214. package/build/esm/common/config/loader.js.map +0 -1
  215. package/build/esm/common/context.d.ts +0 -57
  216. package/build/esm/common/context.js +0 -137
  217. package/build/esm/common/context.js.map +0 -1
  218. package/build/esm/common/error/badrequesterror.d.ts +0 -3
  219. package/build/esm/common/error/badrequesterror.js +0 -7
  220. package/build/esm/common/error/badrequesterror.js.map +0 -1
  221. package/build/esm/common/error/configfilenotfound.d.ts +0 -3
  222. package/build/esm/common/error/configfilenotfound.js +0 -7
  223. package/build/esm/common/error/configfilenotfound.js.map +0 -1
  224. package/build/esm/common/error/forbiddenerror.d.ts +0 -3
  225. package/build/esm/common/error/forbiddenerror.js +0 -7
  226. package/build/esm/common/error/forbiddenerror.js.map +0 -1
  227. package/build/esm/common/error/index.d.ts +0 -6
  228. package/build/esm/common/error/index.js +0 -7
  229. package/build/esm/common/error/index.js.map +0 -1
  230. package/build/esm/common/error/notfound.d.ts +0 -3
  231. package/build/esm/common/error/notfound.js +0 -7
  232. package/build/esm/common/error/notfound.js.map +0 -1
  233. package/build/esm/common/error/notimplemented.d.ts +0 -3
  234. package/build/esm/common/error/notimplemented.js +0 -7
  235. package/build/esm/common/error/notimplemented.js.map +0 -1
  236. package/build/esm/common/error/unauthorizederror.d.ts +0 -3
  237. package/build/esm/common/error/unauthorizederror.js +0 -7
  238. package/build/esm/common/error/unauthorizederror.js.map +0 -1
  239. package/build/esm/common/index.d.ts +0 -11
  240. package/build/esm/common/index.js +0 -12
  241. package/build/esm/common/index.js.map +0 -1
  242. package/build/esm/common/logger/constants.d.ts +0 -14
  243. package/build/esm/common/logger/constants.js +0 -22
  244. package/build/esm/common/logger/constants.js.map +0 -1
  245. package/build/esm/common/logger/factory.d.ts +0 -16
  246. package/build/esm/common/logger/factory.js +0 -47
  247. package/build/esm/common/logger/factory.js.map +0 -1
  248. package/build/esm/common/logger/index.d.ts +0 -5
  249. package/build/esm/common/logger/index.js +0 -6
  250. package/build/esm/common/logger/index.js.map +0 -1
  251. package/build/esm/common/logger/interfaces.d.ts +0 -18
  252. package/build/esm/common/logger/interfaces.js +0 -2
  253. package/build/esm/common/logger/interfaces.js.map +0 -1
  254. package/build/esm/common/logger/logger.d.ts +0 -35
  255. package/build/esm/common/logger/logger.js +0 -95
  256. package/build/esm/common/logger/logger.js.map +0 -1
  257. package/build/esm/common/logger/transport/console.d.ts +0 -5
  258. package/build/esm/common/logger/transport/console.js +0 -37
  259. package/build/esm/common/logger/transport/console.js.map +0 -1
  260. package/build/esm/common/logger/transport/file.d.ts +0 -2
  261. package/build/esm/common/logger/transport/file.js +0 -25
  262. package/build/esm/common/logger/transport/file.js.map +0 -1
  263. package/build/esm/common/router-default-logger-factory.d.ts +0 -4
  264. package/build/esm/common/router-default-logger-factory.js +0 -37
  265. package/build/esm/common/router-default-logger-factory.js.map +0 -1
  266. package/build/esm/common/router-handler.d.ts +0 -21
  267. package/build/esm/common/router-handler.js +0 -157
  268. package/build/esm/common/router-handler.js.map +0 -1
  269. package/build/esm/common/router-types.d.ts +0 -58
  270. package/build/esm/common/router-types.js +0 -54
  271. package/build/esm/common/router-types.js.map +0 -1
  272. package/build/esm/common/router-utils.d.ts +0 -3
  273. package/build/esm/common/router-utils.js +0 -46
  274. package/build/esm/common/router-utils.js.map +0 -1
  275. package/build/esm/common/session/common.d.ts +0 -37
  276. package/build/esm/common/session/common.js +0 -2
  277. package/build/esm/common/session/common.js.map +0 -1
  278. package/build/esm/common/session/index.d.ts +0 -2
  279. package/build/esm/common/session/index.js +0 -3
  280. package/build/esm/common/session/index.js.map +0 -1
  281. package/build/esm/common/session/service.js +0 -145
  282. package/build/esm/common/session/service.js.map +0 -1
  283. package/build/esm/common/tokenize-match.d.ts +0 -19
  284. package/build/esm/common/tokenize-match.js +0 -73
  285. package/build/esm/common/tokenize-match.js.map +0 -1
  286. package/build/esm/common/url-utils.d.ts +0 -6
  287. package/build/esm/common/url-utils.js +0 -48
  288. package/build/esm/common/url-utils.js.map +0 -1
  289. package/build/esm/index.d.ts +0 -7
  290. package/build/esm/index.js +0 -8
  291. package/build/esm/index.js.map +0 -1
  292. package/build/esm/middleware/buffer.d.ts +0 -6
  293. package/build/esm/middleware/buffer.js +0 -77
  294. package/build/esm/middleware/buffer.js.map +0 -1
  295. package/build/esm/middleware/cookie.d.ts +0 -4
  296. package/build/esm/middleware/cookie.js +0 -15
  297. package/build/esm/middleware/cookie.js.map +0 -1
  298. package/build/esm/middleware/cors.d.ts +0 -8
  299. package/build/esm/middleware/cors.js +0 -88
  300. package/build/esm/middleware/cors.js.map +0 -1
  301. package/build/esm/middleware/form.d.ts +0 -6
  302. package/build/esm/middleware/form.js +0 -57
  303. package/build/esm/middleware/form.js.map +0 -1
  304. package/build/esm/middleware/group.d.ts +0 -2
  305. package/build/esm/middleware/group.js +0 -75
  306. package/build/esm/middleware/group.js.map +0 -1
  307. package/build/esm/middleware/index.d.ts +0 -14
  308. package/build/esm/middleware/index.js +0 -46
  309. package/build/esm/middleware/index.js.map +0 -1
  310. package/build/esm/middleware/json.d.ts +0 -6
  311. package/build/esm/middleware/json.js +0 -54
  312. package/build/esm/middleware/json.js.map +0 -1
  313. package/build/esm/middleware/logger.d.ts +0 -4
  314. package/build/esm/middleware/logger.js +0 -16
  315. package/build/esm/middleware/logger.js.map +0 -1
  316. package/build/esm/middleware/parse.d.ts +0 -13
  317. package/build/esm/middleware/parse.js +0 -78
  318. package/build/esm/middleware/parse.js.map +0 -1
  319. package/build/esm/middleware/result.d.ts +0 -8
  320. package/build/esm/middleware/result.js +0 -54
  321. package/build/esm/middleware/result.js.map +0 -1
  322. package/build/esm/middleware/session.d.ts +0 -2
  323. package/build/esm/middleware/session.js +0 -147
  324. package/build/esm/middleware/session.js.map +0 -1
  325. package/build/esm/middleware/tag.d.ts +0 -4
  326. package/build/esm/middleware/tag.js +0 -10
  327. package/build/esm/middleware/tag.js.map +0 -1
  328. package/build/esm/middleware/text.d.ts +0 -5
  329. package/build/esm/middleware/text.js +0 -45
  330. package/build/esm/middleware/text.js.map +0 -1
  331. package/build/esm/proxy.d.ts +0 -19
  332. package/build/esm/proxy.js +0 -74
  333. package/build/esm/proxy.js.map +0 -1
  334. package/build/esm/router.d.ts +0 -26
  335. package/build/esm/router.js +0 -116
  336. package/build/esm/router.js.map +0 -1
  337. package/build/esm/static.d.ts +0 -14
  338. package/build/esm/static.js +0 -208
  339. package/build/esm/static.js.map +0 -1
  340. package/src/api-router.ts +0 -50
  341. package/src/app-utils.ts +0 -82
  342. package/src/app-utils.unit.test.js +0 -101
  343. package/src/app.unit.test.js +0 -334
  344. package/src/common/api-router-types.ts +0 -42
  345. package/src/common/api-router-utils.ts +0 -121
  346. package/src/common/config/config.ts +0 -49
  347. package/src/common/config/featuretoggle.ts +0 -6
  348. package/src/common/config/index.ts +0 -3
  349. package/src/common/config/loader.ts +0 -81
  350. package/src/common/context.ts +0 -192
  351. package/src/common/context.unit.test.js +0 -295
  352. package/src/common/error/badrequesterror.ts +0 -6
  353. package/src/common/error/configfilenotfound.ts +0 -6
  354. package/src/common/error/forbiddenerror.ts +0 -6
  355. package/src/common/error/index.ts +0 -6
  356. package/src/common/error/notfound.ts +0 -6
  357. package/src/common/error/notimplemented.ts +0 -6
  358. package/src/common/error/unauthorizederror.ts +0 -6
  359. package/src/common/index.ts +0 -11
  360. package/src/common/logger/constants.ts +0 -28
  361. package/src/common/logger/factory.ts +0 -53
  362. package/src/common/logger/index.ts +0 -6
  363. package/src/common/logger/interfaces.ts +0 -19
  364. package/src/common/logger/logger.ts +0 -136
  365. package/src/common/logger/transport/console.ts +0 -36
  366. package/src/common/logger/transport/file.ts +0 -26
  367. package/src/common/router-default-logger-factory.ts +0 -42
  368. package/src/common/router-handler.ts +0 -186
  369. package/src/common/router-types.ts +0 -117
  370. package/src/common/router-utils.ts +0 -47
  371. package/src/common/session/common.ts +0 -40
  372. package/src/common/session/index.ts +0 -2
  373. package/src/common/session/service.ts +0 -163
  374. package/src/common/tokenize-match.ts +0 -98
  375. package/src/common/url-utils.ts +0 -46
  376. package/src/index.ts +0 -7
  377. package/src/middleware/buffer.ts +0 -80
  378. package/src/middleware/cookie.ts +0 -20
  379. package/src/middleware/cors.ts +0 -96
  380. package/src/middleware/form.ts +0 -59
  381. package/src/middleware/group.ts +0 -70
  382. package/src/middleware/index.ts +0 -48
  383. package/src/middleware/json.ts +0 -55
  384. package/src/middleware/logger.ts +0 -18
  385. package/src/middleware/parse.ts +0 -94
  386. package/src/middleware/result.ts +0 -63
  387. package/src/middleware/tag.ts +0 -15
  388. package/src/middleware/text.ts +0 -45
  389. package/src/proxy.ts +0 -99
  390. package/src/proxy.unit.test.js +0 -160
  391. package/src/router.ts +0 -134
  392. package/src/router.unit.test.js +0 -412
  393. package/src/static.ts +0 -239
  394. package/test.out.txt +0 -3535
  395. package/tsconfig-esm.json +0 -26
package/test.out.txt DELETED
@@ -1,3535 +0,0 @@
1
- TAP version 13
2
- # Subtest: app-utils unit tests
3
- # Subtest: defaultAppErrorHandler
4
- # Subtest: NODE_ENV=test
5
- # Subtest: error is Error: some error ends only on test and development
6
- ok 1 - error is Error: some error ends only on test and development
7
- ---
8
- duration_ms: 20.962169
9
- ...
10
- 1..1
11
- ok 1 - NODE_ENV=test
12
- ---
13
- duration_ms: 21.755429
14
- ...
15
- # Subtest: NODE_ENV=development
16
- # Subtest: error is Error: some error ends only on test and development
17
- ok 1 - error is Error: some error ends only on test and development
18
- ---
19
- duration_ms: 5.75823
20
- ...
21
- 1..1
22
- ok 2 - NODE_ENV=development
23
- ---
24
- duration_ms: 6.058218
25
- ...
26
- # Subtest: NODE_ENV=OTHER
27
- # Subtest: error is Error: some error ends only on test and development
28
- ok 1 - error is Error: some error ends only on test and development
29
- ---
30
- duration_ms: 5.163921
31
- ...
32
- 1..1
33
- ok 3 - NODE_ENV=OTHER
34
- ---
35
- duration_ms: 5.323914
36
- ...
37
- # Subtest: NODE_ENV=test
38
- # Subtest: error is undefined ends only on test and development
39
- ok 1 - error is undefined ends only on test and development
40
- ---
41
- duration_ms: 6.040677
42
- ...
43
- 1..1
44
- ok 4 - NODE_ENV=test
45
- ---
46
- duration_ms: 6.197463
47
- ...
48
- # Subtest: NODE_ENV=development
49
- # Subtest: error is undefined ends only on test and development
50
- ok 1 - error is undefined ends only on test and development
51
- ---
52
- duration_ms: 6.08605
53
- ...
54
- 1..1
55
- ok 5 - NODE_ENV=development
56
- ---
57
- duration_ms: 6.343582
58
- ...
59
- # Subtest: NODE_ENV=OTHER
60
- # Subtest: error is undefined ends only on test and development
61
- ok 1 - error is undefined ends only on test and development
62
- ---
63
- duration_ms: 5.38787
64
- ...
65
- 1..1
66
- ok 6 - NODE_ENV=OTHER
67
- ---
68
- duration_ms: 5.528114
69
- ...
70
- # Subtest: NODE_ENV=test
71
- # Subtest: error is null ends only on test and development
72
- ok 1 - error is null ends only on test and development
73
- ---
74
- duration_ms: 5.576029
75
- ...
76
- 1..1
77
- ok 7 - NODE_ENV=test
78
- ---
79
- duration_ms: 5.867018
80
- ...
81
- # Subtest: NODE_ENV=development
82
- # Subtest: error is null ends only on test and development
83
- ok 1 - error is null ends only on test and development
84
- ---
85
- duration_ms: 5.054342
86
- ...
87
- 1..1
88
- ok 8 - NODE_ENV=development
89
- ---
90
- duration_ms: 5.204085
91
- ...
92
- # Subtest: NODE_ENV=OTHER
93
- # Subtest: error is null ends only on test and development
94
- ok 1 - error is null ends only on test and development
95
- ---
96
- duration_ms: 5.84006
97
- ...
98
- 1..1
99
- ok 9 - NODE_ENV=OTHER
100
- ---
101
- duration_ms: 5.959389
102
- ...
103
- # Subtest: NODE_ENV=test
104
- # Subtest: error is false ends only on test and development
105
- ok 1 - error is false ends only on test and development
106
- ---
107
- duration_ms: 5.168045
108
- ...
109
- 1..1
110
- ok 10 - NODE_ENV=test
111
- ---
112
- duration_ms: 5.296082
113
- ...
114
- # Subtest: NODE_ENV=development
115
- # Subtest: error is false ends only on test and development
116
- ok 1 - error is false ends only on test and development
117
- ---
118
- duration_ms: 5.800061
119
- ...
120
- 1..1
121
- ok 11 - NODE_ENV=development
122
- ---
123
- duration_ms: 5.915099
124
- ...
125
- # Subtest: NODE_ENV=OTHER
126
- # Subtest: error is false ends only on test and development
127
- ok 1 - error is false ends only on test and development
128
- ---
129
- duration_ms: 5.144171
130
- ...
131
- 1..1
132
- ok 12 - NODE_ENV=OTHER
133
- ---
134
- duration_ms: 5.265333
135
- ...
136
- # Subtest: NODE_ENV=test
137
- # Subtest: error is ends only on test and development
138
- ok 1 - error is ends only on test and development
139
- ---
140
- duration_ms: 5.614819
141
- ...
142
- 1..1
143
- ok 13 - NODE_ENV=test
144
- ---
145
- duration_ms: 5.725482
146
- ...
147
- # Subtest: NODE_ENV=development
148
- # Subtest: error is ends only on test and development
149
- ok 1 - error is ends only on test and development
150
- ---
151
- duration_ms: 5.298748
152
- ...
153
- 1..1
154
- ok 14 - NODE_ENV=development
155
- ---
156
- duration_ms: 5.411869
157
- ...
158
- # Subtest: NODE_ENV=OTHER
159
- # Subtest: error is ends only on test and development
160
- ok 1 - error is ends only on test and development
161
- ---
162
- duration_ms: 5.258917
163
- ...
164
- 1..1
165
- ok 15 - NODE_ENV=OTHER
166
- ---
167
- duration_ms: 5.377454
168
- ...
169
- # Subtest: NODE_ENV=test
170
- # Subtest: error is true ends only on test and development
171
- ok 1 - error is true ends only on test and development
172
- ---
173
- duration_ms: 6.216504
174
- ...
175
- 1..1
176
- ok 16 - NODE_ENV=test
177
- ---
178
- duration_ms: 6.444995
179
- ...
180
- # Subtest: NODE_ENV=development
181
- # Subtest: error is true ends only on test and development
182
- ok 1 - error is true ends only on test and development
183
- ---
184
- duration_ms: 6.748191
185
- ...
186
- 1..1
187
- ok 17 - NODE_ENV=development
188
- ---
189
- duration_ms: 6.923392
190
- ...
191
- # Subtest: NODE_ENV=OTHER
192
- # Subtest: error is true ends only on test and development
193
- ok 1 - error is true ends only on test and development
194
- ---
195
- duration_ms: 7.713778
196
- ...
197
- 1..1
198
- ok 18 - NODE_ENV=OTHER
199
- ---
200
- duration_ms: 7.876271
201
- ...
202
- # Subtest: error is ConfigFileNotFoundError sends 503
203
- ok 19 - error is ConfigFileNotFoundError sends 503
204
- ---
205
- duration_ms: 6.532241
206
- ...
207
- # Subtest: error is SequelizeUniqueConstraintError sends 400
208
- ok 20 - error is SequelizeUniqueConstraintError sends 400
209
- ---
210
- duration_ms: 5.249917
211
- ...
212
- # Subtest: error is SequelizeEagerLoadingError sends 400
213
- ok 21 - error is SequelizeEagerLoadingError sends 400
214
- ---
215
- duration_ms: 6.204963
216
- ...
217
- # Subtest: error is SequelizeValidationError sends 400
218
- ok 22 - error is SequelizeValidationError sends 400
219
- ---
220
- duration_ms: 7.416164
221
- ...
222
- # Subtest: error is ParseOptionsError sends 400
223
- ok 23 - error is ParseOptionsError sends 400
224
- ---
225
- duration_ms: 5.098131
226
- ...
227
- # Subtest: error is BadRequestError sends 400
228
- ok 24 - error is BadRequestError sends 400
229
- ---
230
- duration_ms: 6.343915
231
- ...
232
- # Subtest: error is UnAuthorizedError sends 401
233
- ok 25 - error is UnAuthorizedError sends 401
234
- ---
235
- duration_ms: 5.091589
236
- ...
237
- # Subtest: error is ForbiddenError sends 403
238
- ok 26 - error is ForbiddenError sends 403
239
- ---
240
- duration_ms: 5.750314
241
- ...
242
- # Subtest: error is MethodNotImplementedError sends 501
243
- ok 27 - error is MethodNotImplementedError sends 501
244
- ---
245
- duration_ms: 5.44366
246
- ...
247
- # Subtest: error is NotFoundError sends 404
248
- ok 28 - error is NotFoundError sends 404
249
- ---
250
- duration_ms: 5.420451
251
- ...
252
- 1..28
253
- ok 1 - defaultAppErrorHandler
254
- ---
255
- duration_ms: 181.852874
256
- ...
257
- 1..1
258
- ok 1 - app-utils unit tests
259
- ---
260
- duration_ms: 182.392061
261
- ...
262
- # Subtest: app unit tests
263
- # Subtest: this.listen
264
- # Subtest: happy path
265
- ok 1 - happy path
266
- ---
267
- duration_ms: 64.750683
268
- ...
269
- 1..1
270
- ok 1 - this.listen
271
- ---
272
- duration_ms: 65.312328
273
- ...
274
- # Subtest: this.listener
275
- # Subtest: run doesnt send response should send 404
276
- ok 1 - run doesnt send response should send 404
277
- ---
278
- duration_ms: 6.538699
279
- ...
280
- # Subtest: run throws and defaultErrorHandler send response
281
- ok 2 - run throws and defaultErrorHandler send response
282
- ---
283
- duration_ms: 5.629318
284
- ...
285
- # Subtest: run throws and defaultErrorHandler doesn't send response
286
- ok 3 - run throws and defaultErrorHandler doesn't send response
287
- ---
288
- duration_ms: 6.293125
289
- ...
290
- 1..3
291
- ok 2 - this.listener
292
- ---
293
- duration_ms: 18.588554
294
- ...
295
- 1..2
296
- ok 2 - app unit tests
297
- ---
298
- duration_ms: 84.54019
299
- ...
300
- # Subtest: context unit tests
301
- # Subtest: ctor req {\\n url: '/url',\\n socket: { remoteAddress: 'remoteAddress' },\\n headers: { host: 'fakeHost' }\\n}
302
- ok 1 - ctor req {\\n url: '/url',\\n socket: { remoteAddress: 'remoteAddress' },\\n headers: { host: 'fakeHost' }\\n}
303
- ---
304
- duration_ms: 92.622954
305
- ...
306
- # Subtest: ctor req {\\n url: '/url',\\n method: 'MeThoD',\\n socket: { remoteAddress: 'remoteAddress' },\\n headers: { host: 'fakeHost' }\\n}
307
- ok 2 - ctor req {\\n url: '/url',\\n method: 'MeThoD',\\n socket: { remoteAddress: 'remoteAddress' },\\n headers: { host: 'fakeHost' }\\n}
308
- ---
309
- duration_ms: 7.049303
310
- ...
311
- # Subtest: this.setHeader alias for this.res.setHeader
312
- ok 3 - this.setHeader alias for this.res.setHeader
313
- ---
314
- duration_ms: 7.421206
315
- ...
316
- # Subtest: this.close calls this.end
317
- ok 4 - this.close calls this.end
318
- ---
319
- duration_ms: 8.31042
320
- ...
321
- # Subtest: this.addVaryHeader
322
- ok 5 - this.addVaryHeader
323
- ---
324
- duration_ms: 0.051248
325
- ...
326
- # Subtest: this.setCookie alias for this.res.setHeader with cookie.serializer
327
- ok 6 - this.setCookie alias for this.res.setHeader with cookie.serializer
328
- ---
329
- duration_ms: 7.501786
330
- ...
331
- # Subtest: this.end with headers not sent
332
- ok 7 - this.end with headers not sent
333
- ---
334
- duration_ms: 6.886018
335
- ...
336
- # Subtest: this.end with headers sent
337
- ok 8 - this.end with headers sent
338
- ---
339
- duration_ms: 7.152091
340
- ...
341
- # Subtest: this.json alias for this.end { status: 'status', headers: 'headers', body: { attr1: 'value2' } }
342
- ok 9 - this.json alias for this.end { status: 'status', headers: 'headers', body: { attr1: 'value2' } }
343
- ---
344
- duration_ms: 7.23263
345
- ...
346
- # Subtest: this.json alias for this.end { status: 'status', headers: undefined, body: { attr1: 'value2' } }
347
- ok 10 - this.json alias for this.end { status: 'status', headers: undefined, body: { attr1: 'value2' } }
348
- ---
349
- duration_ms: 7.490828
350
- ...
351
- # Subtest: this.json alias for this.end { status: undefined, headers: 'headers', body: { attr1: 'value2' } }
352
- ok 11 - this.json alias for this.end { status: undefined, headers: 'headers', body: { attr1: 'value2' } }
353
- ---
354
- duration_ms: 7.164258
355
- ...
356
- # Subtest: this.json alias for this.end { status: undefined, headers: undefined, body: { attr1: 'value2' } }
357
- ok 12 - this.json alias for this.end { status: undefined, headers: undefined, body: { attr1: 'value2' } }
358
- ---
359
- duration_ms: 7.052595
360
- ...
361
- # Subtest: this.text
362
- ok 13 - this.text
363
- ---
364
- duration_ms: 0.055373
365
- ...
366
- # Subtest: this.html
367
- ok 14 - this.html
368
- ---
369
- duration_ms: 0.044873
370
- ...
371
- # Subtest: this.redirect
372
- ok 15 - this.redirect
373
- ---
374
- duration_ms: 0.041624
375
- ...
376
- 1..15
377
- ok 3 - context unit tests
378
- ---
379
- duration_ms: 167.476277
380
- ...
381
- # Subtest: proxy unit tests
382
- # Subtest: ctor with {"url":"http://localhost"}
383
- ok 1 - ctor with {"url":"http://localhost"}
384
- ---
385
- duration_ms: 85.975216
386
- ...
387
- # Subtest: this.run: super.run returns true with options {"url":"http://localhost"} and context /
388
- ok 2 - this.run: super.run returns true with options {"url":"http://localhost"} and context /
389
- ---
390
- duration_ms: 6.368456
391
- ...
392
- # Subtest: ctor with {"url":"http://localhost","rejectUnauthorized":true}
393
- ok 3 - ctor with {"url":"http://localhost","rejectUnauthorized":true}
394
- ---
395
- duration_ms: 6.14009
396
- ...
397
- # Subtest: this.run: super.run returns true with options {"url":"http://localhost","rejectUnauthorized":true} and context /
398
- ok 4 - this.run: super.run returns true with options {"url":"http://localhost","rejectUnauthorized":true} and context /
399
- ---
400
- duration_ms: 5.73698
401
- ...
402
- # Subtest: ctor with {"url":"http://localhost","rejectUnauthorized":false}
403
- ok 5 - ctor with {"url":"http://localhost","rejectUnauthorized":false}
404
- ---
405
- duration_ms: 6.656277
406
- ...
407
- # Subtest: this.run: super.run returns true with options {"url":"http://localhost","rejectUnauthorized":false} and context /
408
- ok 6 - this.run: super.run returns true with options {"url":"http://localhost","rejectUnauthorized":false} and context /
409
- ---
410
- duration_ms: 6.334416
411
- ...
412
- 1..6
413
- ok 4 - proxy unit tests
414
- ---
415
- duration_ms: 118.360807
416
- ...
417
- # Subtest: router unit tests
418
- # Subtest: this.run
419
- # Subtest: some handlers match with undefined undefined
420
- # Subtest: one handler ends response
421
- ok 1 - one handler ends response
422
- ---
423
- duration_ms: 121.395479
424
- ...
425
- # Subtest: no handler ends response
426
- ok 2 - no handler ends response
427
- ---
428
- duration_ms: 11.052478
429
- ...
430
- # Subtest: one handler throws second errorHandler catches
431
- ok 3 - one handler throws second errorHandler catches
432
- ---
433
- duration_ms: 11.443338
434
- ...
435
- # Subtest: one handler throws first errorHandler catches
436
- ok 4 - one handler throws first errorHandler catches
437
- ---
438
- duration_ms: 10.638537
439
- ...
440
- # Subtest: one handler throws errorHandler doesn't catch
441
- ok 5 - one handler throws errorHandler doesn't catch
442
- ---
443
- duration_ms: 10.627871
444
- ...
445
- 1..5
446
- ok 1 - some handlers match with undefined undefined
447
- ---
448
- duration_ms: 165.830343
449
- ...
450
- # Subtest: some handlers match with undefined pathTokens
451
- # Subtest: one handler ends response
452
- ok 1 - one handler ends response
453
- ---
454
- duration_ms: 10.537248
455
- ...
456
- # Subtest: no handler ends response
457
- ok 2 - no handler ends response
458
- ---
459
- duration_ms: 10.58883
460
- ...
461
- # Subtest: one handler throws second errorHandler catches
462
- ok 3 - one handler throws second errorHandler catches
463
- ---
464
- duration_ms: 10.339882
465
- ...
466
- # Subtest: one handler throws first errorHandler catches
467
- ok 4 - one handler throws first errorHandler catches
468
- ---
469
- duration_ms: 11.093477
470
- ...
471
- # Subtest: one handler throws errorHandler doesn't catch
472
- ok 5 - one handler throws errorHandler doesn't catch
473
- ---
474
- duration_ms: 10.233136
475
- ...
476
- 1..5
477
- ok 2 - some handlers match with undefined pathTokens
478
- ---
479
- duration_ms: 53.05823
480
- ...
481
- # Subtest: some handlers match with prePathTokens1 undefined
482
- # Subtest: one handler ends response
483
- ok 1 - one handler ends response
484
- ---
485
- duration_ms: 9.992312
486
- ...
487
- # Subtest: no handler ends response
488
- ok 2 - no handler ends response
489
- ---
490
- duration_ms: 10.359839
491
- ...
492
- # Subtest: one handler throws second errorHandler catches
493
- ok 3 - one handler throws second errorHandler catches
494
- ---
495
- duration_ms: 10.180805
496
- ...
497
- # Subtest: one handler throws first errorHandler catches
498
- ok 4 - one handler throws first errorHandler catches
499
- ---
500
- duration_ms: 10.255177
501
- ...
502
- # Subtest: one handler throws errorHandler doesn't catch
503
- ok 5 - one handler throws errorHandler doesn't catch
504
- ---
505
- duration_ms: 9.995312
506
- ...
507
- 1..5
508
- ok 3 - some handlers match with prePathTokens1 undefined
509
- ---
510
- duration_ms: 50.896399
511
- ...
512
- # Subtest: some handlers match with prePathTokens1 pathTokens
513
- # Subtest: one handler ends response
514
- ok 1 - one handler ends response
515
- ---
516
- duration_ms: 10.25476
517
- ...
518
- # Subtest: no handler ends response
519
- ok 2 - no handler ends response
520
- ---
521
- duration_ms: 10.543748
522
- ...
523
- # Subtest: one handler throws second errorHandler catches
524
- ok 3 - one handler throws second errorHandler catches
525
- ---
526
- duration_ms: 11.066061
527
- ...
528
- # Subtest: one handler throws first errorHandler catches
529
- ok 4 - one handler throws first errorHandler catches
530
- ---
531
- duration_ms: 10.133557
532
- ...
533
- # Subtest: one handler throws errorHandler doesn't catch
534
- ok 5 - one handler throws errorHandler doesn't catch
535
- ---
536
- duration_ms: 9.959355
537
- ...
538
- 1..5
539
- ok 4 - some handlers match with prePathTokens1 pathTokens
540
- ---
541
- duration_ms: 52.190056
542
- ...
543
- 1..4
544
- ok 1 - this.run
545
- ---
546
- duration_ms: 322.299598
547
- ...
548
- # Subtest: options just alias for use
549
- ok 2 - options just alias for use
550
- ---
551
- duration_ms: 9.977771
552
- ...
553
- # Subtest: put just alias for use
554
- ok 3 - put just alias for use
555
- ---
556
- duration_ms: 9.925273
557
- ...
558
- # Subtest: patch just alias for use
559
- ok 4 - patch just alias for use
560
- ---
561
- duration_ms: 9.96648
562
- ...
563
- # Subtest: delete just alias for use
564
- ok 5 - delete just alias for use
565
- ---
566
- duration_ms: 9.880442
567
- ...
568
- # Subtest: post just alias for use
569
- ok 6 - post just alias for use
570
- ---
571
- duration_ms: 9.890817
572
- ...
573
- # Subtest: get just alias for use
574
- ok 7 - get just alias for use
575
- ---
576
- duration_ms: 9.978938
577
- ...
578
- # Subtest: this.catch
579
- # Subtest: errorHandler [\\n [Function (anonymous)] { [length]: 0, [name]: '' },\\n [Function (anonymous)] { [length]: 0, [name]: '' },\\n [length]: 2\\n] throws undefined
580
- ok 1 - errorHandler [\\n [Function (anonymous)] { [length]: 0, [name]: '' },\\n [Function (anonymous)] { [length]: 0, [name]: '' },\\n [length]: 2\\n] throws undefined
581
- ---
582
- duration_ms: 10.306967
583
- ...
584
- # Subtest: errorHandler [Function: errorHandler] { [length]: 0, [name]: 'errorHandler' } throws undefined
585
- ok 2 - errorHandler [Function: errorHandler] { [length]: 0, [name]: 'errorHandler' } throws undefined
586
- ---
587
- duration_ms: 9.980146
588
- ...
589
- # Subtest: errorHandler undefined throws true
590
- ok 3 - errorHandler undefined throws true
591
- ---
592
- duration_ms: 10.003937
593
- ...
594
- # Subtest: errorHandler [\\n [Function (anonymous)] { [length]: 0, [name]: '' },\\n undefined,\\n [length]: 2\\n] throws true
595
- ok 4 - errorHandler [\\n [Function (anonymous)] { [length]: 0, [name]: '' },\\n undefined,\\n [length]: 2\\n] throws true
596
- ---
597
- duration_ms: 9.895191
598
- ...
599
- 1..4
600
- ok 8 - this.catch
601
- ---
602
- duration_ms: 40.373608
603
- ...
604
- # Subtest: this.use
605
- # Subtest: use with handler handler path path method method options options
606
- ok 1 - use with handler handler path path method method options options
607
- ---
608
- duration_ms: 16.120486
609
- ...
610
- # Subtest: use with handler handler path path method undefined options options
611
- ok 2 - use with handler handler path path method undefined options options
612
- ---
613
- duration_ms: 5.036009
614
- ...
615
- # Subtest: use with handler handler path undefined method undefined options options
616
- ok 3 - use with handler handler path undefined method undefined options options
617
- ---
618
- duration_ms: 5.654526
619
- ...
620
- # Subtest: use with handler handler path path method method options undefined
621
- ok 4 - use with handler handler path path method method options undefined
622
- ---
623
- duration_ms: 5.035217
624
- ...
625
- # Subtest: use with handler handler path path method undefined options undefined
626
- ok 5 - use with handler handler path path method undefined options undefined
627
- ---
628
- duration_ms: 5.527573
629
- ...
630
- # Subtest: use with handler handler path undefined method undefined options undefined
631
- ok 6 - use with handler handler path undefined method undefined options undefined
632
- ---
633
- duration_ms: 5.007718
634
- ...
635
- # Subtest: use with handler undefined path path method method options options
636
- ok 7 - use with handler undefined path path method method options options
637
- ---
638
- duration_ms: 5.745689
639
- ...
640
- # Subtest: use with handler undefined path path method undefined options options
641
- ok 8 - use with handler undefined path path method undefined options options
642
- ---
643
- duration_ms: 6.824104
644
- ...
645
- # Subtest: use with handler undefined path undefined method undefined options options
646
- ok 9 - use with handler undefined path undefined method undefined options options
647
- ---
648
- duration_ms: 5.53653
649
- ...
650
- # Subtest: use with handler undefined path path method method options undefined
651
- ok 10 - use with handler undefined path path method method options undefined
652
- ---
653
- duration_ms: 5.865101
654
- ...
655
- # Subtest: use with handler undefined path path method undefined options undefined
656
- ok 11 - use with handler undefined path path method undefined options undefined
657
- ---
658
- duration_ms: 4.960511
659
- ...
660
- # Subtest: use with handler undefined path undefined method undefined options undefined
661
- ok 12 - use with handler undefined path undefined method undefined options undefined
662
- ---
663
- duration_ms: 5.57982
664
- ...
665
- # Subtest: use with handler handler1,handler2 path path method method options options
666
- ok 13 - use with handler handler1,handler2 path path method method options options
667
- ---
668
- duration_ms: 4.988094
669
- ...
670
- # Subtest: use with handler handler1,handler2 path path method undefined options options
671
- ok 14 - use with handler handler1,handler2 path path method undefined options options
672
- ---
673
- duration_ms: 5.812103
674
- ...
675
- # Subtest: use with handler handler1,handler2 path undefined method undefined options options
676
- ok 15 - use with handler handler1,handler2 path undefined method undefined options options
677
- ---
678
- duration_ms: 5.037758
679
- ...
680
- # Subtest: use with handler handler1,handler2 path path method method options undefined
681
- ok 16 - use with handler handler1,handler2 path path method method options undefined
682
- ---
683
- duration_ms: 5.549947
684
- ...
685
- # Subtest: use with handler handler1,handler2 path path method undefined options undefined
686
- ok 17 - use with handler handler1,handler2 path path method undefined options undefined
687
- ---
688
- duration_ms: 5.310206
689
- ...
690
- # Subtest: use with handler handler1,handler2 path undefined method undefined options undefined
691
- ok 18 - use with handler handler1,handler2 path undefined method undefined options undefined
692
- ---
693
- duration_ms: 5.271624
694
- ...
695
- 1..18
696
- ok 9 - this.use
697
- ---
698
- duration_ms: 109.067093
699
- ...
700
- 1..9
701
- ok 5 - router unit tests
702
- ---
703
- duration_ms: 532.183778
704
- ...
705
- # 2023-08-10T14:42:16.380Z 944 [test] [ERROR] Error: /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/test-data/not a directory not a directory!
706
- # at APIRouter (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/api-router.ts:45:11)
707
- # at TestContext.<anonymous> (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/api-router.test.js:56:13)
708
- # at Test.runInAsyncScope (node:async_hooks:203:9)
709
- # at Test.run (node:internal/test_runner/test:547:25)
710
- # at Test.start (node:internal/test_runner/test:463:17)
711
- # at node:internal/test_runner/test:799:71
712
- # at node:internal/per_context/primordials:482:82
713
- # at new Promise (<anonymous>)
714
- # at new SafePromise (node:internal/per_context/primordials:450:29)
715
- # at node:internal/per_context/primordials:482:9
716
- # Subtest: api-router functional tests
717
- # Subtest: not a directory
718
- ok 1 - not a directory
719
- ---
720
- duration_ms: 5.615027
721
- ...
722
- # Subtest: sink happy path blr
723
- ok 2 - sink happy path blr
724
- ---
725
- duration_ms: 188.267453
726
- ...
727
- # 2023-08-10T14:42:16.654Z 944 [API_APINAMEBLO_SINK_ECHO_BBB_PUT] [ERROR] PUT /api/apiNameBlo/sink/echo/bbb/?bla=bla&sdkjls=asdja [358fe11c-08d1-41ac-8909-97da028ab348] error parsing query [Object: null prototype] { bla: 'bla', sdkjls: 'asdja' }
728
- # 2023-08-10T14:42:16.660Z 944 [API_APINAMEBLO_SINK_ECHO_BBB_PUT] [ERROR] PUT /api/apiNameBlo/sink/echo/bbb/?bla=bla&sdkjls=asdja [358fe11c-08d1-41ac-8909-97da028ab348] ParseOptionsError: query.sdkjls option not valid [sdkjls]
729
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:349:19)
730
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
731
- # at parseRequestPart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:35:49)
732
- # at ParseRequest (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:65:11)
733
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
734
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
735
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
736
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:40)
737
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
738
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13) {
739
- # argAttr: 'query.sdkjls'
740
- # }
741
- # Subtest: sink happy path bad query extra query
742
- ok 3 - sink happy path bad query extra query
743
- ---
744
- duration_ms: 90.614074
745
- ...
746
- # Subtest: /params happy path with optional NOT set
747
- ok 4 - /params happy path with optional NOT set
748
- ---
749
- duration_ms: 92.445419
750
- ...
751
- # Subtest: /params happy path with optional set
752
- ok 5 - /params happy path with optional set
753
- ---
754
- duration_ms: 80.393063
755
- ...
756
- # Subtest: root options with APITestHelper item
757
- ok 6 - root options with APITestHelper item
758
- ---
759
- duration_ms: 99.832793
760
- ...
761
- # Subtest: root options with APITestHelper list
762
- ok 7 - root options with APITestHelper list
763
- ---
764
- duration_ms: 79.463933
765
- ...
766
- # 2023-08-10T14:42:17.092Z 944 [API_APINAMEBLA_OPTIONS] [ERROR] OPTIONS /api/apiNameBla/?type=bad [8545af2d-e54b-4b1b-8125-c9262a3456ec] error parsing lastResult[{ body: { badresult: 'bad' } }]
767
- # 2023-08-10T14:42:17.095Z 944 [API_APINAMEBLA_OPTIONS] [ERROR] OPTIONS /api/apiNameBla/?type=bad [8545af2d-e54b-4b1b-8125-c9262a3456ec] ParseOptionsError: ctx.results.body.items not defined
768
- # at parseValue (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:394:11)
769
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:313:25)
770
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
771
- # at parsePart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/result.ts:54:62)
772
- # at ResultParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/result.ts:38:33)
773
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
774
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
775
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
776
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:40)
777
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34) {
778
- # argAttr: 'ctx.results.body.items'
779
- # }
780
- # 2023-08-10T14:42:17.095Z 944 [API_APINAMEBLA_OPTIONS] [ERROR] OPTIONS /api/apiNameBla/?type=bad [8545af2d-e54b-4b1b-8125-c9262a3456ec] ParseOptionsError: ctx.results.body.items not defined
781
- # at parseValue (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:394:11)
782
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:313:25)
783
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
784
- # at parsePart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/result.ts:54:62)
785
- # at ResultParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/result.ts:38:33)
786
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
787
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
788
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
789
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:40)
790
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34) {
791
- # argAttr: 'ctx.results.body.items'
792
- # }
793
- # Subtest: root options with APITestHelper list 2
794
- ok 8 - root options with APITestHelper list 2
795
- ---
796
- duration_ms: 83.929298
797
- ...
798
- # Subtest: root post with APITestHelper
799
- ok 9 - root post with APITestHelper
800
- ---
801
- duration_ms: 92.098015
802
- ...
803
- # Subtest: root get with APITestHelper
804
- ok 10 - root get with APITestHelper
805
- ---
806
- duration_ms: 92.891276
807
- ...
808
- # Subtest: root delete custom
809
- ok 11 - root delete custom
810
- ---
811
- duration_ms: 93.672745
812
- ...
813
- # Subtest: simple echo
814
- ok 12 - simple echo
815
- ---
816
- duration_ms: 93.219721
817
- ...
818
- # Subtest: simple echo async testhelper
819
- ok 13 - simple echo async testhelper
820
- ---
821
- duration_ms: 92.657118
822
- ...
823
- # Subtest: other echo
824
- ok 14 - other echo
825
- ---
826
- duration_ms: 92.300383
827
- ...
828
- # 2023-08-10T14:42:17.748Z 944 [API_APINAMEBLO_SINK_ECHO_BBB_PUT] [ERROR] PUT /api/apiNameBlo/sink/echo/bbb/?bla2=bla [caecc24d-8293-42cf-9ef8-1cf4921e749d] error parsing query [Object: null prototype] { bla2: 'bla' }
829
- # 2023-08-10T14:42:17.749Z 944 [API_APINAMEBLO_SINK_ECHO_BBB_PUT] [ERROR] PUT /api/apiNameBlo/sink/echo/bbb/?bla2=bla [caecc24d-8293-42cf-9ef8-1cf4921e749d] ParseOptionsError: query.bla not defined
830
- # at parseValue (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:394:11)
831
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:313:25)
832
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
833
- # at parseRequestPart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:35:49)
834
- # at ParseRequest (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:65:11)
835
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
836
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
837
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
838
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:40)
839
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34) {
840
- # argAttr: 'query.bla'
841
- # }
842
- # Subtest: sink happy path bad query
843
- ok 15 - sink happy path bad query
844
- ---
845
- duration_ms: 95.681749
846
- ...
847
- # 2023-08-10T14:42:17.831Z 944 [API_APINAMEBLO_SINK_ECHO_BBB_PUT] [ERROR] PUT /api/apiNameBlo/sink/echo/bbb/?bla=bla [f15865fd-dfa3-4d4d-8766-65e6a649b4b0] error parsing body undefined
848
- # 2023-08-10T14:42:17.833Z 944 [API_APINAMEBLO_SINK_ECHO_BBB_PUT] [ERROR] PUT /api/apiNameBlo/sink/echo/bbb/?bla=bla [f15865fd-dfa3-4d4d-8766-65e6a649b4b0] ParseOptionsError: body.bla not defined
849
- # at parseValue (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:394:11)
850
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:313:25)
851
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
852
- # at parseRequestPart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:35:49)
853
- # at ParseRequest (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:83:11)
854
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
855
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
856
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:40)
857
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
858
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13) {
859
- # argAttr: 'body.bla'
860
- # }
861
- # Subtest: sink happy path bad body
862
- ok 16 - sink happy path bad body
863
- ---
864
- duration_ms: 84.695642
865
- ...
866
- # Subtest: sink2 happy path any body
867
- ok 17 - sink2 happy path any body
868
- ---
869
- duration_ms: 92.175013
870
- ...
871
- # Subtest: sink happy path no token
872
- ok 18 - sink happy path no token
873
- ---
874
- duration_ms: 92.23676
875
- ...
876
- 1..18
877
- ok 6 - api-router functional tests
878
- ---
879
- duration_ms: 1643.943661
880
- ...
881
- # {
882
- # request:
883
- # handler:
884
- # [Function: ret] {
885
- # callCount:
886
- # returnValues:
887
- # throws:
888
- # callArgs:
889
- # reset:
890
- # }
891
- # ]
892
- # }
893
- # Subtest: api route validator
894
- # Subtest: happy path empty
895
- ok 1 - happy path empty
896
- ---
897
- duration_ms: 108.419536
898
- ...
899
- 1..1
900
- ok 7 - api route validator
901
- ---
902
- duration_ms: 110.141842
903
- ...
904
- # 200
905
- # {
906
- # vary:
907
- # 'content
908
- # connection:
909
- # 'content
910
- # }
911
- # Subtest: app cors functional tests
912
- # Subtest: cors append multiple vary headers 1
913
- ok 1 - cors append multiple vary headers 1
914
- ---
915
- duration_ms: 12.041397
916
- ...
917
- # 200
918
- # {
919
- # vary:
920
- # 'content
921
- # connection:
922
- # 'content
923
- # }
924
- # Subtest: cors append multiple vary headers 2
925
- ok 2 - cors append multiple vary headers 2
926
- ---
927
- duration_ms: 3.155667
928
- ...
929
- # 200
930
- # {
931
- # vary:
932
- # 'content
933
- # connection:
934
- # 'content
935
- # }
936
- # Subtest: cors append multiple vary headers 3
937
- ok 3 - cors append multiple vary headers 3
938
- ---
939
- duration_ms: 2.020462
940
- ...
941
- # 200
942
- # {
943
- # vary:
944
- # 'content
945
- # connection:
946
- # 'content
947
- # }
948
- # Subtest: cors append multiple vary headers 4
949
- ok 4 - cors append multiple vary headers 4
950
- ---
951
- duration_ms: 1.60002
952
- ...
953
- # 200
954
- # {
955
- # vary:
956
- # 'content
957
- # connection:
958
- # 'content
959
- # }
960
- # Subtest: cors append multiple vary headers *
961
- ok 5 - cors append multiple vary headers *
962
- ---
963
- duration_ms: 1.948506
964
- ...
965
- # 204
966
- # {
967
- # 'access
968
- # vary:
969
- # 'access
970
- # 'content
971
- # connection:
972
- # }
973
- # Subtest: cors happy path
974
- ok 6 - cors happy path
975
- ---
976
- duration_ms: 1.839093
977
- ...
978
- # 200
979
- # {
980
- # 'access
981
- # vary:
982
- # 'content
983
- # connection:
984
- # 'content
985
- # }
986
- # Subtest: cors happy path 2
987
- ok 7 - cors happy path 2
988
- ---
989
- duration_ms: 1.619061
990
- ...
991
- # 200
992
- # {
993
- # 'access
994
- # vary:
995
- # 'content
996
- # connection:
997
- # 'content
998
- # }
999
- # Subtest: cors happy path 3
1000
- ok 8 - cors happy path 3
1001
- ---
1002
- duration_ms: 2.087001
1003
- ...
1004
- # 2023-08-10T14:42:19.740Z 958 [GET] [ERROR] GET / [60e30bcc-62a6-4881-bc38-adef769f76e9] BadRequestError: bad origin
1005
- # at CORS (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/cors.ts:63:17)
1006
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1007
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1008
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)
1009
- # at Server.emit (node:events:513:28)
1010
- # at parserOnIncoming (node:_http_server:1091:12)
1011
- # at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
1012
- # 400
1013
- # {
1014
- # 'content
1015
- # connection:
1016
- # 'content
1017
- # }
1018
- # Subtest: cors happy path 4
1019
- ok 9 - cors happy path 4
1020
- ---
1021
- duration_ms: 7.261504
1022
- ...
1023
- # 2023-08-10T14:42:19.744Z 958 [OPTIONS] [ERROR] OPTIONS / [2bce4efc-1d44-4281-b773-dcfc9038fe9c] BadRequestError: bad origin
1024
- # at CORS (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/cors.ts:63:17)
1025
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1026
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1027
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)
1028
- # at Server.emit (node:events:513:28)
1029
- # at parserOnIncoming (node:_http_server:1091:12)
1030
- # at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
1031
- # 400
1032
- # {
1033
- # 'content
1034
- # connection:
1035
- # 'content
1036
- # }
1037
- # Subtest: cors happy path 5
1038
- ok 10 - cors happy path 5
1039
- ---
1040
- duration_ms: 4.369619
1041
- ...
1042
- # 204
1043
- # {
1044
- # 'access
1045
- # vary:
1046
- # 'access
1047
- # 'content
1048
- # connection:
1049
- # }
1050
- # Subtest: cors happy path 6
1051
- ok 11 - cors happy path 6
1052
- ---
1053
- duration_ms: 2.354782
1054
- ...
1055
- 1..11
1056
- ok 8 - app cors functional tests
1057
- ---
1058
- duration_ms: 41.879881
1059
- ...
1060
- # 2023-08-10T14:42:20.837Z 965 [HELLO_GET] [ERROR] GET /hello/ [81b3b634-cf73-4ef5-bfba-04986d1bbcc4] ConfigFileNotFoundError: text
1061
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:19:15
1062
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1063
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1064
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1065
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1066
- # 2023-08-10T14:42:20.838Z 965 [HELLO_GET] [ERROR] GET /hello/ [81b3b634-cf73-4ef5-bfba-04986d1bbcc4] status[503] content-length[4] [6]ms
1067
- # {
1068
- # status:
1069
- # headers:
1070
- # 'content-type': 'text/html; charset=utf-8',
1071
- # connection: 'close',
1072
- # 'content-length': '4'
1073
- # },
1074
- # data:
1075
- # }
1076
- # Subtest: app error func tests
1077
- # Subtest: catch ConfigFileNotFound as 503 text
1078
- ok 1 - catch ConfigFileNotFound as 503 text
1079
- ---
1080
- duration_ms: 16.32502
1081
- ...
1082
- # 2023-08-10T14:42:20.845Z 965 [HELLO_GET] [ERROR] GET /hello/ [586fed19-8e66-4666-a698-d1060dd13835] NotFoundError: text
1083
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:37:15
1084
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1085
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1086
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1087
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1088
- # {
1089
- # status:
1090
- # headers:
1091
- # 'content-type': 'text/html; charset=utf-8',
1092
- # connection: 'close',
1093
- # 'content-length': '4'
1094
- # },
1095
- # data:
1096
- # }
1097
- # Subtest: catch NotFound as 404 text
1098
- ok 2 - catch NotFound as 404 text
1099
- ---
1100
- duration_ms: 5.047383
1101
- ...
1102
- # 2023-08-10T14:42:20.849Z 965 [HELLO_GET] [ERROR] GET /hello/ [95f75c01-8b1a-4c96-86d6-875f97ffc5b1] MethodNotImplementedError: text
1103
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:55:15
1104
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1105
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1106
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1107
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1108
- # 2023-08-10T14:42:20.850Z 965 [HELLO_GET] [ERROR] GET /hello/ [95f75c01-8b1a-4c96-86d6-875f97ffc5b1] status[501] content-length[4] [2]ms
1109
- # {
1110
- # status:
1111
- # headers:
1112
- # 'content-type': 'text/html; charset=utf-8',
1113
- # connection: 'close',
1114
- # 'content-length': '4'
1115
- # },
1116
- # data:
1117
- # }
1118
- # Subtest: catch NotImplemented as 501text
1119
- ok 3 - catch NotImplemented as 501text
1120
- ---
1121
- duration_ms: 4.106754
1122
- ...
1123
- # 2023-08-10T14:42:20.852Z 965 [HELLO_GET] [ERROR] GET /hello/ [bf7a6f07-57cc-4bb3-a0ed-a0edd5f083e5] ConfigFileNotFoundError: NOT FOUND
1124
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:19:15
1125
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1126
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1127
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1128
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1129
- # 2023-08-10T14:42:20.853Z 965 [HELLO_GET] [ERROR] GET /hello/ [bf7a6f07-57cc-4bb3-a0ed-a0edd5f083e5] status[503] content-length[9] [2]ms
1130
- # {
1131
- # status:
1132
- # headers:
1133
- # 'content-type': 'text/html; charset=utf-8',
1134
- # connection: 'close',
1135
- # 'content-length': '9'
1136
- # },
1137
- # data:
1138
- # }
1139
- # Subtest: catch ConfigFileNotFound as 503 undefined
1140
- ok 4 - catch ConfigFileNotFound as 503 undefined
1141
- ---
1142
- duration_ms: 2.93555
1143
- ...
1144
- # 2023-08-10T14:42:20.856Z 965 [HELLO_GET] [ERROR] GET /hello/ [b7ee47ba-2033-468a-ae47-23e05c35dee3] NotFoundError: NOT FOUND
1145
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:37:15
1146
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1147
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1148
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1149
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1150
- # {
1151
- # status:
1152
- # headers:
1153
- # 'content-type': 'text/html; charset=utf-8',
1154
- # connection: 'close',
1155
- # 'content-length': '9'
1156
- # },
1157
- # data:
1158
- # }
1159
- # Subtest: catch NotFound as 404 undefined
1160
- ok 5 - catch NotFound as 404 undefined
1161
- ---
1162
- duration_ms: 3.456946
1163
- ...
1164
- # 2023-08-10T14:42:20.859Z 965 [HELLO_GET] [ERROR] GET /hello/ [4bc0fea7-26bd-4f8e-90a9-b6c9eb24d431] MethodNotImplementedError: NOT IMPLEMENTED
1165
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:55:15
1166
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1167
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1168
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1169
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1170
- # 2023-08-10T14:42:20.860Z 965 [HELLO_GET] [ERROR] GET /hello/ [4bc0fea7-26bd-4f8e-90a9-b6c9eb24d431] status[501] content-length[15] [2]ms
1171
- # {
1172
- # status:
1173
- # headers:
1174
- # 'content-type': 'text/html; charset=utf-8',
1175
- # connection: 'close',
1176
- # 'content-length': '15'
1177
- # },
1178
- # data:
1179
- # }
1180
- # Subtest: catch NotImplemented as 501undefined
1181
- ok 6 - catch NotImplemented as 501undefined
1182
- ---
1183
- duration_ms: 3.90747
1184
- ...
1185
- # 2023-08-10T14:42:20.862Z 965 [HELLO_GET] [ERROR] GET /hello/ [c3038275-a004-4ca9-b1c5-88dc89faed2b] Error: bla
1186
- # at impl (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:74:13)
1187
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1188
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1189
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1190
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1191
- # 2023-08-10T14:42:20.863Z 965 [HELLO_GET] [ERROR] GET /hello/ [c3038275-a004-4ca9-b1c5-88dc89faed2b] status[503] content-length[575] [1]ms
1192
- # {
1193
- # status:
1194
- # headers:
1195
- # 'content-type': 'text/html; charset=utf-8',
1196
- # connection: 'close',
1197
- # 'content-length': '575'
1198
- # },
1199
- # data:
1200
- # ' at impl (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:74:13)\\n' +
1201
- # ' at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)\\n' +
1202
- # ' at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)\\n' +
1203
- # ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\\n' +
1204
- # ' at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)'
1205
- # }
1206
- # 2023-08-10T14:42:20.865Z 965 [HELLO_GET] [ERROR] GET /hello/ [8080140e-f60f-4ac7-9771-8f4f10e867ea] Error: bla
1207
- # at impl (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:74:13)
1208
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1209
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1210
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1211
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1212
- # 2023-08-10T14:42:20.865Z 965 [HELLO_GET] [ERROR] GET /hello/ [8080140e-f60f-4ac7-9771-8f4f10e867ea] status[503] content-length[575] [0]ms
1213
- # 2023-08-10T14:42:20.868Z 965 [HELLO_GET] [ERROR] GET /hello/ [09326e13-6726-414a-9c95-d76f06c7b954] Error: bla
1214
- # at impl (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:74:13)
1215
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1216
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1217
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1218
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1219
- # 2023-08-10T14:42:20.868Z 965 [HELLO_GET] [ERROR] GET /hello/ [09326e13-6726-414a-9c95-d76f06c7b954] Error: bla
1220
- # at impl (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:74:13)
1221
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1222
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1223
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1224
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1225
- # Subtest: catch unkown Error with 503 on TEST and show stack
1226
- ok 7 - catch unkown Error with 503 on TEST and show stack
1227
- ---
1228
- duration_ms: 2.737642
1229
- ...
1230
- # {
1231
- # status:
1232
- # headers:
1233
- # 'content-type': 'text/html; charset=utf-8',
1234
- # connection: 'close',
1235
- # 'content-length': '575'
1236
- # },
1237
- # data:
1238
- # ' at impl (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/app.error.test.js:74:13)\\n' +
1239
- # ' at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)\\n' +
1240
- # ' at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)\\n' +
1241
- # ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\\n' +
1242
- # ' at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)'
1243
- # }
1244
- # Subtest: catch unkown Error with 503 on DEVELOPMENT and show stack
1245
- ok 8 - catch unkown Error with 503 on DEVELOPMENT and show stack
1246
- ---
1247
- duration_ms: 2.469611
1248
- ...
1249
- # {
1250
- # status:
1251
- # headers:
1252
- # 'content-type': 'text/html; charset=utf-8',
1253
- # connection: 'close',
1254
- # 'content-length': '12'
1255
- # },
1256
- # data:
1257
- # }
1258
- # Subtest: catch unkown Error with 503 on ASDLJ and hide stack and error message
1259
- ok 9 - catch unkown Error with 503 on ASDLJ and hide stack and error message
1260
- ---
1261
- duration_ms: 2.756641
1262
- ...
1263
- # 2023-08-10T14:42:20.868Z 965 [HELLO_GET] [ERROR] GET /hello/ [09326e13-6726-414a-9c95-d76f06c7b954] status[503] content-length[12] [1]ms
1264
- # 2023-08-10T14:42:20.870Z 965 [HELLO_GET] [ERROR] GET /hello/ [cbf023df-60a3-4084-96e0-a5fa14d0fdb7] ble
1265
- # 2023-08-10T14:42:20.871Z 965 [HELLO_GET] [ERROR] GET /hello/ [cbf023df-60a3-4084-96e0-a5fa14d0fdb7] status[503] content-length[90] [1]ms
1266
- # 2023-08-10T14:42:20.872Z 965 [HELLO_GET] [ERROR] GET /hello/ [4f32fcda-e2e5-4a2c-a149-46a545ea88c9] ble
1267
- # 2023-08-10T14:42:20.873Z 965 [HELLO_GET] [ERROR] GET /hello/ [4f32fcda-e2e5-4a2c-a149-46a545ea88c9] status[503] content-length[90] [1]ms
1268
- # 2023-08-10T14:42:20.874Z 965 [HELLO_GET] [ERROR] GET /hello/ [637f3280-5573-4ea6-80fb-7c6b02fb5c7f] ble
1269
- # 2023-08-10T14:42:20.874Z 965 [HELLO_GET] [ERROR] GET /hello/ [637f3280-5573-4ea6-80fb-7c6b02fb5c7f] ble
1270
- # 2023-08-10T14:42:20.874Z 965 [HELLO_GET] [ERROR] GET /hello/ [637f3280-5573-4ea6-80fb-7c6b02fb5c7f] status[503] content-length[12] [0]ms
1271
- # 2023-08-10T14:42:20.876Z 965 [HELLO_GET] [ERROR] GET /hello/ [9bd9f74c-ba9d-46de-bddb-e1bb1f951eb0] true
1272
- # 2023-08-10T14:42:20.876Z 965 [HELLO_GET] [ERROR] GET /hello/ [9bd9f74c-ba9d-46de-bddb-e1bb1f951eb0] status[503] content-length[91] [0]ms
1273
- # 2023-08-10T14:42:20.878Z 965 [HELLO_GET] [ERROR] GET /hello/ [ecf494ed-e246-44e0-bd64-3c90c70264fa] true
1274
- # 2023-08-10T14:42:20.878Z 965 [HELLO_GET] [ERROR] GET /hello/ [ecf494ed-e246-44e0-bd64-3c90c70264fa] status[503] content-length[91] [0]ms
1275
- # {
1276
- # status:
1277
- # headers:
1278
- # 'content-type': 'text/html; charset=utf-8',
1279
- # connection: 'close',
1280
- # 'content-length': '90'
1281
- # },
1282
- # data:
1283
- # }
1284
- # Subtest: catch unkown string with 503 on TEST and show stack
1285
- ok 10 - catch unkown string with 503 on TEST and show stack
1286
- ---
1287
- duration_ms: 2.222953
1288
- ...
1289
- # {
1290
- # status:
1291
- # headers:
1292
- # 'content-type': 'text/html; charset=utf-8',
1293
- # connection: 'close',
1294
- # 'content-length': '90'
1295
- # },
1296
- # data:
1297
- # }
1298
- # Subtest: catch unkown string with 503 on DEVELOPMENT and show stack
1299
- ok 11 - catch unkown string with 503 on DEVELOPMENT and show stack
1300
- ---
1301
- duration_ms: 1.96188
1302
- ...
1303
- # {
1304
- # status:
1305
- # headers:
1306
- # 'content-type': 'text/html; charset=utf-8',
1307
- # connection: 'close',
1308
- # 'content-length': '12'
1309
- # },
1310
- # data:
1311
- # }
1312
- # Subtest: catch unkown string with 503 on ASDLJ and hide stack and error message
1313
- ok 12 - catch unkown string with 503 on ASDLJ and hide stack and error message
1314
- ---
1315
- duration_ms: 1.790804
1316
- ...
1317
- # {
1318
- # status:
1319
- # headers:
1320
- # 'content-type': 'text/html; charset=utf-8',
1321
- # connection: 'close',
1322
- # 'content-length': '91'
1323
- # },
1324
- # data:
1325
- # }
1326
- # Subtest: catch unkown boolean with 503 on TEST and show stack
1327
- ok 13 - catch unkown boolean with 503 on TEST and show stack
1328
- ---
1329
- duration_ms: 1.741431
1330
- ...
1331
- # {
1332
- # status:
1333
- # headers:
1334
- # 'content-type': 'text/html; charset=utf-8',
1335
- # connection: 'close',
1336
- # 'content-length': '91'
1337
- # },
1338
- # data:
1339
- # }
1340
- # Subtest: catch unkown boolean with 503 on DEVELOPMENT and show stack
1341
- ok 14 - catch unkown boolean with 503 on DEVELOPMENT and show stack
1342
- ---
1343
- duration_ms: 1.889633
1344
- ...
1345
- # 2023-08-10T14:42:20.880Z 965 [HELLO_GET] [ERROR] GET /hello/ [8f6754d6-55aa-4a3b-b2b4-dad00efeb95a] true
1346
- # 2023-08-10T14:42:20.880Z 965 [HELLO_GET] [ERROR] GET /hello/ [8f6754d6-55aa-4a3b-b2b4-dad00efeb95a] true
1347
- # 2023-08-10T14:42:20.880Z 965 [HELLO_GET] [ERROR] GET /hello/ [8f6754d6-55aa-4a3b-b2b4-dad00efeb95a] status[503] content-length[12] [0]ms
1348
- # 2023-08-10T14:42:20.881Z 965 [HELLO_GET] [ERROR] GET /hello/ [75892797-24f9-4551-aa30-f3971b53bd21] undefined
1349
- # 2023-08-10T14:42:20.881Z 965 [HELLO_GET] [ERROR] GET /hello/ [75892797-24f9-4551-aa30-f3971b53bd21] status[503] content-length[96] [0]ms
1350
- # 2023-08-10T14:42:20.883Z 965 [HELLO_GET] [ERROR] GET /hello/ [e475a204-b994-47d2-9b0a-8af30a732141] undefined
1351
- # 2023-08-10T14:42:20.883Z 965 [HELLO_GET] [ERROR] GET /hello/ [e475a204-b994-47d2-9b0a-8af30a732141] status[503] content-length[96] [0]ms
1352
- # 2023-08-10T14:42:20.884Z 965 [HELLO_GET] [ERROR] GET /hello/ [a8b41361-0ded-4cd6-b493-bcf1025de79e] undefined
1353
- # 2023-08-10T14:42:20.885Z 965 [HELLO_GET] [ERROR] GET /hello/ [a8b41361-0ded-4cd6-b493-bcf1025de79e] undefined
1354
- # 2023-08-10T14:42:20.885Z 965 [HELLO_GET] [ERROR] GET /hello/ [a8b41361-0ded-4cd6-b493-bcf1025de79e] status[503] content-length[12] [1]ms
1355
- # 2023-08-10T14:42:20.888Z 965 [HELLO_GET] [ERROR] GET /hello/ [daff2a98-28fa-4c1f-bfd8-f867e73cfa91] null
1356
- # 2023-08-10T14:42:20.888Z 965 [HELLO_GET] [ERROR] GET /hello/ [daff2a98-28fa-4c1f-bfd8-f867e73cfa91] status[503] content-length[91] [0]ms
1357
- # 2023-08-10T14:42:20.890Z 965 [HELLO_GET] [ERROR] GET /hello/ [7e03353d-4863-49d0-9d64-2044611a2ec1] null
1358
- # 2023-08-10T14:42:20.890Z 965 [HELLO_GET] [ERROR] GET /hello/ [7e03353d-4863-49d0-9d64-2044611a2ec1] status[503] content-length[91] [0]ms
1359
- # {
1360
- # status:
1361
- # headers:
1362
- # 'content-type': 'text/html; charset=utf-8',
1363
- # connection: 'close',
1364
- # 'content-length': '12'
1365
- # },
1366
- # data:
1367
- # }
1368
- # Subtest: catch unkown boolean with 503 on ASDLJ and hide stack and error message
1369
- ok 15 - catch unkown boolean with 503 on ASDLJ and hide stack and error message
1370
- ---
1371
- duration_ms: 1.659768
1372
- ...
1373
- # {
1374
- # status:
1375
- # headers:
1376
- # 'content-type': 'text/html; charset=utf-8',
1377
- # connection: 'close',
1378
- # 'content-length': '96'
1379
- # },
1380
- # data:
1381
- # }
1382
- # Subtest: catch unkown undefined with 503 on TEST and show stack
1383
- ok 16 - catch unkown undefined with 503 on TEST and show stack
1384
- ---
1385
- duration_ms: 1.436901
1386
- ...
1387
- # {
1388
- # status:
1389
- # headers:
1390
- # 'content-type': 'text/html; charset=utf-8',
1391
- # connection: 'close',
1392
- # 'content-length': '96'
1393
- # },
1394
- # data:
1395
- # }
1396
- # Subtest: catch unkown undefined with 503 on DEVELOPMENT and show stack
1397
- ok 17 - catch unkown undefined with 503 on DEVELOPMENT and show stack
1398
- ---
1399
- duration_ms: 1.520232
1400
- ...
1401
- # {
1402
- # status:
1403
- # headers:
1404
- # 'content-type': 'text/html; charset=utf-8',
1405
- # connection: 'close',
1406
- # 'content-length': '12'
1407
- # },
1408
- # data:
1409
- # }
1410
- # Subtest: catch unkown undefined with 503 on ASDLJ and hide stack and error message
1411
- ok 18 - catch unkown undefined with 503 on ASDLJ and hide stack and error message
1412
- ---
1413
- duration_ms: 1.679392
1414
- ...
1415
- # {
1416
- # status:
1417
- # headers:
1418
- # 'content-type': 'text/html; charset=utf-8',
1419
- # connection: 'close',
1420
- # 'content-length': '91'
1421
- # },
1422
- # data:
1423
- # }
1424
- # Subtest: catch unkown null with 503 on TEST and show stack
1425
- ok 19 - catch unkown null with 503 on TEST and show stack
1426
- ---
1427
- duration_ms: 3.538068
1428
- ...
1429
- # {
1430
- # status:
1431
- # headers:
1432
- # 'content-type': 'text/html; charset=utf-8',
1433
- # connection: 'close',
1434
- # 'content-length': '91'
1435
- # },
1436
- # data:
1437
- # }
1438
- # Subtest: catch unkown null with 503 on DEVELOPMENT and show stack
1439
- ok 20 - catch unkown null with 503 on DEVELOPMENT and show stack
1440
- ---
1441
- duration_ms: 1.940714
1442
- ...
1443
- # 2023-08-10T14:42:20.892Z 965 [HELLO_GET] [ERROR] GET /hello/ [5aded8f3-8d14-4bb2-bfd5-7c4ffafb3731] null
1444
- # 2023-08-10T14:42:20.892Z 965 [HELLO_GET] [ERROR] GET /hello/ [5aded8f3-8d14-4bb2-bfd5-7c4ffafb3731] null
1445
- # 2023-08-10T14:42:20.892Z 965 [HELLO_GET] [ERROR] GET /hello/ [5aded8f3-8d14-4bb2-bfd5-7c4ffafb3731] status[503] content-length[12] [0]ms
1446
- # {
1447
- # status:
1448
- # headers:
1449
- # 'content-type': 'text/html; charset=utf-8',
1450
- # connection: 'close',
1451
- # 'content-length': '12'
1452
- # },
1453
- # data:
1454
- # }
1455
- # Subtest: catch unkown null with 503 on ASDLJ and hide stack and error message
1456
- ok 21 - catch unkown null with 503 on ASDLJ and hide stack and error message
1457
- ---
1458
- duration_ms: 2.975465
1459
- ...
1460
- 1..21
1461
- ok 9 - app error func tests
1462
- ---
1463
- duration_ms: 70.016641
1464
- ...
1465
- # 200
1466
- # {
1467
- # 'content
1468
- # connection:
1469
- # 'content
1470
- # }
1471
- # { bla: '1' }
1472
- # Subtest: form response func tests
1473
- # Subtest: ctx.json and form middleware happy path
1474
- ok 1 - ctx.json and form middleware happy path
1475
- ---
1476
- duration_ms: 12.752077
1477
- ...
1478
- # 2023-08-10T14:42:21.958Z 972 [POST] [ERROR] POST / [b843d2d8-502d-479f-99f0-68a205363f1f] ctx.buffer.length 5 > 3. To accept this body set READ_BUFFER_LIMIT to a higher value.
1479
- # 2023-08-10T14:42:21.960Z 972 [POST] [ERROR] POST / [b843d2d8-502d-479f-99f0-68a205363f1f] BadRequestError: buffer.length 5 > 3
1480
- # at IncomingMessage.chunkListener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/buffer.ts:67:20)
1481
- # at IncomingMessage.emit (node:events:513:28)
1482
- # at Readable.read (node:internal/streams/readable:539:10)
1483
- # at flow (node:internal/streams/readable:1023:34)
1484
- # at resume_ (node:internal/streams/readable:1004:3)
1485
- # at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
1486
- # 400
1487
- # {
1488
- # 'content
1489
- # connection:
1490
- # 'content
1491
- # }
1492
- # buffer.length 5 > 3
1493
- # Subtest: ctx.json and form middleware happy path max buffer
1494
- ok 2 - ctx.json and form middleware happy path max buffer
1495
- ---
1496
- duration_ms: 5.737564
1497
- ...
1498
- # 2023-08-10T14:42:21.962Z 972 [POST] [ERROR] POST / [bce86a2f-9251-47ae-94d6-1835462885da] ctx.buffer.length 5 > 3. To accept this body set BODY_PARSER_URL_ENCODED_LIMIT to a higher value.
1499
- # 2023-08-10T14:42:21.965Z 972 [POST] [ERROR] POST / [bce86a2f-9251-47ae-94d6-1835462885da] BadRequestError: buffer.length 5 > 3
1500
- # at URLEncodedParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/form.ts:48:15)
1501
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1502
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1503
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1504
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1505
- # 400
1506
- # {
1507
- # 'content
1508
- # connection:
1509
- # 'content
1510
- # }
1511
- # buffer.length 5 > 3
1512
- # Subtest: ctx.json and form middleware happy path max limit
1513
- ok 3 - ctx.json and form middleware happy path max limit
1514
- ---
1515
- duration_ms: 4.760812
1516
- ...
1517
- # 200
1518
- # {
1519
- # 'content
1520
- # connection:
1521
- # 'content
1522
- # }
1523
- # { bla: '1' }
1524
- # Subtest: ctx.json and form middleware happy path max keys
1525
- ok 4 - ctx.json and form middleware happy path max keys
1526
- ---
1527
- duration_ms: 2.418821
1528
- ...
1529
- 1..4
1530
- ok 10 - form response func tests
1531
- ---
1532
- duration_ms: 26.863227
1533
- ...
1534
- # Subtest: app html func tests
1535
- # Subtest: ctx.html happy path
1536
- ok 1 - ctx.html happy path
1537
- ---
1538
- duration_ms: 10.695701
1539
- ...
1540
- 1..1
1541
- ok 11 - app html func tests
1542
- ---
1543
- duration_ms: 11.674038
1544
- ...
1545
- # 2023-08-10T14:42:24.107Z 986 [POST] [ERROR] POST / [cd2a4987-981e-4985-81d2-cc10a5dab966] SyntaxError: Unexpected token a in JSON at position 2
1546
- # at JSON.parse (<anonymous>)
1547
- # at JSONParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/json.ts:35:31)
1548
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1549
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1550
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1551
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1552
- # 2023-08-10T14:42:24.109Z 986 [POST] [ERROR] POST / [cd2a4987-981e-4985-81d2-cc10a5dab966] BadRequestError: BAD REQUEST
1553
- # at JSONParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/json.ts:51:15)
1554
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1555
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1556
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1557
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1558
- # 400
1559
- # {
1560
- # 'content
1561
- # connection:
1562
- # 'content
1563
- # }
1564
- # BAD REQUEST
1565
- # Subtest: app.json functional tests
1566
- # Subtest: ctx.json and json middleware happy path bad json
1567
- ok 1 - ctx.json and json middleware happy path bad json
1568
- ---
1569
- duration_ms: 19.385231
1570
- ...
1571
- # 2023-08-10T14:42:24.118Z 986 [POST] [ERROR] POST / [fd298f78-89b4-47af-b94a-1e4c35faf64a] SyntaxError: Unexpected token a in JSON at position 0
1572
- # at JSON.parse (<anonymous>)
1573
- # at JSONParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/json.ts:35:31)
1574
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1575
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1576
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1577
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1578
- # 2023-08-10T14:42:24.118Z 986 [POST] [ERROR] POST / [fd298f78-89b4-47af-b94a-1e4c35faf64a] BadRequestError: BAD REQUEST
1579
- # at JSONParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/json.ts:51:15)
1580
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1581
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1582
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1583
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1584
- # 400
1585
- # {
1586
- # 'content
1587
- # connection:
1588
- # 'content
1589
- # }
1590
- # BAD REQUEST
1591
- # Subtest: ctx.json and json middleware happy path bad json string
1592
- ok 2 - ctx.json and json middleware happy path bad json string
1593
- ---
1594
- duration_ms: 6.728067
1595
- ...
1596
- # Subtest: ctx.json happy path
1597
- ok 3 - ctx.json happy path
1598
- ---
1599
- duration_ms: 2.618813
1600
- ...
1601
- # Subtest: ctx.json and json middleware happy path
1602
- ok 4 - ctx.json and json middleware happy path
1603
- ---
1604
- duration_ms: 1.747931
1605
- ...
1606
- # 2023-08-10T14:42:24.126Z 986 [POST] [ERROR] POST / [d3366c50-c724-4693-a890-763fef53504a] ctx.buffer.length 9 > 3. To accept this body set BODY_PARSER_LIMIT to a higher value.
1607
- # 2023-08-10T14:42:24.127Z 986 [POST] [ERROR] POST / [d3366c50-c724-4693-a890-763fef53504a] BadRequestError: buffer.length 9 > 3
1608
- # at JSONParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/json.ts:44:15)
1609
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1610
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1611
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1612
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
1613
- # 400
1614
- # {
1615
- # 'content
1616
- # connection:
1617
- # 'content
1618
- # }
1619
- # buffer.length 9 > 3
1620
- # Subtest: ctx.json and json middleware happy path limit
1621
- ok 5 - ctx.json and json middleware happy path limit
1622
- ---
1623
- duration_ms: 4.291371
1624
- ...
1625
- 1..5
1626
- ok 12 - app.json functional tests
1627
- ---
1628
- duration_ms: 36.010531
1629
- ...
1630
- # 200
1631
- # true
1632
- # Subtest: app.parse functional tests
1633
- # Subtest: multiple options parse body custom parser
1634
- ok 1 - multiple options parse body custom parser
1635
- ---
1636
- duration_ms: 13.853034
1637
- ...
1638
- # 200
1639
- # true
1640
- # Subtest: multiple options parse body
1641
- ok 2 - multiple options parse body
1642
- ---
1643
- duration_ms: 3.761517
1644
- ...
1645
- # 200
1646
- # true
1647
- # Subtest: multiple options parse body second option
1648
- ok 3 - multiple options parse body second option
1649
- ---
1650
- duration_ms: 2.531317
1651
- ...
1652
- # 2023-08-10T14:42:25.147Z 993 [USER_POST] [ERROR] POST /user/?q=q [50290e69-6b60-4fef-b2ff-13bcf810040e] error parsing body { another: 'name', body: 'asd' }
1653
- # 2023-08-10T14:42:25.153Z 993 [USER_POST] [ERROR] POST /user/?q=q [50290e69-6b60-4fef-b2ff-13bcf810040e] ParseOptionsError: body.body not number
1654
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:319:19)
1655
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
1656
- # at parseRequestPart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:35:49)
1657
- # at ParseRequest (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:83:11)
1658
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1659
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1660
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1661
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13) {
1662
- # argAttr: 'body.body'
1663
- # }
1664
- # 400
1665
- # body.body not number
1666
- # Subtest: multiple options parse body no option
1667
- ok 4 - multiple options parse body no option
1668
- ---
1669
- duration_ms: 9.449917
1670
- ...
1671
- # 2023-08-10T14:42:25.156Z 993 [USER_POST] [ERROR] POST /user/ [ce8d54ec-8e7d-41de-9552-3001a8cda24f] error parsing query [Object: null prototype] {}
1672
- # 2023-08-10T14:42:25.159Z 993 [USER_POST] [ERROR] POST /user/ [ce8d54ec-8e7d-41de-9552-3001a8cda24f] ParseOptionsError: query.q not defined
1673
- # at parseValue (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:394:11)
1674
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:313:25)
1675
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
1676
- # at parseRequestPart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:35:49)
1677
- # at ParseRequest (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:65:11)
1678
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1679
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1680
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1681
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13) {
1682
- # argAttr: 'query.q'
1683
- # }
1684
- # 400
1685
- # query.q not defined
1686
- # Subtest: multiple options parse q no option
1687
- ok 5 - multiple options parse q no option
1688
- ---
1689
- duration_ms: 6.721775
1690
- ...
1691
- # 200
1692
- # true
1693
- # Subtest: multiple options parse q array merge mix
1694
- ok 6 - multiple options parse q array merge mix
1695
- ---
1696
- duration_ms: 3.054837
1697
- ...
1698
- # 200
1699
- # true
1700
- # Subtest: multiple options parse q array no merge
1701
- ok 7 - multiple options parse q array no merge
1702
- ---
1703
- duration_ms: 2.398989
1704
- ...
1705
- # 2023-08-10T14:42:25.168Z 993 [USER_TEXT_GET] [ERROR] GET /user/text/?q=1 [2b866035-3fe9-423d-b0c0-5b461f4d67fc] error parsing params { id: 'text' }
1706
- # 2023-08-10T14:42:25.170Z 993 [USER_TEXT_GET] [ERROR] GET /user/text/?q=1 [2b866035-3fe9-423d-b0c0-5b461f4d67fc] ParseOptionsError: params.id not number
1707
- # at Parser.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:319:19)
1708
- # at Object.parse (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/node_modules/@miqro/parser/src/parser.ts:374:76)
1709
- # at parseRequestPart (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:35:49)
1710
- # at ParseRequest (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/parse.ts:74:11)
1711
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
1712
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
1713
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1714
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13) {
1715
- # argAttr: 'params.id'
1716
- # }
1717
- # 400
1718
- # params.id not number
1719
- # Subtest: parse params no option
1720
- ok 8 - parse params no option
1721
- ---
1722
- duration_ms: 4.468197
1723
- ...
1724
- # 200
1725
- # true
1726
- # Subtest: parse headers and params
1727
- ok 9 - parse headers and params
1728
- ---
1729
- duration_ms: 2.9543
1730
- ...
1731
- # 200
1732
- # true
1733
- # Subtest: parse params
1734
- ok 10 - parse params
1735
- ---
1736
- duration_ms: 2.376072
1737
- ...
1738
- 1..10
1739
- ok 13 - app.parse functional tests
1740
- ---
1741
- duration_ms: 53.011524
1742
- ...
1743
- # 404
1744
- # {
1745
- # 'content
1746
- # connection:
1747
- # 'content
1748
- # }
1749
- # NOT FOUND
1750
- # 200
1751
- # {
1752
- # 'content
1753
- # connection:
1754
- # 'content
1755
- # }
1756
- # <html>
1757
- # <body>
1758
- # index
1759
- # </body>
1760
- # </html>
1761
- # 200
1762
- # {
1763
- # 'content
1764
- # connection:
1765
- # 'content
1766
- # }
1767
- # style.css content
1768
- # Subtest: app.static functional tests
1769
- # Subtest: happy path
1770
- ok 1 - happy path
1771
- ---
1772
- duration_ms: 37.998535
1773
- ...
1774
- # {
1775
- # url:
1776
- # status:
1777
- # locations:
1778
- # redirectedUrl:
1779
- # headers:
1780
- # 'content-type': 'application/json; charset=utf-8',
1781
- # connection: 'close',
1782
- # 'content-length': '96'
1783
- # },
1784
- # data:
1785
- # files: [
1786
- # '/public/subfolder/path',
1787
- # '/public/subfolder/some.html',
1788
- # '/public/subfolder/style.css'
1789
- # ]
1790
- # },
1791
- # buffer:
1792
- # 123, 34, 102, 105, 108, 101, 115, 34, 58, 91, 34, 47,
1793
- # 112, 117, 98, 108, 105, 99, 47, 115, 117, 98, 102, 111,
1794
- # 108, 100, 101, 114, 47, 112, 97, 116, 104, 34, 44, 34,
1795
- # 47
1796
- # 111, 108, 100, 101, 114, 47, 115, 111, 109, 101, 46, 104,
1797
- # 116, 109, 108, 34, 44, 34, 47, 112, 117, 98, 108, 105,
1798
- # 99
1799
- # 115, 116, 121, 108, 101, 46, 99, 115, 115, 34, 93, 125
1800
- # ],
1801
- # buffers:
1802
- # Buffer(96) [Uint8Array] [
1803
- # 123
1804
- # 112
1805
- # 108
1806
- # 47, 112, 117, 98, 108, 105, 99, 47, 115, 117, 98, 102,
1807
- # 111
1808
- # 116
1809
- # 99, 47, 115, 117, 98, 102, 111, 108, 100, 101, 114, 47,
1810
- # 115
1811
- # ]
1812
- # ]
1813
- # }
1814
- # {
1815
- # url:
1816
- # status:
1817
- # locations:
1818
- # redirectedUrl:
1819
- # headers:
1820
- # 'content-type': 'application/json; charset=utf-8',
1821
- # connection: 'close',
1822
- # 'content-length': '47'
1823
- # },
1824
- # data:
1825
- # buffer:
1826
- # 123, 34, 102, 105, 108, 101, 115, 34, 58,
1827
- # 91
1828
- # 47
1829
- # 114, 47, 112, 97, 116, 104, 47, 105, 110,
1830
- # 100, 101, 120, 46, 104, 116, 109, 108, 34,
1831
- # 93
1832
- # ],
1833
- # buffers:
1834
- # Buffer(47) [Uint8Array] [
1835
- # 123
1836
- # 91, 34, 47, 112, 117, 98, 108, 105, 99,
1837
- # 47, 115, 117, 98, 102, 111, 108, 100, 101,
1838
- # 114
1839
- # 100
1840
- # 93, 125
1841
- # ]
1842
- # ]
1843
- # }
1844
- # {
1845
- # url:
1846
- # status:
1847
- # locations:
1848
- # redirectedUrl:
1849
- # headers:
1850
- # 'content-type': 'application/json; charset=utf-8',
1851
- # connection: 'close',
1852
- # 'content-length': '164'
1853
- # },
1854
- # data:
1855
- # buffer:
1856
- # 123, 34, 98, 117, 102, 102, 101, 114, 34, 58, 123, 34,
1857
- # 116, 121, 112, 101, 34, 58, 34, 66, 117, 102, 102, 101,
1858
- # 114, 34, 44, 34, 100, 97, 116, 97, 34, 58, 91, 54,
1859
- # 48
1860
- # 57
1861
- # 54
1862
- # 48
1863
- # 49
1864
- # 49
1865
- # ... 64 more items
1866
- # ],
1867
- # buffers:
1868
- # Buffer(164) [Uint8Array] [
1869
- # 123
1870
- # 116
1871
- # 114
1872
- # 48, 44, 49, 48, 52, 44, 49, 49, 54, 44, 49, 48,
1873
- # 57, 44, 49, 48, 56, 44, 54, 50, 44, 49, 48, 44,
1874
- # 54, 48, 44, 57, 56, 44, 49, 49, 49, 44, 49, 48,
1875
- # 48, 44, 49, 50, 49, 44, 54, 50, 44, 49, 48, 44,
1876
- # 49, 48, 53, 44, 49, 49, 48, 44, 49, 48, 48, 44,
1877
- # 49, 48, 49, 44,
1878
- # ... 64 more items
1879
- # ]
1880
- # ]
1881
- # }
1882
- # {
1883
- # url:
1884
- # status:
1885
- # locations:
1886
- # redirectedUrl:
1887
- # headers:
1888
- # 'content-type': 'application/json; charset=utf-8',
1889
- # connection: 'close',
1890
- # 'content-length': '164'
1891
- # },
1892
- # data:
1893
- # buffer:
1894
- # 123, 34, 98, 117, 102, 102, 101, 114, 34, 58, 123, 34,
1895
- # 116, 121, 112, 101, 34, 58, 34, 66, 117, 102, 102, 101,
1896
- # 114, 34, 44, 34, 100, 97, 116, 97, 34, 58, 91, 54,
1897
- # 48
1898
- # 57
1899
- # 54
1900
- # 48
1901
- # 49
1902
- # 49
1903
- # ... 64 more items
1904
- # ],
1905
- # buffers:
1906
- # Buffer(164) [Uint8Array] [
1907
- # 123
1908
- # 116
1909
- # 114
1910
- # 48, 44, 49, 48, 52, 44, 49, 49, 54, 44, 49, 48,
1911
- # 57, 44, 49, 48, 56, 44, 54, 50, 44, 49, 48, 44,
1912
- # 54, 48, 44, 57, 56, 44, 49, 49, 49, 44, 49, 48,
1913
- # 48, 44, 49, 50, 49, 44, 54, 50, 44, 49, 48, 44,
1914
- # 49, 48, 52, 44, 49, 48, 49, 44, 49, 48, 56, 44,
1915
- # 49, 48, 56, 44,
1916
- # ... 64 more items
1917
- # ]
1918
- # ]
1919
- # }
1920
- # {
1921
- # url:
1922
- # status:
1923
- # locations:
1924
- # redirectedUrl:
1925
- # headers:
1926
- # 'content-type': 'application/json; charset=utf-8',
1927
- # connection: 'close',
1928
- # 'content-length': '104'
1929
- # },
1930
- # data:
1931
- # buffer:
1932
- # 123, 34, 98, 117, 102, 102, 101, 114, 34, 58, 123, 34,
1933
- # 116, 121, 112, 101, 34, 58, 34, 66, 117, 102, 102, 101,
1934
- # 114, 34, 44, 34, 100, 97, 116, 97, 34, 58, 91, 49,
1935
- # 49
1936
- # 48
1937
- # 44
1938
- # 57
1939
- # 49
1940
- # 49
1941
- # ... 4 more items
1942
- # ],
1943
- # buffers:
1944
- # Buffer(104) [Uint8Array] [
1945
- # 123
1946
- # 116
1947
- # 114
1948
- # 49, 53, 44, 49, 49, 54, 44, 49, 50, 49, 44, 49,
1949
- # 48, 56, 44, 49, 48, 49, 44, 52, 54, 44, 57, 57,
1950
- # 44, 49, 49, 53, 44, 49, 49, 53, 44, 51, 50, 44,
1951
- # 57, 57, 44, 49, 49, 49, 44, 49, 49, 48, 44, 49,
1952
- # 49, 54, 44, 49, 48, 49, 44, 49, 49, 48, 44, 49,
1953
- # 49, 54, 44, 49,
1954
- # ... 4 more items
1955
- # ]
1956
- # ]
1957
- # }
1958
- # [
1959
- # {
1960
- # path: '/public/subfolder/path/index.html',
1961
- # buffer: '<html>\\n<body>\\nindex\\n</body>\\n</html>\\n',
1962
- # plain: {
1963
- # url:
1964
- # status:
1965
- # locations:
1966
- # redirectedUrl:
1967
- # headers:
1968
- # data:
1969
- # buffer:
1970
- # buffers:
1971
- # }
1972
- # },
1973
- # {
1974
- # path: '/public/subfolder/some.html',
1975
- # buffer: '<html>\\n<body>\\nhello\\n</body>\\n</html>\\n',
1976
- # plain: {
1977
- # url:
1978
- # status:
1979
- # locations:
1980
- # redirectedUrl:
1981
- # headers:
1982
- # data:
1983
- # buffer:
1984
- # buffers:
1985
- # }
1986
- # },
1987
- # {
1988
- # path: '/public/subfolder/style.css',
1989
- # buffer: 'style.css content\\n',
1990
- # plain: {
1991
- # url:
1992
- # status:
1993
- # locations:
1994
- # redirectedUrl:
1995
- # headers:
1996
- # data:
1997
- # buffer:
1998
- # buffers:
1999
- # }
2000
- # }
2001
- # ]
2002
- # [
2003
- # {
2004
- # path: '/public/subfolder/path/index.html',
2005
- # buffer: '<html>\\n<body>\\nindex\\n</body>\\n</html>\\n',
2006
- # plain: {
2007
- # url:
2008
- # status:
2009
- # locations:
2010
- # redirectedUrl:
2011
- # headers:
2012
- # data:
2013
- # buffer:
2014
- # buffers:
2015
- # }
2016
- # },
2017
- # {
2018
- # path: '/public/subfolder/some.html',
2019
- # buffer: '<html>\\n<body>\\nhello\\n</body>\\n</html>\\n',
2020
- # plain: {
2021
- # url:
2022
- # status:
2023
- # locations:
2024
- # redirectedUrl:
2025
- # headers:
2026
- # data:
2027
- # buffer:
2028
- # buffers:
2029
- # }
2030
- # },
2031
- # {
2032
- # path: '/public/subfolder/style.css',
2033
- # buffer: 'style.css content\\n',
2034
- # plain: {
2035
- # url:
2036
- # status:
2037
- # locations:
2038
- # redirectedUrl:
2039
- # headers:
2040
- # data:
2041
- # buffer:
2042
- # buffers:
2043
- # }
2044
- # }
2045
- # ]
2046
- # Subtest: recursive look up with list and format json
2047
- ok 2 - recursive look up with list and format json
2048
- ---
2049
- duration_ms: 71.463667
2050
- ...
2051
- # {
2052
- # url:
2053
- # status:
2054
- # locations:
2055
- # redirectedUrl:
2056
- # headers:
2057
- # 'content-type': 'text/html; charset=utf-8',
2058
- # connection: 'close',
2059
- # 'content-length': '9'
2060
- # },
2061
- # data:
2062
- # buffer:
2063
- # 78, 79, 84, 32, 70,
2064
- # 79, 85, 78, 68
2065
- # ],
2066
- # buffers:
2067
- # Buffer(9) [Uint8Array] [
2068
- # 78
2069
- # 79
2070
- # ]
2071
- # ]
2072
- # }
2073
- # Subtest: traverse look up
2074
- ok 3 - traverse look up
2075
- ---
2076
- duration_ms: 3.89547
2077
- ...
2078
- # {
2079
- # url:
2080
- # status:
2081
- # locations:
2082
- # redirectedUrl:
2083
- # headers:
2084
- # 'content-type': 'text/html; charset=utf-8',
2085
- # connection: 'close',
2086
- # 'content-length': '9'
2087
- # },
2088
- # data:
2089
- # buffer:
2090
- # 78, 79, 84, 32, 70,
2091
- # 79, 85, 78, 68
2092
- # ],
2093
- # buffers:
2094
- # Buffer(9) [Uint8Array] [
2095
- # 78
2096
- # 79
2097
- # ]
2098
- # ]
2099
- # }
2100
- # {
2101
- # url:
2102
- # status:
2103
- # locations:
2104
- # redirectedUrl:
2105
- # headers:
2106
- # 'content-type': 'text/html; charset=utf-8',
2107
- # connection: 'close',
2108
- # 'content-length': '109'
2109
- # },
2110
- # data:
2111
- # buffer:
2112
- # 60
2113
- # 60
2114
- # 114, 101, 102, 61, 34, 47, 115, 117, 98, 115, 117, 98,
2115
- # 47
2116
- # 111, 108, 100, 101, 114, 47, 112, 97, 116, 104, 47, 105,
2117
- # 110, 100, 101, 120, 46, 104, 116, 109, 108, 34, 62, 105,
2118
- # 110, 100, 101, 120, 46, 104, 116, 109, 108, 60, 47, 97,
2119
- # 62
2120
- # 47
2121
- # ... 9 more items
2122
- # ],
2123
- # buffers:
2124
- # Buffer(109) [Uint8Array] [
2125
- # 60, 104, 116, 109, 108, 62, 60, 98, 111, 100, 121, 62,
2126
- # 60, 117, 108, 62, 60, 108, 105, 62, 60, 97, 32, 104,
2127
- # 114
2128
- # 47, 112, 117, 98, 108, 105, 99, 47, 115, 117, 98, 102,
2129
- # 111
2130
- # 110
2131
- # 110
2132
- # 62, 60, 47, 108, 105, 62, 60, 47, 117, 108, 62, 60,
2133
- # 47, 98, 111, 100,
2134
- # ... 9 more items
2135
- # ]
2136
- # ]
2137
- # }
2138
- # {
2139
- # url:
2140
- # status:
2141
- # locations:
2142
- # redirectedUrl:
2143
- # headers:
2144
- # 'content-type': 'application/json; charset=utf-8',
2145
- # connection: 'close',
2146
- # 'content-length': '15'
2147
- # },
2148
- # data:
2149
- # buffer:
2150
- # 123, 34, 115, 116, 97,
2151
- # 116, 117, 115, 34, 58,
2152
- # 34
2153
- # ],
2154
- # buffers:
2155
- # Buffer(15) [Uint8Array] [
2156
- # 123
2157
- # 116
2158
- # 34, 79, 75, 34, 125
2159
- # ]
2160
- # ]
2161
- # }
2162
- # {
2163
- # url:
2164
- # status:
2165
- # locations:
2166
- # redirectedUrl:
2167
- # headers:
2168
- # 'content-type': 'application/json; charset=utf-8',
2169
- # connection: 'close',
2170
- # 'content-length': '16'
2171
- # },
2172
- # data:
2173
- # buffer:
2174
- # 123, 34, 115, 116, 97, 116,
2175
- # 117, 115, 34, 58, 34, 79,
2176
- # 75
2177
- # ],
2178
- # buffers:
2179
- # Buffer(16) [Uint8Array] [
2180
- # 123
2181
- # 117
2182
- # 75, 50, 34, 125
2183
- # ]
2184
- # ]
2185
- # }
2186
- # {
2187
- # url:
2188
- # status:
2189
- # locations:
2190
- # redirectedUrl:
2191
- # headers:
2192
- # 'content-type': 'application/json; charset=utf-8',
2193
- # connection: 'close',
2194
- # 'content-length': '16'
2195
- # },
2196
- # data:
2197
- # buffer:
2198
- # 123, 34, 115, 116, 97, 116,
2199
- # 117, 115, 34, 58, 34, 79,
2200
- # 75
2201
- # ],
2202
- # buffers:
2203
- # Buffer(16) [Uint8Array] [
2204
- # 123
2205
- # 117
2206
- # 75, 51, 34, 125
2207
- # ]
2208
- # ]
2209
- # }
2210
- # Subtest: static embemed api
2211
- ok 4 - static embemed api
2212
- ---
2213
- duration_ms: 16.058613
2214
- ...
2215
- # 200
2216
- # {
2217
- # 'content
2218
- # connection:
2219
- # 'content
2220
- # }
2221
- # <html>
2222
- # <body>
2223
- # index
2224
- # </body>
2225
- # </html>
2226
- # 404
2227
- # {
2228
- # 'content
2229
- # connection:
2230
- # 'content
2231
- # }
2232
- # <html>
2233
- # <body>
2234
- # index
2235
- # </body>
2236
- # </html>
2237
- # 404
2238
- # {
2239
- # 'content
2240
- # connection:
2241
- # 'content
2242
- # }
2243
- # <html>
2244
- # <body>
2245
- # index
2246
- # </body>
2247
- # </html>
2248
- # Subtest: index404
2249
- ok 5 - index404
2250
- ---
2251
- duration_ms: 41.714471
2252
- ...
2253
- 1..5
2254
- ok 14 - app.static functional tests
2255
- ---
2256
- duration_ms: 172.587825
2257
- ...
2258
- # Subtest: app.text functional tests
2259
- # Subtest: ctx.text happy path
2260
- ok 1 - ctx.text happy path
2261
- ---
2262
- duration_ms: 10.692534
2263
- ...
2264
- # Subtest: ctx.text and text middleware happy path
2265
- ok 2 - ctx.text and text middleware happy path
2266
- ---
2267
- duration_ms: 3.649189
2268
- ...
2269
- # 2023-08-10T14:42:27.563Z 1007 [POST] [ERROR] POST / [f21c98c1-31a4-4bbd-bd18-0f2a77f7f738] ctx.buffer.length 13 > 3. To accept this body set BODY_TEXT_PARSER_LIMIT to a higher value.
2270
- # 2023-08-10T14:42:27.567Z 1007 [POST] [ERROR] POST / [f21c98c1-31a4-4bbd-bd18-0f2a77f7f738] BadRequestError: buffer.length 13 > 3
2271
- # at TextParser (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/text.ts:34:15)
2272
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2273
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2274
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2275
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
2276
- # 400
2277
- # {
2278
- # 'content
2279
- # connection:
2280
- # 'content
2281
- # }
2282
- # buffer.length 13 > 3
2283
- # Subtest: ctx.text and text middleware happy path limit
2284
- ok 3 - ctx.text and text middleware happy path limit
2285
- ---
2286
- duration_ms: 6.765398
2287
- ...
2288
- # 400
2289
- # { connection: 'close', 'content-length': '0' }
2290
- # <Buffer >
2291
- # Subtest: ctx.text and text middleware happy path buffer bad content length too much
2292
- ok 4 - ctx.text and text middleware happy path buffer bad content length too much
2293
- ---
2294
- duration_ms: 1013.546361
2295
- ...
2296
- 1..4
2297
- ok 15 - app.text functional tests
2298
- ---
2299
- duration_ms: 1036.432246
2300
- ...
2301
- # Subtest: featuretoggle functional tests 2
2302
- # Subtest: featuretoggle happy path true
2303
- ok 1 - featuretoggle happy path true
2304
- ---
2305
- duration_ms: 0.281697
2306
- ...
2307
- # Subtest: featuretoggle happy path FeatureToggle abstract class
2308
- ok 2 - featuretoggle happy path FeatureToggle abstract class
2309
- ---
2310
- duration_ms: 0.06004
2311
- ...
2312
- # Subtest: featuretoggle happy path undefined enabled by default
2313
- ok 3 - featuretoggle happy path undefined enabled by default
2314
- ---
2315
- duration_ms: 0.050914
2316
- ...
2317
- # Subtest: featuretoggle happy path false
2318
- ok 4 - featuretoggle happy path false
2319
- ---
2320
- duration_ms: 0.177826
2321
- ...
2322
- # Subtest: featuretoggle happy path any
2323
- ok 5 - featuretoggle happy path any
2324
- ---
2325
- duration_ms: 0.052623
2326
- ...
2327
- # Subtest: featuretoggle happy path null
2328
- ok 6 - featuretoggle happy path null
2329
- ---
2330
- duration_ms: 0.045498
2331
- ...
2332
- 1..6
2333
- ok 16 - featuretoggle functional tests 2
2334
- ---
2335
- duration_ms: 1.81072
2336
- ...
2337
- # Subtest: get functional tests
2338
- # Subtest: get happy path
2339
- ok 1 - get happy path
2340
- ---
2341
- duration_ms: 0.436941
2342
- ...
2343
- # Subtest: get happy path custom parser
2344
- ok 2 - get happy path custom parser
2345
- ---
2346
- duration_ms: 1.182037
2347
- ...
2348
- # Subtest: get happy path parser
2349
- ok 3 - get happy path parser
2350
- ---
2351
- duration_ms: 0.352903
2352
- ...
2353
- # Subtest: get happy path default value
2354
- ok 4 - get happy path default value
2355
- ---
2356
- duration_ms: 0.052623
2357
- ...
2358
- # Subtest: get happy path with {}
2359
- ok 5 - get happy path with {}
2360
- ---
2361
- duration_ms: 0.047623
2362
- ...
2363
- # Subtest: get happy path with null
2364
- ok 6 - get happy path with null
2365
- ---
2366
- duration_ms: 0.042165
2367
- ...
2368
- # Subtest: get happy path default value 2
2369
- ok 7 - get happy path default value 2
2370
- ---
2371
- duration_ms: 0.046081
2372
- ...
2373
- # Subtest: get happy path default value with null
2374
- ok 8 - get happy path default value with null
2375
- ---
2376
- duration_ms: 0.055748
2377
- ...
2378
- # Subtest: get happy path default value with undefined
2379
- ok 9 - get happy path default value with undefined
2380
- ---
2381
- duration_ms: 0.163286
2382
- ...
2383
- # Subtest: get happy path no default value with undefined
2384
- ok 10 - get happy path no default value with undefined
2385
- ---
2386
- duration_ms: 0.059289
2387
- ...
2388
- # Subtest: get happy path no default value
2389
- ok 11 - get happy path no default value
2390
- ---
2391
- duration_ms: 0.04629
2392
- ...
2393
- 1..11
2394
- ok 17 - get functional tests
2395
- ---
2396
- duration_ms: 3.746685
2397
- ...
2398
- # 2023-08-10T14:42:31.173Z 1028 [test] [ERROR] [1,2,3] groups fail to validate!
2399
- # 2023-08-10T14:42:31.175Z 1028 [test] [ERROR] [6,0,3] groups fail to validate!
2400
- # 2023-08-10T14:42:31.176Z 1028 [test] [ERROR] [6,5,3] groups fail to validate!
2401
- # 2023-08-10T14:42:31.176Z 1028 [test] [ERROR] [6,5,3] groups fail to validate!
2402
- # 2023-08-10T14:42:31.176Z 1028 [test] [ERROR] [6,5,3] groups fail to validate!
2403
- # Subtest: group functional tests
2404
- # Subtest: group policy happy path mix tape 1 invalid auth
2405
- ok 1 - group policy happy path mix tape 1 invalid auth
2406
- ---
2407
- duration_ms: 2.740933
2408
- ...
2409
- # Subtest: group policy happy path mix tape 1 valid auth
2410
- ok 2 - group policy happy path mix tape 1 valid auth
2411
- ---
2412
- duration_ms: 0.318612
2413
- ...
2414
- # Subtest: group policy happy path mix tape 1 valid auth all
2415
- ok 3 - group policy happy path mix tape 1 valid auth all
2416
- ---
2417
- duration_ms: 0.245198
2418
- ...
2419
- # Subtest: group policy happy path mix tape 1 valid auth not nested array
2420
- ok 4 - group policy happy path mix tape 1 valid auth not nested array
2421
- ---
2422
- duration_ms: 0.104538
2423
- ...
2424
- # Subtest: group policy happy path mix tape 1 valid auth not nested array all
2425
- ok 5 - group policy happy path mix tape 1 valid auth not nested array all
2426
- ---
2427
- duration_ms: 0.099746
2428
- ...
2429
- # Subtest: group policy happy path mix tape 2 valid auth
2430
- ok 6 - group policy happy path mix tape 2 valid auth
2431
- ---
2432
- duration_ms: 0.126828
2433
- ...
2434
- # Subtest: group policy happy path mix tape 2 invalid auth
2435
- ok 7 - group policy happy path mix tape 2 invalid auth
2436
- ---
2437
- duration_ms: 0.2112
2438
- ...
2439
- # Subtest: group policy happy path mix tape 2 invalid auth all
2440
- ok 8 - group policy happy path mix tape 2 invalid auth all
2441
- ---
2442
- duration_ms: 0.358486
2443
- ...
2444
- # Subtest: group policy happy path mix tape 2 invalid auth all not nested
2445
- ok 9 - group policy happy path mix tape 2 invalid auth all not nested
2446
- ---
2447
- duration_ms: 0.31482
2448
- ...
2449
- # Subtest: group policy happy path mix tape 2 invalid auth all not nested with app
2450
- ok 10 - group policy happy path mix tape 2 invalid auth all not nested with app
2451
- ---
2452
- duration_ms: 0.345736
2453
- ...
2454
- # Subtest: group policy happy path mix tape 2 invalid policu
2455
- ok 11 - group policy happy path mix tape 2 invalid policu
2456
- ---
2457
- duration_ms: 0.372901
2458
- ...
2459
- # 2023-08-10T14:42:31.190Z 1028 [BLA_POST] [ERROR] POST /bla/ [d2ac4ce9-5089-4bd7-a094-3b13ce2ba090] [1,2,3] groups fail to validate!
2460
- # 2023-08-10T14:42:31.194Z 1028 [BLA_POST] [ERROR] POST /bla/ [d2ac4ce9-5089-4bd7-a094-3b13ce2ba090] ForbiddenError: Invalid session. You are not permitted to do this!
2461
- # at GroupPolicyHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/group.ts:58:17)
2462
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2463
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2464
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
2465
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
2466
- # 403
2467
- # Subtest: group policy happy path handler mix tape 1 invalid
2468
- ok 12 - group policy happy path handler mix tape 1 invalid
2469
- ---
2470
- duration_ms: 20.39315
2471
- ...
2472
- # Subtest: group policy happy path handler mix tape 1 valid auth
2473
- ok 13 - group policy happy path handler mix tape 1 valid auth
2474
- ---
2475
- duration_ms: 2.951341
2476
- ...
2477
- # 2023-08-10T14:42:31.203Z 1028 [BLA_POST] [ERROR] POST /bla/ [b99062e7-193b-4816-91a6-6b77498887f2] UnAuthorizedError: No Session!
2478
- # at GroupPolicyHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/group.ts:51:15)
2479
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2480
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2481
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)
2482
- # at Server.emit (node:events:513:28)
2483
- # at parserOnIncoming (node:_http_server:1091:12)
2484
- # at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
2485
- # 401
2486
- # Subtest: group policy happy path handler mix tape 1 no session
2487
- ok 14 - group policy happy path handler mix tape 1 no session
2488
- ---
2489
- duration_ms: 3.913803
2490
- ...
2491
- 1..14
2492
- ok 18 - group functional tests
2493
- ---
2494
- duration_ms: 34.179853
2495
- ...
2496
- # Subtest: loading functional tests
2497
- # Subtest: loadConfig without .env file should work
2498
- ok 1 - loadConfig without .env file should work
2499
- ---
2500
- duration_ms: 0.704264
2501
- ...
2502
- # Subtest: loadConfig with multiple env files should work
2503
- ok 2 - loadConfig with multiple env files should work
2504
- ---
2505
- duration_ms: 17.094031
2506
- ...
2507
- # Subtest: loadConfig with multiple env files should override check
2508
- ok 3 - loadConfig with multiple env files should override check
2509
- ---
2510
- duration_ms: 14.665336
2511
- ...
2512
- 1..3
2513
- ok 19 - loading functional tests
2514
- ---
2515
- duration_ms: 33.589793
2516
- ...
2517
- # {
2518
- # url:
2519
- # status:
2520
- # locations:
2521
- # redirectedUrl:
2522
- # headers:
2523
- # 'content-length': '0',
2524
- # 'user-agent': 'curl/7.69.1',
2525
- # myheader: 'echo',
2526
- # 'content-type': 'application/json;charset=utf-8',
2527
- # host: 'localhost',
2528
- # connection: 'close'
2529
- # },
2530
- # data:
2531
- # buffer:
2532
- # buffers:
2533
- # }
2534
- # Subtest: proxy functional tests
2535
- # Subtest: proxy Happy path GET echo
2536
- ok 1 - proxy Happy path GET echo
2537
- ---
2538
- duration_ms: 12.966236
2539
- ...
2540
- # Subtest: proxy Happy path GET echo trailing 1
2541
- ok 2 - proxy Happy path GET echo trailing 1
2542
- ---
2543
- duration_ms: 3.440697
2544
- ...
2545
- # Subtest: proxy Happy path GET echo trailing 2
2546
- ok 3 - proxy Happy path GET echo trailing 2
2547
- ---
2548
- duration_ms: 2.724683
2549
- ...
2550
- # Subtest: proxy Happy path GET echo trailing 3
2551
- ok 4 - proxy Happy path GET echo trailing 3
2552
- ---
2553
- duration_ms: 2.708434
2554
- ...
2555
- # Subtest: proxy Happy path GET echo trailing 3 with embed
2556
- ok 5 - proxy Happy path GET echo trailing 3 with embed
2557
- ---
2558
- duration_ms: 4.367452
2559
- ...
2560
- # Subtest: proxy Happy path POST echo
2561
- ok 6 - proxy Happy path POST echo
2562
- ---
2563
- duration_ms: 2.832054
2564
- ...
2565
- # {
2566
- # url:
2567
- # status:
2568
- # locations:
2569
- # redirectedUrl:
2570
- # headers:
2571
- # 'content-length': '10',
2572
- # 'user-agent': 'curl/7.69.1',
2573
- # myheader: 'echo',
2574
- # 'content-type': 'application/json;charset=utf-8',
2575
- # host: 'localhost',
2576
- # connection: 'close'
2577
- # },
2578
- # data:
2579
- # buffer:
2580
- # 123, 34, 116, 101,
2581
- # 120, 116, 34, 58,
2582
- # 49
2583
- # ],
2584
- # buffers:
2585
- # Buffer(10) [Uint8Array] [
2586
- # 123
2587
- # 120
2588
- # 49, 125
2589
- # ]
2590
- # ]
2591
- # }
2592
- # Subtest: proxy Happy path POST echo JSON
2593
- ok 7 - proxy Happy path POST echo JSON
2594
- ---
2595
- duration_ms: 4.539403
2596
- ...
2597
- # Subtest: proxy Happy path GET 400
2598
- ok 8 - proxy Happy path GET 400
2599
- ---
2600
- duration_ms: 2.547482
2601
- ...
2602
- 1..8
2603
- ok 20 - proxy functional tests
2604
- ---
2605
- duration_ms: 40.5476
2606
- ...
2607
- # {
2608
- # status:
2609
- # data:
2610
- # headers:
2611
- # 'content-type': 'application/json; charset=utf-8',
2612
- # connection: 'close',
2613
- # 'content-length': '25'
2614
- # }
2615
- # }
2616
- # Subtest: router func tests
2617
- # Subtest: router2 token path
2618
- ok 1 - router2 token path
2619
- ---
2620
- duration_ms: 12.010608
2621
- ...
2622
- # {
2623
- # status:
2624
- # data:
2625
- # headers:
2626
- # 'content-type': 'application/json; charset=utf-8',
2627
- # connection: 'close',
2628
- # 'content-length': '37'
2629
- # }
2630
- # }
2631
- # Subtest: router2 token path 2
2632
- ok 2 - router2 token path 2
2633
- ---
2634
- duration_ms: 4.100879
2635
- ...
2636
- # {
2637
- # status:
2638
- # data:
2639
- # headers:
2640
- # 'content-type': 'text/html; charset=utf-8',
2641
- # connection: 'close',
2642
- # 'content-length': '9'
2643
- # }
2644
- # }
2645
- # Subtest: router catchError return false 404
2646
- ok 3 - router catchError return false 404
2647
- ---
2648
- duration_ms: 2.629437
2649
- ...
2650
- # {
2651
- # status:
2652
- # data:
2653
- # headers:
2654
- # 'content-type': 'text/html; charset=utf-8',
2655
- # connection: 'close',
2656
- # 'content-length': '9'
2657
- # }
2658
- # }
2659
- # Subtest: router catchError return false 404 as array
2660
- ok 4 - router catchError return false 404 as array
2661
- ---
2662
- duration_ms: 1.967672
2663
- ...
2664
- # 2023-08-10T14:42:34.461Z 1053 [API_USER_GET] [ERROR] GET /api/user/ [feb12140-6239-4bb8-9a90-78c010fa6faa] Error: blabla
2665
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/router.func.test.js:103:13
2666
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2667
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2668
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:67)
2669
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2670
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)
2671
- # at Server.emit (node:events:513:28)
2672
- # at parserOnIncoming (node:_http_server:1091:12)
2673
- # at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
2674
- # {
2675
- # status:
2676
- # data:
2677
- # ' at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/router.func.test.js:103:13\\n' +
2678
- # ' at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)\\n' +
2679
- # ' at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)\\n' +
2680
- # ' at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:67)\\n' +
2681
- # ' at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)\\n' +
2682
- # ' at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)\\n' +
2683
- # ' at Server.emit (node:events:513:28)\\n' +
2684
- # ' at parserOnIncoming (node:_http_server:1091:12)\\n' +
2685
- # ' at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)',
2686
- # headers:
2687
- # 'content-type': 'text/html; charset=utf-8',
2688
- # connection: 'close',
2689
- # 'content-length': '862'
2690
- # }
2691
- # }
2692
- # Subtest: router catchError as array
2693
- ok 5 - router catchError as array
2694
- ---
2695
- duration_ms: 8.863357
2696
- ...
2697
- # 2023-08-10T14:42:34.469Z 1053 [API_USER_GET] [ERROR] GET /api/user/ [66ad82e2-ba33-46b6-9b28-d448f077a659] Error: blabla
2698
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/router.func.test.js:129:13
2699
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2700
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2701
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:67)
2702
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2703
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)
2704
- # at Server.emit (node:events:513:28)
2705
- # at parserOnIncoming (node:_http_server:1091:12)
2706
- # at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
2707
- # {
2708
- # status:
2709
- # data:
2710
- # ' at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/router.func.test.js:129:13\\n' +
2711
- # ' at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)\\n' +
2712
- # ' at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)\\n' +
2713
- # ' at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:67)\\n' +
2714
- # ' at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)\\n' +
2715
- # ' at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)\\n' +
2716
- # ' at Server.emit (node:events:513:28)\\n' +
2717
- # ' at parserOnIncoming (node:_http_server:1091:12)\\n' +
2718
- # ' at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)',
2719
- # headers:
2720
- # 'content-type': 'text/html; charset=utf-8',
2721
- # connection: 'close',
2722
- # 'content-length': '862'
2723
- # }
2724
- # }
2725
- # Subtest: router catchError
2726
- ok 6 - router catchError
2727
- ---
2728
- duration_ms: 6.947516
2729
- ...
2730
- # {
2731
- # url:
2732
- # status:
2733
- # locations:
2734
- # redirectedUrl:
2735
- # headers:
2736
- # 'content-type': 'application/json; charset=utf-8',
2737
- # connection: 'close',
2738
- # 'content-length': '15'
2739
- # },
2740
- # data:
2741
- # buffer:
2742
- # 123, 34, 115, 116, 97,
2743
- # 116, 117, 115, 34, 58,
2744
- # 34
2745
- # ],
2746
- # buffers:
2747
- # Buffer(15) [Uint8Array] [
2748
- # 123
2749
- # 116
2750
- # 34, 79, 75, 34, 125
2751
- # ]
2752
- # ]
2753
- # }
2754
- # {
2755
- # url:
2756
- # status:
2757
- # locations:
2758
- # redirectedUrl:
2759
- # headers:
2760
- # 'content-type': 'text/html; charset=utf-8',
2761
- # connection: 'close',
2762
- # 'content-length': '3'
2763
- # },
2764
- # data:
2765
- # buffer:
2766
- # buffers:
2767
- # }
2768
- # 2023-08-10T14:42:34.478Z 1053 [API_BLE_GET] [ERROR] GET /api/ble/ [7c37d4c6-09b9-4c72-9896-4ead53ba7c19] BadRequestError: bla
2769
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/router.func.test.js:148:13
2770
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2771
- # at Router.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2772
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:143:67)
2773
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2774
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:24)
2775
- # at Server.emit (node:events:513:28)
2776
- # at parserOnIncoming (node:_http_server:1091:12)
2777
- # at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
2778
- # 2023-08-10T14:42:34.481Z 1053 [API_BLO_GET] [ERROR] GET /api/blo/ [4147a90f-6e6b-4bbe-b439-20d7e0b3a87a] BadRequestError: blo
2779
- # at /mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/test/router.func.test.js:157:13
2780
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2781
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2782
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2783
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
2784
- # {
2785
- # url:
2786
- # status:
2787
- # locations:
2788
- # redirectedUrl:
2789
- # headers:
2790
- # 'content-type': 'text/html; charset=utf-8',
2791
- # connection: 'close',
2792
- # 'content-length': '3'
2793
- # },
2794
- # data:
2795
- # buffer:
2796
- # buffers:
2797
- # }
2798
- # {
2799
- # url:
2800
- # status:
2801
- # locations:
2802
- # redirectedUrl:
2803
- # headers:
2804
- # 'content-type': 'application/json; charset=utf-8',
2805
- # connection: 'close',
2806
- # 'content-length': '16'
2807
- # },
2808
- # data:
2809
- # buffer:
2810
- # 123, 34, 115, 116, 97, 116,
2811
- # 117, 115, 34, 58, 34, 79,
2812
- # 75
2813
- # ],
2814
- # buffers:
2815
- # Buffer(16) [Uint8Array] [
2816
- # 123
2817
- # 117
2818
- # 75, 50, 34, 125
2819
- # ]
2820
- # ]
2821
- # }
2822
- # {
2823
- # url:
2824
- # status:
2825
- # locations:
2826
- # redirectedUrl:
2827
- # headers:
2828
- # 'content-type': 'text/html; charset=utf-8',
2829
- # connection: 'close',
2830
- # 'content-length': '9'
2831
- # },
2832
- # data:
2833
- # buffer:
2834
- # 78, 79, 84, 32, 70,
2835
- # 79, 85, 78, 68
2836
- # ],
2837
- # buffers:
2838
- # Buffer(9) [Uint8Array] [
2839
- # 78
2840
- # 79
2841
- # ]
2842
- # ]
2843
- # }
2844
- # {
2845
- # url:
2846
- # status:
2847
- # locations:
2848
- # redirectedUrl:
2849
- # headers:
2850
- # 'content-type': 'text/html; charset=utf-8',
2851
- # connection: 'close',
2852
- # 'content-length': '9'
2853
- # },
2854
- # data:
2855
- # buffer:
2856
- # 78, 79, 84, 32, 70,
2857
- # 79, 85, 78, 68
2858
- # ],
2859
- # buffers:
2860
- # Buffer(9) [Uint8Array] [
2861
- # 78
2862
- # 79
2863
- # ]
2864
- # ]
2865
- # }
2866
- # Subtest: router nested simple happy path
2867
- ok 7 - router nested simple happy path
2868
- ---
2869
- duration_ms: 19.368399
2870
- ...
2871
- 1..7
2872
- ok 21 - router func tests
2873
- ---
2874
- duration_ms: 57.541761
2875
- ...
2876
- # here
2877
- # 200
2878
- # {
2879
- # 'content
2880
- # connection:
2881
- # 'content
2882
- # }
2883
- # { bla: 1 }
2884
- # {
2885
- # '/':
2886
- # '': {
2887
- # description:
2888
- # name:
2889
- # identifier:
2890
- # policy:
2891
- # request:
2892
- # response:
2893
- # }
2894
- # },
2895
- # '/api/v
2896
- # POST: {
2897
- # description:
2898
- # name:
2899
- # identifier:
2900
- # policy:
2901
- # request:
2902
- # body: [ 'testBody' ],
2903
- # headers: undefined,
2904
- # params: undefined,
2905
- # query: undefined
2906
- # },
2907
- # response:
2908
- # }
2909
- # }
2910
- # }
2911
- # Subtest: router.use extended func tests
2912
- # Subtest: router.use extended happy path11
2913
- ok 1 - router.use extended happy path11
2914
- ---
2915
- duration_ms: 15.120193
2916
- ...
2917
- # 200
2918
- # {
2919
- # 'content
2920
- # connection:
2921
- # 'content
2922
- # }
2923
- # { bla: 1 }
2924
- # {
2925
- # '/':
2926
- # '': {
2927
- # description:
2928
- # name:
2929
- # identifier:
2930
- # policy:
2931
- # request:
2932
- # response:
2933
- # }
2934
- # },
2935
- # '/api/v
2936
- # POST: {
2937
- # description:
2938
- # name:
2939
- # identifier:
2940
- # policy:
2941
- # request:
2942
- # body: [ 'bla|blo' ],
2943
- # headers: undefined,
2944
- # params: undefined,
2945
- # query: undefined
2946
- # },
2947
- # response:
2948
- # }
2949
- # }
2950
- # }
2951
- # Subtest: router.use extended happy path 2
2952
- ok 2 - router.use extended happy path 2
2953
- ---
2954
- duration_ms: 4.89339
2955
- ...
2956
- 1..2
2957
- ok 22 - router.use extended func tests
2958
- ---
2959
- duration_ms: 21.159869
2960
- ...
2961
- # Subtest: session func tests
2962
- # Subtest: session createSessionHandler [header] happy path allow pass through update token with expiration useOptions false
2963
- ok 1 - session createSessionHandler [header] happy path allow pass through update token with expiration useOptions false
2964
- ---
2965
- duration_ms: 11.526001
2966
- ...
2967
- # Subtest: session createSessionHandler [header] happy path allow pass through useOptions false
2968
- ok 2 - session createSessionHandler [header] happy path allow pass through useOptions false
2969
- ---
2970
- duration_ms: 3.262288
2971
- ...
2972
- # Subtest: session createSessionHandler [header] happy path allow pass through update token useOptions false
2973
- ok 3 - session createSessionHandler [header] happy path allow pass through update token useOptions false
2974
- ---
2975
- duration_ms: 1.831219
2976
- ...
2977
- # 2023-08-10T14:42:36.721Z 1067 [USER_GET] [ERROR] GET /user/ [848dc029-6f6a-4c80-adf6-c2b57105ef0e] UnAuthorizedError: UNAUTHORIZED
2978
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
2979
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2980
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
2981
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
2982
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
2983
- # Subtest: session createSessionHandler [header] happy path doesnt allow pass through is 401 useOptions false
2984
- ok 4 - session createSessionHandler [header] happy path doesnt allow pass through is 401 useOptions false
2985
- ---
2986
- duration_ms: 6.663736
2987
- ...
2988
- # 2023-08-10T14:42:36.725Z 1067 [USER_GET] [ERROR] GET /user/ [f2263460-8be7-4c42-a361-fee00bb05a89] ForbiddenError: NO TOKEN
2989
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:111:15)
2990
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
2991
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
2992
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2993
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
2994
- # Subtest: session createSessionHandler [header] no token is 403 useOptions false
2995
- ok 5 - session createSessionHandler [header] no token is 403 useOptions false
2996
- ---
2997
- duration_ms: 4.483155
2998
- ...
2999
- # 2023-08-10T14:42:36.729Z 1067 [USER_GET] [ERROR] GET /user/ [669570c6-6180-4841-a9b6-77aa1d2bb38d] UnAuthorizedError: UNAUTHORIZED
3000
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3001
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3002
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3003
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3004
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3005
- # {
3006
- # status:
3007
- # data:
3008
- # headers:
3009
- # 'content-type': 'text/html; charset=utf-8',
3010
- # connection: 'close',
3011
- # 'content-length': '12'
3012
- # }
3013
- # }
3014
- # Subtest: session createSessionHandler [header] verify throws is 401 useOptions false
3015
- ok 6 - session createSessionHandler [header] verify throws is 401 useOptions false
3016
- ---
3017
- duration_ms: 3.854722
3018
- ...
3019
- # Subtest: session createSessionHandler [query] happy path allow pass through update token with expiration useOptions false
3020
- ok 7 - session createSessionHandler [query] happy path allow pass through update token with expiration useOptions false
3021
- ---
3022
- duration_ms: 3.228747
3023
- ...
3024
- # Subtest: session createSessionHandler [query] happy path allow pass through useOptions false
3025
- ok 8 - session createSessionHandler [query] happy path allow pass through useOptions false
3026
- ---
3027
- duration_ms: 1.794429
3028
- ...
3029
- # Subtest: session createSessionHandler [query] happy path allow pass through update token useOptions false
3030
- ok 9 - session createSessionHandler [query] happy path allow pass through update token useOptions false
3031
- ---
3032
- duration_ms: 2.14904
3033
- ...
3034
- # 2023-08-10T14:42:36.740Z 1067 [USER_GET] [ERROR] GET /user/?TOKEN=FakeToken [d329b582-9497-49bd-9022-648f5b662502] UnAuthorizedError: UNAUTHORIZED
3035
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3036
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3037
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3038
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3039
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3040
- # Subtest: session createSessionHandler [query] happy path doesnt allow pass through is 401 useOptions false
3041
- ok 10 - session createSessionHandler [query] happy path doesnt allow pass through is 401 useOptions false
3042
- ---
3043
- duration_ms: 2.247911
3044
- ...
3045
- # 2023-08-10T14:42:36.742Z 1067 [USER_GET] [ERROR] GET /user/ [891c483b-18e8-4780-bffc-b83f7f2a0d5f] ForbiddenError: NO TOKEN
3046
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:111:15)
3047
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
3048
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
3049
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3050
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3051
- # Subtest: session createSessionHandler [query] no token is 403 useOptions false
3052
- ok 11 - session createSessionHandler [query] no token is 403 useOptions false
3053
- ---
3054
- duration_ms: 2.175956
3055
- ...
3056
- # 2023-08-10T14:42:36.744Z 1067 [USER_GET] [ERROR] GET /user/?TOKEN=FakeToken [a6823082-87da-4e0e-a090-2c34d04f3ac6] UnAuthorizedError: UNAUTHORIZED
3057
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3058
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3059
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3060
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3061
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3062
- # {
3063
- # status:
3064
- # data:
3065
- # headers:
3066
- # 'content-type': 'text/html; charset=utf-8',
3067
- # connection: 'close',
3068
- # 'content-length': '12'
3069
- # }
3070
- # }
3071
- # Subtest: session createSessionHandler [query] verify throws is 401 useOptions false
3072
- ok 12 - session createSessionHandler [query] verify throws is 401 useOptions false
3073
- ---
3074
- duration_ms: 2.384905
3075
- ...
3076
- # Subtest: session createSessionHandler [cookie] happy path allow pass through update token with expiration useOptions false
3077
- ok 13 - session createSessionHandler [cookie] happy path allow pass through update token with expiration useOptions false
3078
- ---
3079
- duration_ms: 2.120082
3080
- ...
3081
- # Subtest: session createSessionHandler [cookie] happy path allow pass through useOptions false
3082
- ok 14 - session createSessionHandler [cookie] happy path allow pass through useOptions false
3083
- ---
3084
- duration_ms: 1.346989
3085
- ...
3086
- # Subtest: session createSessionHandler [cookie] happy path allow pass through update token useOptions false
3087
- ok 15 - session createSessionHandler [cookie] happy path allow pass through update token useOptions false
3088
- ---
3089
- duration_ms: 1.338322
3090
- ...
3091
- # 2023-08-10T14:42:36.751Z 1067 [USER_GET] [ERROR] GET /user/ [2270992d-9723-4823-a61b-ee5409c66195] UnAuthorizedError: UNAUTHORIZED
3092
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3093
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3094
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3095
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3096
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3097
- # Subtest: session createSessionHandler [cookie] happy path doesnt allow pass through is 401 useOptions false
3098
- ok 16 - session createSessionHandler [cookie] happy path doesnt allow pass through is 401 useOptions false
3099
- ---
3100
- duration_ms: 1.85651
3101
- ...
3102
- # 2023-08-10T14:42:36.754Z 1067 [USER_GET] [ERROR] GET /user/ [9466db16-9204-4546-bc70-ead728fb3280] ForbiddenError: NO TOKEN
3103
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:111:15)
3104
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
3105
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
3106
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3107
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3108
- # Subtest: session createSessionHandler [cookie] no token is 403 useOptions false
3109
- ok 17 - session createSessionHandler [cookie] no token is 403 useOptions false
3110
- ---
3111
- duration_ms: 2.988549
3112
- ...
3113
- # 2023-08-10T14:42:36.756Z 1067 [USER_GET] [ERROR] GET /user/ [4bcafcc6-ced5-4e73-ba3f-a3215dc7fadf] UnAuthorizedError: UNAUTHORIZED
3114
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3115
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3116
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3117
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3118
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3119
- # {
3120
- # status:
3121
- # data:
3122
- # headers:
3123
- # 'content-type': 'text/html; charset=utf-8',
3124
- # connection: 'close',
3125
- # 'content-length': '12'
3126
- # }
3127
- # }
3128
- # Subtest: session createSessionHandler [cookie] verify throws is 401 useOptions false
3129
- ok 18 - session createSessionHandler [cookie] verify throws is 401 useOptions false
3130
- ---
3131
- duration_ms: 2.427112
3132
- ...
3133
- # Subtest: session createSessionHandler [header] happy path allow pass through update token with expiration useOptions true
3134
- ok 19 - session createSessionHandler [header] happy path allow pass through update token with expiration useOptions true
3135
- ---
3136
- duration_ms: 2.462277
3137
- ...
3138
- # Subtest: session createSessionHandler [header] happy path allow pass through with locationName and LocationPath as function useOptions true
3139
- ok 20 - session createSessionHandler [header] happy path allow pass through with locationName and LocationPath as function useOptions true
3140
- ---
3141
- duration_ms: 2.280534
3142
- ...
3143
- # Subtest: session createSessionHandler [header] happy path allow pass through useOptions true
3144
- ok 21 - session createSessionHandler [header] happy path allow pass through useOptions true
3145
- ---
3146
- duration_ms: 2.64227
3147
- ...
3148
- # Subtest: session createSessionHandler [header] happy path allow pass through update token useOptions true
3149
- ok 22 - session createSessionHandler [header] happy path allow pass through update token useOptions true
3150
- ---
3151
- duration_ms: 1.230535
3152
- ...
3153
- # 2023-08-10T14:42:36.767Z 1067 [USER_GET] [ERROR] GET /user/ [59c13d64-01d7-4be8-a7e3-aab4c0233c49] UnAuthorizedError: UNAUTHORIZED
3154
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3155
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3156
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3157
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3158
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3159
- # Subtest: session createSessionHandler [header] happy path doesnt allow pass through is 401 useOptions true
3160
- ok 23 - session createSessionHandler [header] happy path doesnt allow pass through is 401 useOptions true
3161
- ---
3162
- duration_ms: 1.929882
3163
- ...
3164
- # 2023-08-10T14:42:36.769Z 1067 [USER_GET] [ERROR] GET /user/ [723225b2-53e1-4aa2-bb95-5ed3921ff3e3] ForbiddenError: NO TOKEN
3165
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:111:15)
3166
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
3167
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
3168
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3169
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3170
- # Subtest: session createSessionHandler [header] no token is 403 useOptions true
3171
- ok 24 - session createSessionHandler [header] no token is 403 useOptions true
3172
- ---
3173
- duration_ms: 1.664142
3174
- ...
3175
- # 2023-08-10T14:42:36.770Z 1067 [USER_GET] [ERROR] GET /user/ [3b0c456f-926b-4a91-959b-c51bf99e62c7] UnAuthorizedError: UNAUTHORIZED
3176
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3177
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3178
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3179
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3180
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3181
- # {
3182
- # status:
3183
- # data:
3184
- # headers:
3185
- # 'content-type': 'text/html; charset=utf-8',
3186
- # connection: 'close',
3187
- # 'content-length': '12'
3188
- # }
3189
- # }
3190
- # Subtest: session createSessionHandler [header] verify throws is 401 useOptions true
3191
- ok 25 - session createSessionHandler [header] verify throws is 401 useOptions true
3192
- ---
3193
- duration_ms: 1.626311
3194
- ...
3195
- # Subtest: session createSessionHandler [query] happy path allow pass through update token with expiration useOptions true
3196
- ok 26 - session createSessionHandler [query] happy path allow pass through update token with expiration useOptions true
3197
- ---
3198
- duration_ms: 0.899881
3199
- ...
3200
- # Subtest: session createSessionHandler [query] happy path allow pass through with locationName and LocationPath as function useOptions true
3201
- ok 27 - session createSessionHandler [query] happy path allow pass through with locationName and LocationPath as function useOptions true
3202
- ---
3203
- duration_ms: 0.873549
3204
- ...
3205
- # Subtest: session createSessionHandler [query] happy path allow pass through useOptions true
3206
- ok 28 - session createSessionHandler [query] happy path allow pass through useOptions true
3207
- ---
3208
- duration_ms: 1.021793
3209
- ...
3210
- # Subtest: session createSessionHandler [query] happy path allow pass through update token useOptions true
3211
- ok 29 - session createSessionHandler [query] happy path allow pass through update token useOptions true
3212
- ---
3213
- duration_ms: 0.73447
3214
- ...
3215
- # 2023-08-10T14:42:36.776Z 1067 [USER_GET] [ERROR] GET /user/?TOKEN=FakeToken [03167413-0886-47cd-b1be-148c7a0bfd9c] UnAuthorizedError: UNAUTHORIZED
3216
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3217
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3218
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3219
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3220
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3221
- # Subtest: session createSessionHandler [query] happy path doesnt allow pass through is 401 useOptions true
3222
- ok 30 - session createSessionHandler [query] happy path doesnt allow pass through is 401 useOptions true
3223
- ---
3224
- duration_ms: 1.534564
3225
- ...
3226
- # 2023-08-10T14:42:36.777Z 1067 [USER_GET] [ERROR] GET /user/ [ebb55134-91d0-4cad-bc04-77a6a4dbccc7] ForbiddenError: NO TOKEN
3227
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:111:15)
3228
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
3229
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
3230
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3231
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3232
- # Subtest: session createSessionHandler [query] no token is 403 useOptions true
3233
- ok 31 - session createSessionHandler [query] no token is 403 useOptions true
3234
- ---
3235
- duration_ms: 2.186163
3236
- ...
3237
- # 2023-08-10T14:42:36.780Z 1067 [USER_GET] [ERROR] GET /user/?TOKEN=FakeToken [f4cbfa03-e1a0-4c2d-843f-b655a2d9450b] UnAuthorizedError: UNAUTHORIZED
3238
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3239
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3240
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3241
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3242
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3243
- # {
3244
- # status:
3245
- # data:
3246
- # headers:
3247
- # 'content-type': 'text/html; charset=utf-8',
3248
- # connection: 'close',
3249
- # 'content-length': '12'
3250
- # }
3251
- # }
3252
- # Subtest: session createSessionHandler [query] verify throws is 401 useOptions true
3253
- ok 32 - session createSessionHandler [query] verify throws is 401 useOptions true
3254
- ---
3255
- duration_ms: 1.72839
3256
- ...
3257
- # Subtest: session createSessionHandler [cookie] happy path allow pass through update token with expiration useOptions true
3258
- ok 33 - session createSessionHandler [cookie] happy path allow pass through update token with expiration useOptions true
3259
- ---
3260
- duration_ms: 0.835592
3261
- ...
3262
- # Subtest: session createSessionHandler [cookie] happy path allow pass through with locationName and LocationPath as function useOptions true
3263
- ok 34 - session createSessionHandler [cookie] happy path allow pass through with locationName and LocationPath as function useOptions true
3264
- ---
3265
- duration_ms: 0.978628
3266
- ...
3267
- # Subtest: session createSessionHandler [cookie] happy path allow pass through useOptions true
3268
- ok 35 - session createSessionHandler [cookie] happy path allow pass through useOptions true
3269
- ---
3270
- duration_ms: 0.735804
3271
- ...
3272
- # Subtest: session createSessionHandler [cookie] happy path allow pass through update token useOptions true
3273
- ok 36 - session createSessionHandler [cookie] happy path allow pass through update token useOptions true
3274
- ---
3275
- duration_ms: 0.743804
3276
- ...
3277
- # 2023-08-10T14:42:36.784Z 1067 [USER_GET] [ERROR] GET /user/ [66ee98a8-08c2-4367-8dd9-43402f4e96b2] UnAuthorizedError: UNAUTHORIZED
3278
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3279
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3280
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3281
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3282
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3283
- # Subtest: session createSessionHandler [cookie] happy path doesnt allow pass through is 401 useOptions true
3284
- ok 37 - session createSessionHandler [cookie] happy path doesnt allow pass through is 401 useOptions true
3285
- ---
3286
- duration_ms: 1.316739
3287
- ...
3288
- # 2023-08-10T14:42:36.786Z 1067 [USER_GET] [ERROR] GET /user/ [ea6eb3ff-b6a5-475f-b61a-d2971d38400b] ForbiddenError: NO TOKEN
3289
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:111:15)
3290
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:47)
3291
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:42)
3292
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3293
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3294
- # Subtest: session createSessionHandler [cookie] no token is 403 useOptions true
3295
- ok 38 - session createSessionHandler [cookie] no token is 403 useOptions true
3296
- ---
3297
- duration_ms: 1.462442
3298
- ...
3299
- # 2023-08-10T14:42:36.787Z 1067 [USER_GET] [ERROR] GET /user/ [cb6fd1ef-e548-4938-a5f9-7bf020a7952a] UnAuthorizedError: UNAUTHORIZED
3300
- # at SessionHandler (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/middleware/session.ts:142:15)
3301
- # at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3302
- # at RouterHandler.invoke (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/common/router-handler.ts:147:40)
3303
- # at App.run (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/router.ts:84:34)
3304
- # at Server.App.listener (/mnt/pwd/Users/user/Desktop/Proyectos/@miqro/core/src/app.ts:23:13)
3305
- # {
3306
- # status:
3307
- # data:
3308
- # headers:
3309
- # 'content-type': 'text/html; charset=utf-8',
3310
- # connection: 'close',
3311
- # 'content-length': '12'
3312
- # }
3313
- # }
3314
- # Subtest: session createSessionHandler [cookie] verify throws is 401 useOptions true
3315
- ok 39 - session createSessionHandler [cookie] verify throws is 401 useOptions true
3316
- ---
3317
- duration_ms: 1.540606
3318
- ...
3319
- 1..39
3320
- ok 23 - session func tests
3321
- ---
3322
- duration_ms: 90.162051
3323
- ...
3324
- # 'before before close'
3325
- # 'before close'
3326
- # 'before listen'
3327
- # 'after listen'
3328
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[http://localhost:9999/validate] TOKEN_HEADER=[Authorization]
3329
- # 'good1'
3330
- # 'secret'
3331
- # { username: 'usera', account: 'ble', groups: [ 'aldf', 'sd2' ] }
3332
- # token [good1]authorized!
3333
- # 'before before close2'
3334
- # 'before close2'
3335
- # 'after close2'
3336
- # 'before before close'
3337
- # 'before close'
3338
- # 'before listen'
3339
- # Subtest: verify func tests
3340
- # 'after listen'
3341
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[http://localhost:9999/validate] TOKEN_HEADER=[Authorization]
3342
- # Subtest: verifytoken happy path [header] mix tape 1 valid auth useOptions false
3343
- ok 1 - verifytoken happy path [header] mix tape 1 valid auth useOptions false
3344
- ---
3345
- duration_ms: 20.89188
3346
- ...
3347
- # 'good1'
3348
- # 'secret'
3349
- # token [good1]authorized!
3350
- # 'before before close2'
3351
- # 'before close2'
3352
- # 'after close2'
3353
- # 'before before close'
3354
- # 'before close'
3355
- # 'before listen'
3356
- # Subtest: verifytoken happy path [header] mix tape 1 valid auth with token update useOptions false
3357
- # 'after listen'
3358
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[http://localhost:9999/validate] TOKEN_QUERY=[token]
3359
- ok 2 - verifytoken happy path [header] mix tape 1 valid auth with token update useOptions false
3360
- ---
3361
- duration_ms: 3.941427
3362
- ...
3363
- # 'good1'
3364
- # 'secret'
3365
- # { username: 'usera', account: 'ble', groups: [ 'aldf', 'sd2' ] }
3366
- # token [good1]authorized!
3367
- # 'before before close2'
3368
- # 'before close2'
3369
- # 'after close2'
3370
- # 'before before close'
3371
- # 'before close'
3372
- # 'before listen'
3373
- # Subtest: verifytoken happy path [query] mix tape 1 valid auth useOptions false
3374
- # 'after listen'
3375
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[http://localhost:9999/validate] TOKEN_QUERY=[token]
3376
- ok 3 - verifytoken happy path [query] mix tape 1 valid auth useOptions false
3377
- ---
3378
- duration_ms: 2.523734
3379
- ...
3380
- # 'good1'
3381
- # 'secret'
3382
- # token [good1]authorized!
3383
- # 'before before close2'
3384
- # 'before close2'
3385
- # 'after close2'
3386
- # 'before before close'
3387
- # 'before close'
3388
- # 'before listen'
3389
- # Subtest: verifytoken happy path [query] mix tape 1 valid auth with token update useOptions false
3390
- # 'after listen'
3391
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[http://localhost:9999/validate] TOKEN_COOKIE=[bla]
3392
- ok 4 - verifytoken happy path [query] mix tape 1 valid auth with token update useOptions false
3393
- ---
3394
- duration_ms: 1.741973
3395
- ...
3396
- # 'good1'
3397
- # 'secret'
3398
- # { username: 'usera', account: 'ble', groups: [ 'aldf', 'sd2' ] }
3399
- # token [good1]authorized!
3400
- # 'before before close2'
3401
- # 'before close2'
3402
- # 'after close2'
3403
- # 'before before close'
3404
- # 'before close'
3405
- # 'before listen'
3406
- # Subtest: verifytoken happy path [cookie] mix tape 1 valid auth useOptions false
3407
- # 'after listen'
3408
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[http://localhost:9999/validate] TOKEN_COOKIE=[bla]
3409
- ok 5 - verifytoken happy path [cookie] mix tape 1 valid auth useOptions false
3410
- ---
3411
- duration_ms: 2.960507
3412
- ...
3413
- # 'good1'
3414
- # 'secret'
3415
- # token [good1]authorized!
3416
- # 'before before close2'
3417
- # 'before close2'
3418
- # 'after close2'
3419
- # 'before before close'
3420
- # 'before close'
3421
- # 'before listen'
3422
- # Subtest: verifytoken happy path [cookie] mix tape 1 valid auth with token update useOptions false
3423
- # 'after listen'
3424
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[undefined] TOKEN_HEADER=[Authorization]
3425
- ok 6 - verifytoken happy path [cookie] mix tape 1 valid auth with token update useOptions false
3426
- ---
3427
- duration_ms: 2.520816
3428
- ...
3429
- # 'good1'
3430
- # 'secret'
3431
- # { username: 'usera', account: 'ble', groups: [ 'aldf', 'sd2' ] }
3432
- # token [good1]authorized!
3433
- # 'before before close2'
3434
- # 'before close2'
3435
- # 'after close2'
3436
- # 'before before close'
3437
- # 'before close'
3438
- # 'before listen'
3439
- # Subtest: verifytoken happy path [header] mix tape 1 valid auth useOptions true
3440
- # 'after listen'
3441
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[undefined] TOKEN_HEADER=[Authorization]
3442
- ok 7 - verifytoken happy path [header] mix tape 1 valid auth useOptions true
3443
- ---
3444
- duration_ms: 2.397072
3445
- ...
3446
- # 'good1'
3447
- # 'secret'
3448
- # token [good1]authorized!
3449
- # 'before before close2'
3450
- # 'before close2'
3451
- # 'after close2'
3452
- # 'before before close'
3453
- # 'before close'
3454
- # 'before listen'
3455
- # Subtest: verifytoken happy path [header] mix tape 1 valid auth with token update useOptions true
3456
- # 'after listen'
3457
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[undefined] TOKEN_QUERY=[token]
3458
- ok 8 - verifytoken happy path [header] mix tape 1 valid auth with token update useOptions true
3459
- ---
3460
- duration_ms: 2.85672
3461
- ...
3462
- # 'good1'
3463
- # 'secret'
3464
- # { username: 'usera', account: 'ble', groups: [ 'aldf', 'sd2' ] }
3465
- # token [good1]authorized!
3466
- # 'before before close2'
3467
- # 'before close2'
3468
- # 'after close2'
3469
- # 'before before close'
3470
- # 'before close'
3471
- # 'before listen'
3472
- # Subtest: verifytoken happy path [query] mix tape 1 valid auth useOptions true
3473
- # 'after listen'
3474
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[undefined] TOKEN_QUERY=[token]
3475
- ok 9 - verifytoken happy path [query] mix tape 1 valid auth useOptions true
3476
- ---
3477
- duration_ms: 2.602938
3478
- ...
3479
- # 'good1'
3480
- # 'secret'
3481
- # token [good1]authorized!
3482
- # 'before before close2'
3483
- # 'before close2'
3484
- # 'after close2'
3485
- # 'before before close'
3486
- # 'before close'
3487
- # 'before listen'
3488
- # Subtest: verifytoken happy path [query] mix tape 1 valid auth with token update useOptions true
3489
- # 'after listen'
3490
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[undefined] TOKEN_COOKIE=[bla]
3491
- ok 10 - verifytoken happy path [query] mix tape 1 valid auth with token update useOptions true
3492
- ---
3493
- duration_ms: 2.752432
3494
- ...
3495
- # 'good1'
3496
- # 'secret'
3497
- # { username: 'usera', account: 'ble', groups: [ 'aldf', 'sd2' ] }
3498
- # token [good1]authorized!
3499
- # 'before before close2'
3500
- # 'before close2'
3501
- # 'after close2'
3502
- # 'before before close'
3503
- # 'before close'
3504
- # 'before listen'
3505
- # Subtest: verifytoken happy path [cookie] mix tape 1 valid auth useOptions true
3506
- # 'after listen'
3507
- # verifying [good1] on TOKEN_VERIFY_ENDPOINT=[undefined] TOKEN_COOKIE=[bla]
3508
- ok 11 - verifytoken happy path [cookie] mix tape 1 valid auth useOptions true
3509
- ---
3510
- duration_ms: 2.005796
3511
- ...
3512
- # 'good1'
3513
- # 'secret'
3514
- # token [good1]authorized!
3515
- # 'before before close2'
3516
- # 'before close2'
3517
- # 'after close2'
3518
- # Subtest: verifytoken happy path [cookie] mix tape 1 valid auth with token update useOptions true
3519
- ok 12 - verifytoken happy path [cookie] mix tape 1 valid auth with token update useOptions true
3520
- ---
3521
- duration_ms: 2.480651
3522
- ...
3523
- 1..12
3524
- ok 24 - verify func tests
3525
- ---
3526
- duration_ms: 51.776823
3527
- ...
3528
- 1..24
3529
- # tests 24
3530
- # pass 24
3531
- # fail 0
3532
- # cancelled 0
3533
- # skipped 0
3534
- # todo 0
3535
- # duration_ms 25120.553761