Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.16 KB | None | 0 0
  1. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  2.  
  3. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  4. - using env: export GIN_MODE=release
  5. - using code: gin.SetMode(gin.ReleaseMode)
  6.  
  7. [GIN-debug] GET /:promo_user_id/statistics/:video_distribution --> github.com/EasyHi/go-analytics-dashboard/analytics.(*AnalyticsHandler).HandleGetMetricsAndMetaDataForVideoDistributionID-fm (3 handlers)
  8. [GIN] 2019/07/17 - 13:22:06 | 500 | 266.018µs | | GET /DUMMY_PROMO_USER_ID/statistics/DUMMY_VIDEO_DISTRIBUTION_ID
  9. --- FAIL: TestAnalytics_GetFacebookAnalyticDataIntegration (0.07s)
  10. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  11. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  12. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  13. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  14. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  15. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  16. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  17. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  18. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  19. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  20. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  21. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  22. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  23. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  24. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  25. handler_test.go:94: failed save to db: failed to save data: pq: relation "public.facebook_analytic_data" does not exist
  26. handler_test.go:130: Latest statistics in the db differ from expected : root["created_at"]:
  27. -: "2019-04-26T09:09:59Z"
  28. +: <non-existent>
  29. root["error"]:
  30. -: <non-existent>
  31. +: map[string]interface {}{"code": "", "title": `failed to query analytics items: pq: relation "facebook_analytic_data" does not exist`}
  32. root["post_activity"]:
  33. -: 100
  34. +: <non-existent>
  35. root["post_clicks"]:
  36. -: 120
  37. +: <non-existent>
  38. root["post_impressions"]:
  39. -: 110
  40. +: <non-existent>
  41. root["post_video_avg_time_watched"]:
  42. -: 150
  43. +: <non-existent>
  44. root["post_video_view_time"]:
  45. -: 140
  46. +: <non-existent>
  47. root["post_video_view_time_by_age_bucket_and_gender.F.13-17"]:
  48. -: 160
  49. +: <non-existent>
  50. root["post_video_view_time_by_age_bucket_and_gender.F.18-24"]:
  51. -: 170
  52. +: <non-existent>
  53. root["post_video_view_time_by_age_bucket_and_gender.F.25-34"]:
  54. -: 180
  55. +: <non-existent>
  56. root["post_video_view_time_by_age_bucket_and_gender.F.35-44"]:
  57. -: 190
  58. +: <non-existent>
  59. root["post_video_view_time_by_age_bucket_and_gender.F.45-54"]:
  60. -: 200
  61. +: <non-existent>
  62. root["post_video_view_time_by_age_bucket_and_gender.F.55-64"]:
  63. -: 210
  64. +: <non-existent>
  65. root["post_video_view_time_by_age_bucket_and_gender.F.65+"]:
  66. -: 220
  67. +: <non-existent>
  68. root["post_video_view_time_by_age_bucket_and_gender.M.13-17"]:
  69. -: 230
  70. +: <non-existent>
  71. root["post_video_view_time_by_age_bucket_and_gender.M.18-24"]:
  72. -: 240
  73. +: <non-existent>
  74. root["post_video_view_time_by_age_bucket_and_gender.M.25-34"]:
  75. -: 250
  76. +: <non-existent>
  77. root["post_video_view_time_by_age_bucket_and_gender.M.35-44"]:
  78. -: 260
  79. +: <non-existent>
  80. root["post_video_view_time_by_age_bucket_and_gender.M.45-54"]:
  81. -: 270
  82. +: <non-existent>
  83. root["post_video_view_time_by_age_bucket_and_gender.M.55-64"]:
  84. -: 280
  85. +: <non-existent>
  86. root["post_video_view_time_by_age_bucket_and_gender.M.65+"]:
  87. -: 290
  88. +: <non-existent>
  89. root["post_video_views"]:
  90. -: 130
  91. +: <non-existent>
  92. root["video_distribution_id"]:
  93. -: "DUMMY_VIDEO_DISTRIBUTION_ID"
  94. +: <non-existent>
  95. root["video_family_id"]:
  96. -: "DUMMY_VIDEO_FAMILY_ID"
  97. +: <non-existent>
  98. root["video_id"]:
  99. -: "DUMMY_VIDEO_ID"
  100. +: <non-existent>
  101. root["video_thumbnail_url"]:
  102. -: "DUMMY_VIDEO_THUMBNAIL_URL"
  103. +: <non-existent>
  104. FAIL
  105. FAIL github.com/EasyHi/go-analytics-dashboard/analytics 0.146s
  106. ? github.com/EasyHi/go-analytics-dashboard/api/v2/generated/models [no test files]
  107. ? github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi [no test files]
  108. ? github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations [no test files]
  109. ? github.com/EasyHi/go-analytics-dashboard/api/v2/service [no test files]
  110. ? github.com/EasyHi/go-analytics-dashboard/db [no test files]
  111. ? github.com/EasyHi/go-analytics-dashboard/db/distribution [no test files]
  112. ? github.com/EasyHi/go-analytics-dashboard/db/promovideos [no test files]
  113. ok github.com/EasyHi/go-analytics-dashboard/handler/distributionlist 0.084s
  114. --- FAIL: TestIntegrationGetVideoDistributionsAnalytics_OneVideoDistributionIdSingleMetric (0.07s)
  115. handler_test.go:49: failed save to db
  116. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  117.  
  118. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  119. - using env: export GIN_MODE=release
  120. - using code: gin.SetMode(gin.ReleaseMode)
  121.  
  122. [GIN-debug] GET /:promo_user_id/video_distributions/analytics --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsAnalyticsEndpoint.func1 (3 handlers)
  123. [GIN] 2019/07/17 - 13:22:06 | 200 | 7.731575ms | | GET /a/video_distributions/analytics?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A1%2C%22PageSize%22%3A1%2C%22Ascending%22%3Atrue%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%221%22%2C%22LastMetricIncrease%22%3A0%2C%22LatestMetricId%22%3A3%7D&start_date=2019-05-01&video_distribution_id=1
  124. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  125.  
  126. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  127. - using env: export GIN_MODE=release
  128. - using code: gin.SetMode(gin.ReleaseMode)
  129.  
  130. [GIN-debug] GET /:promo_user_id/video_distributions/analytics --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsAnalyticsEndpoint.func1 (3 handlers)
  131. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.962393ms | | GET /a/video_distributions/analytics?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A1%2C%22PageSize%22%3A1%2C%22Ascending%22%3Atrue%2C%22StartDate%22%3A%222019-06-01%22%2C%22LastVideoDistributionId%22%3A%221%22%2C%22LastMetricIncrease%22%3A0%2C%22LatestMetricId%22%3A1%7D&start_date=2019-06-01&video_distribution_id=1
  132. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  133.  
  134. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  135. - using env: export GIN_MODE=release
  136. - using code: gin.SetMode(gin.ReleaseMode)
  137.  
  138. [GIN-debug] GET /:promo_user_id/video_distributions/analytics --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsAnalyticsEndpoint.func1 (3 handlers)
  139. [GIN] 2019/07/17 - 13:22:06 | 200 | 5.080552ms | | GET /a/video_distributions/analytics?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A1%2C%22PageSize%22%3A1%2C%22Ascending%22%3Atrue%2C%22StartDate%22%3A%222019-06-01%22%2C%22LastVideoDistributionId%22%3A%221%22%2C%22LastMetricIncrease%22%3A0%2C%22LatestMetricId%22%3A0%7D&start_date=2019-06-01&video_distribution_id=1
  140. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  141.  
  142. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  143. - using env: export GIN_MODE=release
  144. - using code: gin.SetMode(gin.ReleaseMode)
  145.  
  146. [GIN-debug] GET /:promo_user_id/video_distributions/analytics --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsAnalyticsEndpoint.func1 (3 handlers)
  147. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.683593ms | | GET /b/video_distributions/analytics?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A1%2C%22PageSize%22%3A3%2C%22Ascending%22%3Atrue%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%223%22%2C%22LastMetricIncrease%22%3A0%2C%22LatestMetricId%22%3A9%7D&start_date=2019-05-01&video_distribution_id=1%2C2%2C3
  148. --- FAIL: TestIntegrationGetVideoDistributionsAnalytics_SeveralPromoUserIdsSeveralVideoDistributionIdsSingleMetric (0.06s)
  149. handler_test.go:194: Unexpected video metrics: root[2]["clicks"]:
  150. -: 90
  151. +: <non-existent>
  152. --- FAIL: TestIntegrationGetVideoDistributionsAnalytics_OnePromoUserIdOneVideoDistributionIdSeveralMetrics (0.05s)
  153. handler_test.go:215: failed save to db
  154. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  155.  
  156. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  157. - using env: export GIN_MODE=release
  158. - using code: gin.SetMode(gin.ReleaseMode)
  159.  
  160. [GIN-debug] GET /:promo_user_id/video_distributions/analytics --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsAnalyticsEndpoint.func1 (3 handlers)
  161. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.465406ms | | GET /b/video_distributions/analytics?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A1%2C%22PageSize%22%3A3%2C%22Ascending%22%3Atrue%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%223%22%2C%22LastMetricIncrease%22%3A0%2C%22LatestMetricId%22%3A9%7D&start_date=2019-05-01&video_distribution_id=1
  162. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  163.  
  164. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  165. - using env: export GIN_MODE=release
  166. - using code: gin.SetMode(gin.ReleaseMode)
  167.  
  168. [GIN-debug] GET /:promo_user_id/video_distributions/analytics --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsAnalyticsEndpoint.func1 (3 handlers)
  169. [GIN] 2019/07/17 - 13:22:06 | 200 | 3.854503ms | | GET /a/video_distributions/analytics?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A1%2C%22PageSize%22%3A1%2C%22Ascending%22%3Atrue%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%221%22%2C%22LastMetricIncrease%22%3A0%2C%22LatestMetricId%22%3A3%7D&start_date=2019-05-01&video_distribution_id=1
  170. --- FAIL: TestIntegrationGetVideoDistributionsAnalytics_OneVideoDistributionIdAvgWatchTimeMetric (0.05s)
  171. handler_test.go:315: Unexpected video metrics: root[0]["avg_watch_time"]:
  172. -: 1633
  173. +: 1350
  174. FAIL
  175. FAIL github.com/EasyHi/go-analytics-dashboard/handler/v2/distributionanalytics 0.517s
  176. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  177.  
  178. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  179. - using env: export GIN_MODE=release
  180. - using code: gin.SetMode(gin.ReleaseMode)
  181.  
  182. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  183. [GIN] 2019/07/17 - 13:22:06 | 200 | 12.562244ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=4&sort_by=views&sort_dir=desc&start_date=2019-05-01
  184. --- FAIL: TestIntegrationGetVideoDistributions_SupportsAscendingSorting (0.07s)
  185. handler_test.go:78: failed save to db
  186. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  187.  
  188. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  189. - using env: export GIN_MODE=release
  190. - using code: gin.SetMode(gin.ReleaseMode)
  191.  
  192. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  193. [GIN] 2019/07/17 - 13:22:06 | 200 | 3.224132ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=4&sort_by=views&sort_dir=desc&start_date=2019-05-02
  194. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  195.  
  196. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  197. - using env: export GIN_MODE=release
  198. - using code: gin.SetMode(gin.ReleaseMode)
  199.  
  200. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  201. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.077899ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=4&sort_by=views&sort_dir=desc&start_date=2019-05-10
  202. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  203.  
  204. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  205. - using env: export GIN_MODE=release
  206. - using code: gin.SetMode(gin.ReleaseMode)
  207.  
  208. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  209. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.348736ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=4&sort_by=views&sort_dir=desc&start_date=2019-05-02
  210. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  211.  
  212. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  213. - using env: export GIN_MODE=release
  214. - using code: gin.SetMode(gin.ReleaseMode)
  215.  
  216. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  217. [GIN] 2019/07/17 - 13:22:06 | 200 | 6.177909ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=2&sort_by=views&sort_dir=desc&start_date=2019-05-01
  218. [GIN] 2019/07/17 - 13:22:06 | 200 | 1.130134ms | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A2%2C%22PageSize%22%3A2%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22b%22%2C%22LastMetricIncrease%22%3A30%2C%22LatestMetricId%22%3A19%7D&page=2&page_size=2&sort_by=views&sort_dir=desc&start_date=2019-05-01
  219. [GIN] 2019/07/17 - 13:22:06 | 200 | 893.57µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A3%2C%22PageSize%22%3A2%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22c%22%2C%22LastMetricIncrease%22%3A15%2C%22LatestMetricId%22%3A19%7D&page=3&page_size=2&sort_by=views&sort_dir=desc&start_date=2019-05-01
  220. [GIN] 2019/07/17 - 13:22:06 | 200 | 865.814µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A4%2C%22PageSize%22%3A2%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22d%22%2C%22LastMetricIncrease%22%3A5%2C%22LatestMetricId%22%3A19%7D&page=4&page_size=2&sort_by=views&sort_dir=desc&start_date=2019-05-01
  221. --- FAIL: TestIntegrationGetVideoDistributions_PaginationIsStableWhenMetricsChange (0.04s)
  222. handler_test.go:228: failed save to db
  223. --- FAIL: TestIntegrationGetVideoDistributions_EngagementsSupportsAscendingSorting (0.08s)
  224. handler_test.go:286: failed save to db
  225. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  226.  
  227. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  228. - using env: export GIN_MODE=release
  229. - using code: gin.SetMode(gin.ReleaseMode)
  230.  
  231. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  232. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.199256ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=4&sort_by=engagements&sort_dir=desc&start_date=2019-05-10
  233. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  234.  
  235. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  236. - using env: export GIN_MODE=release
  237. - using code: gin.SetMode(gin.ReleaseMode)
  238.  
  239. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  240. [GIN] 2019/07/17 - 13:22:06 | 500 | 2.967553ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=2&sort_by=engagements&sort_dir=desc&start_date=2019-05-01
  241. --- FAIL: TestIntegrationGetVideoDistributions_EngagementsPaginatesResultCorrectly (0.09s)
  242. testing_helper.go:47: Request finished with unexpected status 500, body {"type":"","title":"","status":0,"detail":"failed to query analytics items: pq: relation \"facebook_analytic_data\" does not exist","instance":""}
  243. --- FAIL: TestIntegrationGetVideoDistributions_EngagementsPaginatesIsStableWhenMetricsChange (0.07s)
  244. handler_test.go:406: failed save to db
  245. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  246.  
  247. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  248. - using env: export GIN_MODE=release
  249. - using code: gin.SetMode(gin.ReleaseMode)
  250.  
  251. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  252. [GIN] 2019/07/17 - 13:22:06 | 200 | 3.285675ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=4&sort_by=avg_watch_time&sort_dir=asc&start_date=2019-05-01
  253. --- FAIL: TestIntegrationGetVideoDistributions_SupportsAvgWatchTimeDescendingSorting (0.07s)
  254. handler_test.go:487: failed save to db
  255. --- FAIL: TestIntegrationGetVideoDistributions_SupportsAvgWatchTimeDescendingSortingSingleValues (0.06s)
  256. handler_test.go:512: failed save to db
  257. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  258.  
  259. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  260. - using env: export GIN_MODE=release
  261. - using code: gin.SetMode(gin.ReleaseMode)
  262.  
  263. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  264. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.266606ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=2&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  265. [GIN] 2019/07/17 - 13:22:06 | 200 | 882.387µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A2%2C%22PageSize%22%3A2%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22c%22%2C%22LastMetricIncrease%22%3A750%2C%22LatestMetricId%22%3A14%7D&page=2&page_size=2&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  266. [GIN] 2019/07/17 - 13:22:06 | 200 | 687.223µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A3%2C%22PageSize%22%3A2%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22e%22%2C%22LastMetricIncrease%22%3A450%2C%22LatestMetricId%22%3A14%7D&page=3&page_size=2&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  267. [GIN] 2019/07/17 - 13:22:06 | 200 | 634.681µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A4%2C%22PageSize%22%3A2%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22d%22%2C%22LastMetricIncrease%22%3A200%2C%22LatestMetricId%22%3A14%7D&page=4&page_size=2&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  268. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  269.  
  270. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  271. - using env: export GIN_MODE=release
  272. - using code: gin.SetMode(gin.ReleaseMode)
  273.  
  274. [GIN-debug] GET /:promo_user_id/list --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetVideoDistributionsEndpoint.func1 (3 handlers)
  275. [GIN] 2019/07/17 - 13:22:06 | 200 | 1.975373ms | | GET /DUMMY_PROMO_USER_ID/list?page=1&page_size=1&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  276. [GIN] 2019/07/17 - 13:22:06 | 200 | 1.248569ms | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A2%2C%22PageSize%22%3A1%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22b%22%2C%22LastMetricIncrease%22%3A3300%2C%22LatestMetricId%22%3A10%7D&page=2&page_size=1&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  277. [GIN] 2019/07/17 - 13:22:06 | 200 | 876.144µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A3%2C%22PageSize%22%3A1%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22a%22%2C%22LastMetricIncrease%22%3A2100%2C%22LatestMetricId%22%3A10%7D&page=3&page_size=1&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  278. [GIN] 2019/07/17 - 13:22:06 | 200 | 908.748µs | | GET /DUMMY_PROMO_USER_ID/list?continue=%7B%22Version%22%3A%22v1%22%2C%22Page%22%3A4%2C%22PageSize%22%3A1%2C%22Ascending%22%3Afalse%2C%22StartDate%22%3A%222019-05-01%22%2C%22LastVideoDistributionId%22%3A%22c%22%2C%22LastMetricIncrease%22%3A1200%2C%22LatestMetricId%22%3A10%7D&page=4&page_size=1&sort_by=avg_watch_time&sort_dir=desc&start_date=2019-05-01
  279. FAIL
  280. FAIL github.com/EasyHi/go-analytics-dashboard/handler/v2/distributionlist 1.238s
  281. ok github.com/EasyHi/go-analytics-dashboard/handler/v2/distributionsummary (cached) [no tests to run]
  282. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  283.  
  284. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  285. - using env: export GIN_MODE=release
  286. - using code: gin.SetMode(gin.ReleaseMode)
  287.  
  288. [GIN-debug] GET /:promo_user_id/analytics/gender-age-distribution/ --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAggregatedGenderAgeDistributionEndpoint.func1 (3 handlers)
  289. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.883202ms | | GET /a/analytics/gender-age-distribution/?start_date=2019-05-18
  290. --- FAIL: TestIntegrationGetAggregatedGenderAgeDistribution_OneVideoDistributionIDOnePromoUserIDOneAgeBracketAndGenderAndOtherMetric (0.08s)
  291. handler_test.go:89: failed save to db
  292. --- FAIL: TestIntegrationGetAggregatedGenderAgeDistribution_OneVideoDistributionIDOnePromoUserIDSeveralAgeBracketsAndGender (0.09s)
  293. handler_test.go:132: failed save to db
  294. --- FAIL: TestIntegrationGetAggregatedGenderAgeDistribution_TwoVideoDistributionIDOnePromoUserIDSeveralAgeBracketsAndGender (0.06s)
  295. handler_test.go:194: failed save to db
  296. --- FAIL: TestIntegrationGetAggregatedGenderAgeDistribution_TwoVideoDistributionIDTwoPromoUserIDSeveralAgeBracketsAndGender (0.04s)
  297. handler_test.go:243: failed save to db
  298. FAIL
  299. FAIL github.com/EasyHi/go-analytics-dashboard/handler/v2/genderageanalytics 0.500s
  300. --- FAIL: TestIntegrationGetAnalyticsMetricValues_OneVideoDistributionIDOnePromoUserIDNoGaps (0.05s)
  301. handler_test.go:52: failed save to db
  302. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  303.  
  304. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  305. - using env: export GIN_MODE=release
  306. - using code: gin.SetMode(gin.ReleaseMode)
  307.  
  308. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  309. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.118402ms | | GET /a/analytics/timeline/clicks?start_date=2019-05-18
  310. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  311.  
  312. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  313. - using env: export GIN_MODE=release
  314. - using code: gin.SetMode(gin.ReleaseMode)
  315.  
  316. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  317. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.737328ms | | GET /a/analytics/timeline/clicks?start_date=2019-05-18
  318. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  319.  
  320. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  321. - using env: export GIN_MODE=release
  322. - using code: gin.SetMode(gin.ReleaseMode)
  323.  
  324. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  325. [GIN] 2019/07/17 - 13:22:06 | 200 | 3.158535ms | | GET /a/analytics/timeline/clicks?start_date=2019-05-18
  326. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  327.  
  328. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  329. - using env: export GIN_MODE=release
  330. - using code: gin.SetMode(gin.ReleaseMode)
  331.  
  332. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  333. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.19608ms | | GET /a/analytics/timeline/clicks?start_date=2019-05-18
  334. --- FAIL: TestIntegrationGetAnalyticsMetricValues_TwoVideoDistributionIDTwoPromoUserIDGapsBetweenAndNoDataOnTheEnd (0.07s)
  335. handler_test.go:254: failed save to db
  336. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  337.  
  338. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  339. - using env: export GIN_MODE=release
  340. - using code: gin.SetMode(gin.ReleaseMode)
  341.  
  342. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  343. [GIN] 2019/07/17 - 13:22:06 | 200 | 3.787723ms | | GET /a/analytics/timeline/clicks?start_date=2019-05-18
  344. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  345.  
  346. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  347. - using env: export GIN_MODE=release
  348. - using code: gin.SetMode(gin.ReleaseMode)
  349.  
  350. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  351. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.558741ms | | GET /a/analytics/timeline/clicks?start_date=2019-05-18
  352. --- FAIL: TestIntegrationGetAnalyticsMetricValues_EngagementsOneVideoDistributionIDOnePromoUserIDNoGaps (0.05s)
  353. handler_test.go:364: failed save to db
  354. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  355.  
  356. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  357. - using env: export GIN_MODE=release
  358. - using code: gin.SetMode(gin.ReleaseMode)
  359.  
  360. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  361. [GIN] 2019/07/17 - 13:22:06 | 200 | 2.762259ms | | GET /a/analytics/timeline/engagements?start_date=2019-05-18
  362. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  363.  
  364. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  365. - using env: export GIN_MODE=release
  366. - using code: gin.SetMode(gin.ReleaseMode)
  367.  
  368. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  369. [GIN] 2019/07/17 - 13:22:06 | 200 | 3.016071ms | | GET /a/analytics/timeline/engagements?start_date=2019-05-18
  370. [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
  371.  
  372. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  373. - using env: export GIN_MODE=release
  374. - using code: gin.SetMode(gin.ReleaseMode)
  375.  
  376. [GIN-debug] GET /:promo_user_id/analytics/timeline/:metric_name --> github.com/EasyHi/go-analytics-dashboard/api/v2/generated/restapi/operations.GetAnalyticsMetricValuesEndpoint.func1 (3 handlers)
  377. [GIN] 2019/07/17 - 13:22:07 | 200 | 3.769773ms | | GET /a/analytics/timeline/engagements?start_date=2019-05-18
  378. FAIL
  379. FAIL github.com/EasyHi/go-analytics-dashboard/handler/v2/metricsanalytics 0.726s
  380. ok github.com/EasyHi/go-analytics-dashboard/handler/v2/videoscountanalytics 0.030s
  381. ok github.com/EasyHi/go-analytics-dashboard/handler/v2/videoslengthanalytics 0.027s
  382. ok github.com/EasyHi/go-analytics-dashboard/handler/v2/videoswatchanalytics 0.115s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement