appmap 0.83.3 → 0.83.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (362) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +16 -0
  3. data/CHANGELOG.md +21 -0
  4. data/appmap.gemspec +2 -1
  5. data/lib/appmap/trace.rb +1 -1
  6. data/lib/appmap/version.rb +1 -1
  7. metadata +3 -357
  8. data/spec/class_map_spec.rb +0 -28
  9. data/spec/config_spec.rb +0 -155
  10. data/spec/depends/api_spec.rb +0 -196
  11. data/spec/depends/spec_helper.rb +0 -18
  12. data/spec/display_string_spec.rb +0 -40
  13. data/spec/fixtures/config/incomplete_config.yml +0 -1
  14. data/spec/fixtures/config/invalid_config.yml +0 -2
  15. data/spec/fixtures/config/invalid_yaml_config.yml +0 -3
  16. data/spec/fixtures/config/maximal_config.yml +0 -14
  17. data/spec/fixtures/config/missing_path_or_gem.yml +0 -3
  18. data/spec/fixtures/config/valid_config.yml +0 -3
  19. data/spec/fixtures/database.yml +0 -11
  20. data/spec/fixtures/depends/.gitignore +0 -2
  21. data/spec/fixtures/depends/app/controllers/api/api_keys_controller.rb +0 -2
  22. data/spec/fixtures/depends/app/controllers/organizations_controller.rb +0 -2
  23. data/spec/fixtures/depends/app/models/api_key.rb +0 -2
  24. data/spec/fixtures/depends/app/models/configuration.rb +0 -2
  25. data/spec/fixtures/depends/app/models/show.rb +0 -2
  26. data/spec/fixtures/depends/app/models/user.rb +0 -2
  27. data/spec/fixtures/depends/revoke_api_key.appmap.json +0 -901
  28. data/spec/fixtures/depends/spec/actual_rspec_test.rb +0 -7
  29. data/spec/fixtures/depends/spec/api_spec.rb +0 -2
  30. data/spec/fixtures/depends/spec/user_spec.rb +0 -2
  31. data/spec/fixtures/depends/test/actual_minitest_test.rb +0 -5
  32. data/spec/fixtures/depends/user_page_scenario.appmap.json +0 -1776
  33. data/spec/fixtures/hook/.gitignore +0 -2
  34. data/spec/fixtures/hook/app/controllers/api/api_keys_controller.rb +0 -1
  35. data/spec/fixtures/hook/app/controllers/organizations_controller.rb +0 -1
  36. data/spec/fixtures/hook/app/models/api_key.rb +0 -1
  37. data/spec/fixtures/hook/app/models/configuration.rb +0 -1
  38. data/spec/fixtures/hook/app/models/show.rb +0 -1
  39. data/spec/fixtures/hook/app/models/user.rb +0 -1
  40. data/spec/fixtures/hook/attr_accessor.rb +0 -5
  41. data/spec/fixtures/hook/compare.rb +0 -7
  42. data/spec/fixtures/hook/constructor.rb +0 -7
  43. data/spec/fixtures/hook/custom_instance_method.rb +0 -11
  44. data/spec/fixtures/hook/exception_method.rb +0 -61
  45. data/spec/fixtures/hook/exclude.rb +0 -15
  46. data/spec/fixtures/hook/instance_method.rb +0 -31
  47. data/spec/fixtures/hook/kwargs.rb +0 -11
  48. data/spec/fixtures/hook/labels.rb +0 -6
  49. data/spec/fixtures/hook/method_named_call.rb +0 -11
  50. data/spec/fixtures/hook/pkg_a/a.rb +0 -7
  51. data/spec/fixtures/hook/prepended_override.rb +0 -14
  52. data/spec/fixtures/hook/protected_method.rb +0 -29
  53. data/spec/fixtures/hook/report_parameters.rb +0 -8
  54. data/spec/fixtures/hook/revoke_api_key.appmap.json +0 -847
  55. data/spec/fixtures/hook/singleton_method.rb +0 -63
  56. data/spec/fixtures/hook/spec/api_spec.rb +0 -1
  57. data/spec/fixtures/hook/spec/user_spec.rb +0 -1
  58. data/spec/fixtures/hook/sub_packages.rb +0 -7
  59. data/spec/fixtures/hook/user_page_scenario.appmap.json +0 -1722
  60. data/spec/fixtures/rack_users_app/.dockerignore +0 -2
  61. data/spec/fixtures/rack_users_app/.gitignore +0 -2
  62. data/spec/fixtures/rack_users_app/Gemfile +0 -10
  63. data/spec/fixtures/rack_users_app/appmap.yml +0 -3
  64. data/spec/fixtures/rack_users_app/config.ru +0 -2
  65. data/spec/fixtures/rack_users_app/lib/app.rb +0 -36
  66. data/spec/fixtures/rails5_users_app/.dockerignore +0 -1
  67. data/spec/fixtures/rails5_users_app/.gitignore +0 -39
  68. data/spec/fixtures/rails5_users_app/.rspec +0 -1
  69. data/spec/fixtures/rails5_users_app/.ruby-version +0 -1
  70. data/spec/fixtures/rails5_users_app/Gemfile +0 -54
  71. data/spec/fixtures/rails5_users_app/Rakefile +0 -6
  72. data/spec/fixtures/rails5_users_app/app/controllers/api/users_controller.rb +0 -29
  73. data/spec/fixtures/rails5_users_app/app/controllers/application_controller.rb +0 -2
  74. data/spec/fixtures/rails5_users_app/app/controllers/concerns/.keep +0 -0
  75. data/spec/fixtures/rails5_users_app/app/controllers/health_controller.rb +0 -5
  76. data/spec/fixtures/rails5_users_app/app/controllers/users_controller.rb +0 -21
  77. data/spec/fixtures/rails5_users_app/app/models/activerecord/user.rb +0 -18
  78. data/spec/fixtures/rails5_users_app/app/models/concerns/.keep +0 -0
  79. data/spec/fixtures/rails5_users_app/app/models/sequel/user.rb +0 -25
  80. data/spec/fixtures/rails5_users_app/app/views/layouts/application.html.haml +0 -7
  81. data/spec/fixtures/rails5_users_app/app/views/users/index.html.haml +0 -7
  82. data/spec/fixtures/rails5_users_app/appmap.yml +0 -11
  83. data/spec/fixtures/rails5_users_app/bin/appmap +0 -29
  84. data/spec/fixtures/rails5_users_app/bin/byebug +0 -29
  85. data/spec/fixtures/rails5_users_app/bin/gli +0 -29
  86. data/spec/fixtures/rails5_users_app/bin/htmldiff +0 -29
  87. data/spec/fixtures/rails5_users_app/bin/ldiff +0 -29
  88. data/spec/fixtures/rails5_users_app/bin/nokogiri +0 -29
  89. data/spec/fixtures/rails5_users_app/bin/rackup +0 -29
  90. data/spec/fixtures/rails5_users_app/bin/rails +0 -4
  91. data/spec/fixtures/rails5_users_app/bin/rake +0 -29
  92. data/spec/fixtures/rails5_users_app/bin/rspec +0 -29
  93. data/spec/fixtures/rails5_users_app/bin/ruby-parse +0 -29
  94. data/spec/fixtures/rails5_users_app/bin/ruby-rewrite +0 -29
  95. data/spec/fixtures/rails5_users_app/bin/sequel +0 -29
  96. data/spec/fixtures/rails5_users_app/bin/setup +0 -25
  97. data/spec/fixtures/rails5_users_app/bin/sprockets +0 -29
  98. data/spec/fixtures/rails5_users_app/bin/thor +0 -29
  99. data/spec/fixtures/rails5_users_app/bin/update +0 -25
  100. data/spec/fixtures/rails5_users_app/config/application.rb +0 -45
  101. data/spec/fixtures/rails5_users_app/config/boot.rb +0 -3
  102. data/spec/fixtures/rails5_users_app/config/credentials.yml.enc +0 -1
  103. data/spec/fixtures/rails5_users_app/config/database.yml +0 -1
  104. data/spec/fixtures/rails5_users_app/config/environment.rb +0 -5
  105. data/spec/fixtures/rails5_users_app/config/environments/development.rb +0 -40
  106. data/spec/fixtures/rails5_users_app/config/environments/production.rb +0 -68
  107. data/spec/fixtures/rails5_users_app/config/environments/test.rb +0 -39
  108. data/spec/fixtures/rails5_users_app/config/initializers/application_controller_renderer.rb +0 -8
  109. data/spec/fixtures/rails5_users_app/config/initializers/backtrace_silencers.rb +0 -7
  110. data/spec/fixtures/rails5_users_app/config/initializers/cors.rb +0 -16
  111. data/spec/fixtures/rails5_users_app/config/initializers/filter_parameter_logging.rb +0 -4
  112. data/spec/fixtures/rails5_users_app/config/initializers/inflections.rb +0 -16
  113. data/spec/fixtures/rails5_users_app/config/initializers/mime_types.rb +0 -4
  114. data/spec/fixtures/rails5_users_app/config/initializers/wrap_parameters.rb +0 -9
  115. data/spec/fixtures/rails5_users_app/config/locales/en.yml +0 -33
  116. data/spec/fixtures/rails5_users_app/config/routes.rb +0 -11
  117. data/spec/fixtures/rails5_users_app/config.ru +0 -5
  118. data/spec/fixtures/rails5_users_app/db/migrate/20190728211408_create_users.rb +0 -9
  119. data/spec/fixtures/rails5_users_app/db/schema.rb +0 -23
  120. data/spec/fixtures/rails5_users_app/features/api_users.feature +0 -13
  121. data/spec/fixtures/rails5_users_app/features/support/env.rb +0 -4
  122. data/spec/fixtures/rails5_users_app/features/support/hooks.rb +0 -11
  123. data/spec/fixtures/rails5_users_app/features/support/steps.rb +0 -18
  124. data/spec/fixtures/rails5_users_app/lib/tasks/.keep +0 -0
  125. data/spec/fixtures/rails5_users_app/log/.keep +0 -0
  126. data/spec/fixtures/rails5_users_app/public/robots.txt +0 -1
  127. data/spec/fixtures/rails5_users_app/spec/controllers/users_controller_api_spec.rb +0 -42
  128. data/spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb +0 -27
  129. data/spec/fixtures/rails5_users_app/spec/models/user_spec.rb +0 -29
  130. data/spec/fixtures/rails5_users_app/spec/rails_helper.rb +0 -57
  131. data/spec/fixtures/rails5_users_app/spec/spec_helper.rb +0 -96
  132. data/spec/fixtures/rails5_users_app/users_app/.gitignore +0 -20
  133. data/spec/fixtures/rails6_users_app/.dockerignore +0 -1
  134. data/spec/fixtures/rails6_users_app/.gitignore +0 -39
  135. data/spec/fixtures/rails6_users_app/.rspec +0 -1
  136. data/spec/fixtures/rails6_users_app/Gemfile +0 -28
  137. data/spec/fixtures/rails6_users_app/Rakefile +0 -6
  138. data/spec/fixtures/rails6_users_app/app/controllers/api/users_controller.rb +0 -28
  139. data/spec/fixtures/rails6_users_app/app/controllers/application_controller.rb +0 -2
  140. data/spec/fixtures/rails6_users_app/app/controllers/concerns/.keep +0 -0
  141. data/spec/fixtures/rails6_users_app/app/controllers/health_controller.rb +0 -5
  142. data/spec/fixtures/rails6_users_app/app/controllers/users_controller.rb +0 -21
  143. data/spec/fixtures/rails6_users_app/app/models/activerecord/user.rb +0 -18
  144. data/spec/fixtures/rails6_users_app/app/models/concerns/.keep +0 -0
  145. data/spec/fixtures/rails6_users_app/app/models/sequel/user.rb +0 -25
  146. data/spec/fixtures/rails6_users_app/app/views/layouts/application.html.haml +0 -7
  147. data/spec/fixtures/rails6_users_app/app/views/users/index.html.haml +0 -7
  148. data/spec/fixtures/rails6_users_app/appmap.yml +0 -14
  149. data/spec/fixtures/rails6_users_app/bin/appmap +0 -29
  150. data/spec/fixtures/rails6_users_app/bin/byebug +0 -29
  151. data/spec/fixtures/rails6_users_app/bin/gli +0 -29
  152. data/spec/fixtures/rails6_users_app/bin/htmldiff +0 -29
  153. data/spec/fixtures/rails6_users_app/bin/ldiff +0 -29
  154. data/spec/fixtures/rails6_users_app/bin/nokogiri +0 -29
  155. data/spec/fixtures/rails6_users_app/bin/rackup +0 -29
  156. data/spec/fixtures/rails6_users_app/bin/rails +0 -4
  157. data/spec/fixtures/rails6_users_app/bin/rake +0 -29
  158. data/spec/fixtures/rails6_users_app/bin/rspec +0 -29
  159. data/spec/fixtures/rails6_users_app/bin/ruby-parse +0 -29
  160. data/spec/fixtures/rails6_users_app/bin/ruby-rewrite +0 -29
  161. data/spec/fixtures/rails6_users_app/bin/sequel +0 -29
  162. data/spec/fixtures/rails6_users_app/bin/setup +0 -25
  163. data/spec/fixtures/rails6_users_app/bin/sprockets +0 -29
  164. data/spec/fixtures/rails6_users_app/bin/thor +0 -29
  165. data/spec/fixtures/rails6_users_app/bin/update +0 -25
  166. data/spec/fixtures/rails6_users_app/config/application.rb +0 -45
  167. data/spec/fixtures/rails6_users_app/config/boot.rb +0 -3
  168. data/spec/fixtures/rails6_users_app/config/credentials.yml.enc +0 -1
  169. data/spec/fixtures/rails6_users_app/config/database.yml +0 -1
  170. data/spec/fixtures/rails6_users_app/config/environment.rb +0 -5
  171. data/spec/fixtures/rails6_users_app/config/environments/development.rb +0 -40
  172. data/spec/fixtures/rails6_users_app/config/environments/production.rb +0 -68
  173. data/spec/fixtures/rails6_users_app/config/environments/test.rb +0 -39
  174. data/spec/fixtures/rails6_users_app/config/initializers/application_controller_renderer.rb +0 -8
  175. data/spec/fixtures/rails6_users_app/config/initializers/backtrace_silencers.rb +0 -7
  176. data/spec/fixtures/rails6_users_app/config/initializers/cors.rb +0 -16
  177. data/spec/fixtures/rails6_users_app/config/initializers/filter_parameter_logging.rb +0 -4
  178. data/spec/fixtures/rails6_users_app/config/initializers/inflections.rb +0 -16
  179. data/spec/fixtures/rails6_users_app/config/initializers/mime_types.rb +0 -4
  180. data/spec/fixtures/rails6_users_app/config/initializers/wrap_parameters.rb +0 -9
  181. data/spec/fixtures/rails6_users_app/config/locales/en.yml +0 -33
  182. data/spec/fixtures/rails6_users_app/config/routes.rb +0 -11
  183. data/spec/fixtures/rails6_users_app/config.ru +0 -5
  184. data/spec/fixtures/rails6_users_app/db/migrate/20190728211408_create_users.rb +0 -9
  185. data/spec/fixtures/rails6_users_app/db/schema.rb +0 -23
  186. data/spec/fixtures/rails6_users_app/features/api_users.feature +0 -13
  187. data/spec/fixtures/rails6_users_app/features/support/env.rb +0 -4
  188. data/spec/fixtures/rails6_users_app/features/support/hooks.rb +0 -11
  189. data/spec/fixtures/rails6_users_app/features/support/steps.rb +0 -18
  190. data/spec/fixtures/rails6_users_app/lib/tasks/.keep +0 -0
  191. data/spec/fixtures/rails6_users_app/lib/tasks/appmap.rake +0 -23
  192. data/spec/fixtures/rails6_users_app/log/.keep +0 -0
  193. data/spec/fixtures/rails6_users_app/package.json +0 -8
  194. data/spec/fixtures/rails6_users_app/public/robots.txt +0 -1
  195. data/spec/fixtures/rails6_users_app/spec/controllers/users_controller_api_spec.rb +0 -42
  196. data/spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb +0 -27
  197. data/spec/fixtures/rails6_users_app/spec/models/user_spec.rb +0 -29
  198. data/spec/fixtures/rails6_users_app/spec/rails_helper.rb +0 -57
  199. data/spec/fixtures/rails6_users_app/spec/spec_helper.rb +0 -96
  200. data/spec/fixtures/rails6_users_app/test/controllers/functional_calc_test.rb +0 -10
  201. data/spec/fixtures/rails6_users_app/test/integration/integration_calc_test.rb +0 -12
  202. data/spec/fixtures/rails6_users_app/users_app/.gitignore +0 -20
  203. data/spec/fixtures/rails6_users_app/yarn.lock +0 -2020
  204. data/spec/fixtures/rails7_users_app/.dockerignore +0 -1
  205. data/spec/fixtures/rails7_users_app/.gitattributes +0 -7
  206. data/spec/fixtures/rails7_users_app/.gitignore +0 -31
  207. data/spec/fixtures/rails7_users_app/.rspec +0 -1
  208. data/spec/fixtures/rails7_users_app/Gemfile +0 -75
  209. data/spec/fixtures/rails7_users_app/README.md +0 -24
  210. data/spec/fixtures/rails7_users_app/Rakefile +0 -6
  211. data/spec/fixtures/rails7_users_app/app/assets/config/manifest.js +0 -4
  212. data/spec/fixtures/rails7_users_app/app/assets/images/.keep +0 -0
  213. data/spec/fixtures/rails7_users_app/app/assets/stylesheets/application.css +0 -15
  214. data/spec/fixtures/rails7_users_app/app/channels/application_cable/channel.rb +0 -4
  215. data/spec/fixtures/rails7_users_app/app/channels/application_cable/connection.rb +0 -4
  216. data/spec/fixtures/rails7_users_app/app/controllers/application_controller.rb +0 -2
  217. data/spec/fixtures/rails7_users_app/app/controllers/concerns/.keep +0 -0
  218. data/spec/fixtures/rails7_users_app/app/helpers/application_helper.rb +0 -2
  219. data/spec/fixtures/rails7_users_app/app/javascript/application.js +0 -3
  220. data/spec/fixtures/rails7_users_app/app/javascript/controllers/application.js +0 -9
  221. data/spec/fixtures/rails7_users_app/app/javascript/controllers/hello_controller.js +0 -7
  222. data/spec/fixtures/rails7_users_app/app/javascript/controllers/index.js +0 -11
  223. data/spec/fixtures/rails7_users_app/app/jobs/application_job.rb +0 -7
  224. data/spec/fixtures/rails7_users_app/app/mailers/application_mailer.rb +0 -4
  225. data/spec/fixtures/rails7_users_app/app/models/application_record.rb +0 -3
  226. data/spec/fixtures/rails7_users_app/app/models/concerns/.keep +0 -0
  227. data/spec/fixtures/rails7_users_app/app/models/instance.rb +0 -7
  228. data/spec/fixtures/rails7_users_app/app/models/instructor.rb +0 -7
  229. data/spec/fixtures/rails7_users_app/app/views/layouts/application.html.erb +0 -16
  230. data/spec/fixtures/rails7_users_app/app/views/layouts/mailer.html.erb +0 -13
  231. data/spec/fixtures/rails7_users_app/app/views/layouts/mailer.text.erb +0 -1
  232. data/spec/fixtures/rails7_users_app/appmap.yml +0 -3
  233. data/spec/fixtures/rails7_users_app/bin/bundle +0 -114
  234. data/spec/fixtures/rails7_users_app/bin/importmap +0 -4
  235. data/spec/fixtures/rails7_users_app/bin/rails +0 -4
  236. data/spec/fixtures/rails7_users_app/bin/rake +0 -4
  237. data/spec/fixtures/rails7_users_app/bin/setup +0 -33
  238. data/spec/fixtures/rails7_users_app/config/application.rb +0 -22
  239. data/spec/fixtures/rails7_users_app/config/boot.rb +0 -4
  240. data/spec/fixtures/rails7_users_app/config/cable.yml +0 -10
  241. data/spec/fixtures/rails7_users_app/config/credentials.yml.enc +0 -1
  242. data/spec/fixtures/rails7_users_app/config/database.yml +0 -1
  243. data/spec/fixtures/rails7_users_app/config/environment.rb +0 -5
  244. data/spec/fixtures/rails7_users_app/config/environments/development.rb +0 -70
  245. data/spec/fixtures/rails7_users_app/config/environments/production.rb +0 -93
  246. data/spec/fixtures/rails7_users_app/config/environments/test.rb +0 -60
  247. data/spec/fixtures/rails7_users_app/config/importmap.rb +0 -7
  248. data/spec/fixtures/rails7_users_app/config/initializers/assets.rb +0 -12
  249. data/spec/fixtures/rails7_users_app/config/initializers/content_security_policy.rb +0 -26
  250. data/spec/fixtures/rails7_users_app/config/initializers/filter_parameter_logging.rb +0 -8
  251. data/spec/fixtures/rails7_users_app/config/initializers/inflections.rb +0 -16
  252. data/spec/fixtures/rails7_users_app/config/initializers/permissions_policy.rb +0 -11
  253. data/spec/fixtures/rails7_users_app/config/locales/en.yml +0 -33
  254. data/spec/fixtures/rails7_users_app/config/puma.rb +0 -43
  255. data/spec/fixtures/rails7_users_app/config/routes.rb +0 -6
  256. data/spec/fixtures/rails7_users_app/config/storage.yml +0 -34
  257. data/spec/fixtures/rails7_users_app/config.ru +0 -6
  258. data/spec/fixtures/rails7_users_app/db/migrate/20220328093141_create_instances.rb +0 -8
  259. data/spec/fixtures/rails7_users_app/db/migrate/20220328093154_create_instructors.rb +0 -8
  260. data/spec/fixtures/rails7_users_app/db/schema.rb +0 -27
  261. data/spec/fixtures/rails7_users_app/db/seeds.rb +0 -7
  262. data/spec/fixtures/rails7_users_app/lib/assets/.keep +0 -0
  263. data/spec/fixtures/rails7_users_app/lib/tasks/.keep +0 -0
  264. data/spec/fixtures/rails7_users_app/log/.keep +0 -0
  265. data/spec/fixtures/rails7_users_app/public/404.html +0 -67
  266. data/spec/fixtures/rails7_users_app/public/422.html +0 -67
  267. data/spec/fixtures/rails7_users_app/public/500.html +0 -66
  268. data/spec/fixtures/rails7_users_app/public/apple-touch-icon-precomposed.png +0 -0
  269. data/spec/fixtures/rails7_users_app/public/apple-touch-icon.png +0 -0
  270. data/spec/fixtures/rails7_users_app/public/favicon.ico +0 -0
  271. data/spec/fixtures/rails7_users_app/public/robots.txt +0 -1
  272. data/spec/fixtures/rails7_users_app/storage/.keep +0 -0
  273. data/spec/fixtures/rails7_users_app/test/application_system_test_case.rb +0 -5
  274. data/spec/fixtures/rails7_users_app/test/channels/application_cable/connection_test.rb +0 -11
  275. data/spec/fixtures/rails7_users_app/test/controllers/.keep +0 -0
  276. data/spec/fixtures/rails7_users_app/test/fixtures/files/.keep +0 -0
  277. data/spec/fixtures/rails7_users_app/test/fixtures/instances.yml +0 -11
  278. data/spec/fixtures/rails7_users_app/test/fixtures/instructors.yml +0 -11
  279. data/spec/fixtures/rails7_users_app/test/helpers/.keep +0 -0
  280. data/spec/fixtures/rails7_users_app/test/integration/.keep +0 -0
  281. data/spec/fixtures/rails7_users_app/test/mailers/.keep +0 -0
  282. data/spec/fixtures/rails7_users_app/test/models/.keep +0 -0
  283. data/spec/fixtures/rails7_users_app/test/models/instance_test.rb +0 -6
  284. data/spec/fixtures/rails7_users_app/test/models/instructor_test.rb +0 -7
  285. data/spec/fixtures/rails7_users_app/test/system/.keep +0 -0
  286. data/spec/fixtures/rails7_users_app/test/test_helper.rb +0 -13
  287. data/spec/handler/class_with_eval.rb +0 -13
  288. data/spec/handler/eval_spec.rb +0 -73
  289. data/spec/hook_spec.rb +0 -1216
  290. data/spec/open_spec.rb +0 -19
  291. data/spec/rails_recording_spec.rb +0 -281
  292. data/spec/rails_spec_helper.rb +0 -107
  293. data/spec/rails_test_spec.rb +0 -35
  294. data/spec/railtie_spec.rb +0 -25
  295. data/spec/record_net_http_spec.rb +0 -161
  296. data/spec/record_sql_rails_pg_spec.rb +0 -59
  297. data/spec/remote_recording_spec.rb +0 -108
  298. data/spec/service/config_analyzer_spec.rb +0 -102
  299. data/spec/service/integration_test_path_finder_spec.rb +0 -24
  300. data/spec/service/validator/violation_spec.rb +0 -68
  301. data/spec/spec_helper.rb +0 -37
  302. data/spec/swagger/swagger_spec.rb +0 -85
  303. data/spec/util_spec.rb +0 -38
  304. data/test/agent_setup_init_test.rb +0 -39
  305. data/test/agent_setup_status_test.rb +0 -84
  306. data/test/agent_setup_validate_test.rb +0 -102
  307. data/test/bundle_vendor_test.rb +0 -35
  308. data/test/cucumber_test.rb +0 -72
  309. data/test/expectations/openssl_test_key_sign1.json +0 -53
  310. data/test/expectations/openssl_test_key_sign2-3.1.json +0 -53
  311. data/test/expectations/openssl_test_key_sign2.json +0 -58
  312. data/test/fixtures/bundle_vendor_app/Gemfile +0 -8
  313. data/test/fixtures/bundle_vendor_app/appmap.yml +0 -4
  314. data/test/fixtures/bundle_vendor_app/cli.rb +0 -54
  315. data/test/fixtures/cli_record_test/appmap.yml +0 -3
  316. data/test/fixtures/cli_record_test/lib/cli_record_test/main.rb +0 -9
  317. data/test/fixtures/cucumber4_recorder/Gemfile +0 -5
  318. data/test/fixtures/cucumber4_recorder/appmap.yml +0 -3
  319. data/test/fixtures/cucumber4_recorder/features/say_hello.feature +0 -5
  320. data/test/fixtures/cucumber4_recorder/features/support/env.rb +0 -5
  321. data/test/fixtures/cucumber4_recorder/features/support/hooks.rb +0 -11
  322. data/test/fixtures/cucumber4_recorder/features/support/steps.rb +0 -9
  323. data/test/fixtures/cucumber4_recorder/lib/hello.rb +0 -7
  324. data/test/fixtures/cucumber_recorder/Gemfile +0 -5
  325. data/test/fixtures/cucumber_recorder/appmap.yml +0 -3
  326. data/test/fixtures/cucumber_recorder/features/say_hello.feature +0 -5
  327. data/test/fixtures/cucumber_recorder/features/support/env.rb +0 -5
  328. data/test/fixtures/cucumber_recorder/features/support/hooks.rb +0 -11
  329. data/test/fixtures/cucumber_recorder/features/support/steps.rb +0 -9
  330. data/test/fixtures/cucumber_recorder/lib/hello.rb +0 -7
  331. data/test/fixtures/gem_test/Gemfile +0 -7
  332. data/test/fixtures/gem_test/appmap.yml +0 -3
  333. data/test/fixtures/gem_test/test/parser_test.rb +0 -12
  334. data/test/fixtures/minitest_recorder/Gemfile +0 -5
  335. data/test/fixtures/minitest_recorder/appmap.yml +0 -3
  336. data/test/fixtures/minitest_recorder/lib/hello.rb +0 -5
  337. data/test/fixtures/minitest_recorder/test/hello_test.rb +0 -12
  338. data/test/fixtures/mocha_mock_app/Gemfile +0 -5
  339. data/test/fixtures/mocha_mock_app/appmap.yml +0 -5
  340. data/test/fixtures/mocha_mock_app/lib/sheep.rb +0 -5
  341. data/test/fixtures/mocha_mock_app/test/sheep_test.rb +0 -18
  342. data/test/fixtures/openssl_recorder/Gemfile +0 -3
  343. data/test/fixtures/openssl_recorder/appmap.yml +0 -3
  344. data/test/fixtures/openssl_recorder/lib/openssl_cert_sign.rb +0 -94
  345. data/test/fixtures/openssl_recorder/lib/openssl_encrypt.rb +0 -34
  346. data/test/fixtures/openssl_recorder/lib/openssl_key_sign.rb +0 -28
  347. data/test/fixtures/process_recorder/appmap.yml +0 -3
  348. data/test/fixtures/process_recorder/hello.rb +0 -9
  349. data/test/fixtures/rspec_recorder/Gemfile +0 -5
  350. data/test/fixtures/rspec_recorder/appmap.yml +0 -3
  351. data/test/fixtures/rspec_recorder/lib/hello.rb +0 -5
  352. data/test/fixtures/rspec_recorder/spec/decorated_hello_spec.rb +0 -21
  353. data/test/fixtures/rspec_recorder/spec/labeled_hello_spec.rb +0 -9
  354. data/test/fixtures/rspec_recorder/spec/plain_hello_spec.rb +0 -9
  355. data/test/gem_test.rb +0 -35
  356. data/test/inspect_cli_test.rb +0 -12
  357. data/test/minitest_test.rb +0 -37
  358. data/test/mock_compatibility_test.rb +0 -45
  359. data/test/openssl_test.rb +0 -54
  360. data/test/record_process_test.rb +0 -35
  361. data/test/rspec_test.rb +0 -63
  362. data/test/test_helper.rb +0 -8
@@ -1,847 +0,0 @@
1
- {
2
- "version": "1.3",
3
- "metadata": {
4
- "app": "appland/AppLand",
5
- "language": {
6
- "name": "ruby",
7
- "engine": "ruby",
8
- "version": "2.6.6"
9
- },
10
- "client": {
11
- "name": "appmap",
12
- "url": "https://github.com/applandinc/appmap-ruby",
13
- "version": "0.38.1"
14
- },
15
- "frameworks": [
16
- {
17
- "name": "rails",
18
- "version": "5.2.4.2"
19
- },
20
- {
21
- "name": "rspec",
22
- "version": "3.9.1"
23
- }
24
- ],
25
- "git": {
26
- "repository": "git@github.com:applandinc/appland.git",
27
- "branch": "feature/show-sql-in-source-code-tab",
28
- "commit": "d52bd55d5a08f0e9b27760780bf2737829f5f25f",
29
- "status_code": [
30
- "M Gemfile.lock"
31
- ],
32
- "git_last_annotated_tag": null,
33
- "git_last_tag": "v0.17.1",
34
- "git_commits_since_last_annotated_tag": null,
35
- "git_commits_since_last_tag": 0
36
- },
37
- "name": "API::APIKeysController revoke an existing api key",
38
- "feature": "API::APIKeysController revoke",
39
- "feature_group": "API API keys",
40
- "labels": [
41
- "api key",
42
- "api"
43
- ],
44
- "recorder": {
45
- "name": "rspec"
46
- },
47
- "source_location": "spec/fixtures/spec/api_spec.rb",
48
- "test_status": "succeeded",
49
- "fingerprints": [
50
- {
51
- "appmap_digest": "7fecdd763d47626364364da02387f1fcbfe805123e806f08bacde96636cfc91d",
52
- "canonicalization_algorithm": "info_v1",
53
- "digest": "76ef6fcddad314962606f8161f73901beb9d6fa06468aee3a96eabb2b65132cb",
54
- "fingerprint_algorithm": "sha256"
55
- },
56
- {
57
- "appmap_digest": "7fecdd763d47626364364da02387f1fcbfe805123e806f08bacde96636cfc91d",
58
- "canonicalization_algorithm": "trace_v1",
59
- "digest": "18301be60081a8dbf2574f4226c095b395dd4c060e69da94c5ac20d2f002b23a",
60
- "fingerprint_algorithm": "sha256"
61
- },
62
- {
63
- "appmap_digest": "7fecdd763d47626364364da02387f1fcbfe805123e806f08bacde96636cfc91d",
64
- "canonicalization_algorithm": "update_v1",
65
- "digest": "9be5419782f4189c7fba3eb4eff7a4027bc6655b9ac43c45544ede554c7c5c82",
66
- "fingerprint_algorithm": "sha256"
67
- }
68
- ]
69
- },
70
- "classMap": [
71
- {
72
- "name": "app/models",
73
- "type": "package",
74
- "children": [
75
- {
76
- "name": "ApiKey",
77
- "type": "class",
78
- "children": [
79
- {
80
- "name": "issue",
81
- "type": "function",
82
- "location": "app/models/api_key.rb:28",
83
- "static": true,
84
- "labels": [
85
- "security"
86
- ]
87
- },
88
- {
89
- "name": "encode",
90
- "type": "function",
91
- "location": "app/models/api_key.rb:20",
92
- "static": true
93
- },
94
- {
95
- "name": "authenticate",
96
- "type": "function",
97
- "location": "app/models/api_key.rb:51",
98
- "static": true,
99
- "labels": [
100
- "security",
101
- "provider.authenticate"
102
- ]
103
- },
104
- {
105
- "name": "decode",
106
- "type": "function",
107
- "location": "app/models/api_key.rb:24",
108
- "static": true
109
- },
110
- {
111
- "name": "touch",
112
- "type": "function",
113
- "location": "app/models/api_key.rb:11",
114
- "static": true
115
- },
116
- {
117
- "name": "revoke",
118
- "type": "function",
119
- "location": "app/models/api_key.rb:40",
120
- "static": true,
121
- "labels": [
122
- "security"
123
- ]
124
- }
125
- ]
126
- }
127
- ]
128
- },
129
- {
130
- "name": "app/controllers",
131
- "type": "package",
132
- "children": [
133
- {
134
- "name": "API",
135
- "type": "class",
136
- "children": [
137
- {
138
- "name": "APIKeysController",
139
- "type": "class",
140
- "children": [
141
- {
142
- "name": "destroy",
143
- "type": "function",
144
- "location": "app/controllers/api/api_keys_controller.rb:15",
145
- "static": false
146
- }
147
- ]
148
- }
149
- ]
150
- }
151
- ]
152
- },
153
- {
154
- "name": "json",
155
- "type": "package",
156
- "children": [
157
- {
158
- "name": "JSON",
159
- "type": "class",
160
- "children": [
161
- {
162
- "name": "Ext",
163
- "type": "class",
164
- "children": [
165
- {
166
- "name": "Generator",
167
- "type": "class",
168
- "children": [
169
- {
170
- "name": "State",
171
- "type": "class",
172
- "children": [
173
- {
174
- "name": "generate",
175
- "type": "function",
176
- "location": "JSON::Ext::Generator::State#generate",
177
- "static": false,
178
- "labels": [
179
- "serialization",
180
- "json"
181
- ]
182
- }
183
- ]
184
- }
185
- ]
186
- }
187
- ]
188
- }
189
- ]
190
- }
191
- ]
192
- }
193
- ],
194
- "events": [
195
- {
196
- "id": 1,
197
- "event": "call",
198
- "thread_id": 70143606759380,
199
- "defined_class": "ApiKey",
200
- "method_id": "issue",
201
- "path": "app/models/api_key.rb",
202
- "lineno": 28,
203
- "static": true,
204
- "parameters": [
205
- {
206
- "name": "login",
207
- "class": "String",
208
- "object_id": 70143707320560,
209
- "value": "admin",
210
- "kind": "req"
211
- },
212
- {
213
- "name": "description",
214
- "class": "String",
215
- "object_id": 70143709034840,
216
- "value": "example api key",
217
- "kind": "key"
218
- },
219
- {
220
- "name": "encode",
221
- "class": "NilClass",
222
- "object_id": 8,
223
- "value": null,
224
- "kind": "key"
225
- }
226
- ],
227
- "receiver": {
228
- "class": "Class",
229
- "object_id": 70143710327480,
230
- "value": "ApiKey"
231
- }
232
- },
233
- {
234
- "id": 2,
235
- "event": "call",
236
- "thread_id": 70143606759380,
237
- "sql_query": {
238
- "sql": "INSERT INTO \"api_keys\" (\"login\", \"description\") VALUES ('admin', 'example api key') RETURNING *",
239
- "database_type": "postgres",
240
- "server_version": 120003
241
- }
242
- },
243
- {
244
- "id": 3,
245
- "event": "return",
246
- "thread_id": 70143606759380,
247
- "parent_id": 2,
248
- "elapsed": 0.001786
249
- },
250
- {
251
- "id": 4,
252
- "event": "call",
253
- "thread_id": 70143606759380,
254
- "defined_class": "ApiKey",
255
- "method_id": "encode",
256
- "path": "app/models/api_key.rb",
257
- "lineno": 20,
258
- "static": true,
259
- "parameters": [
260
- {
261
- "name": "api_key",
262
- "class": "DAO::ApiKey",
263
- "object_id": 70143624613220,
264
- "value": "#<DAO::ApiKey:0x00007f972ba81ac8>",
265
- "kind": "req"
266
- }
267
- ],
268
- "receiver": {
269
- "class": "Class",
270
- "object_id": 70143710327480,
271
- "value": "ApiKey"
272
- }
273
- },
274
- {
275
- "id": 5,
276
- "event": "return",
277
- "thread_id": 70143606759380,
278
- "parent_id": 4,
279
- "elapsed": 0.000024,
280
- "return_value": {
281
- "class": "String",
282
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
283
- "object_id": 70143608697140
284
- }
285
- },
286
- {
287
- "id": 6,
288
- "event": "return",
289
- "thread_id": 70143606759380,
290
- "parent_id": 1,
291
- "elapsed": 0.038045,
292
- "return_value": {
293
- "class": "String",
294
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
295
- "object_id": 70143608697140
296
- }
297
- },
298
- {
299
- "id": 7,
300
- "event": "call",
301
- "thread_id": 70143606759380,
302
- "http_server_request": {
303
- "request_method": "DELETE",
304
- "path_info": "/api/api_keys"
305
- },
306
- "message": [
307
- {
308
- "name": "controller",
309
- "class": "String",
310
- "value": "api/api_keys",
311
- "object_id": 70143625900420
312
- },
313
- {
314
- "name": "action",
315
- "class": "String",
316
- "value": "destroy",
317
- "object_id": 70143625903660
318
- }
319
- ]
320
- },
321
- {
322
- "id": 8,
323
- "event": "call",
324
- "thread_id": 70143606759380,
325
- "defined_class": "ApiKey",
326
- "method_id": "authenticate",
327
- "path": "app/models/api_key.rb",
328
- "lineno": 51,
329
- "static": true,
330
- "parameters": [
331
- {
332
- "name": "api_key",
333
- "class": "String",
334
- "object_id": 70143626063440,
335
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
336
- "kind": "req"
337
- }
338
- ],
339
- "receiver": {
340
- "class": "Class",
341
- "object_id": 70143710327480,
342
- "value": "ApiKey"
343
- }
344
- },
345
- {
346
- "id": 9,
347
- "event": "call",
348
- "thread_id": 70143606759380,
349
- "defined_class": "ApiKey",
350
- "method_id": "decode",
351
- "path": "app/models/api_key.rb",
352
- "lineno": 24,
353
- "static": true,
354
- "parameters": [
355
- {
356
- "name": "api_key",
357
- "class": "String",
358
- "object_id": 70143626063440,
359
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
360
- "kind": "req"
361
- }
362
- ],
363
- "receiver": {
364
- "class": "Class",
365
- "object_id": 70143710327480,
366
- "value": "ApiKey"
367
- }
368
- },
369
- {
370
- "id": 10,
371
- "event": "return",
372
- "thread_id": 70143606759380,
373
- "parent_id": 9,
374
- "elapsed": 0.000019,
375
- "return_value": {
376
- "class": "Array",
377
- "value": "[\"admin\", \"e57a8310-e718-4914-b3fa-b11d4a0687ee\"]",
378
- "object_id": 70143626079020
379
- }
380
- },
381
- {
382
- "id": 11,
383
- "event": "call",
384
- "thread_id": 70143606759380,
385
- "sql_query": {
386
- "sql": "SELECT * FROM \"api_keys\" WHERE (\"login\" = 'admin')",
387
- "database_type": "postgres",
388
- "server_version": 120003
389
- }
390
- },
391
- {
392
- "id": 12,
393
- "event": "return",
394
- "thread_id": 70143606759380,
395
- "parent_id": 11,
396
- "elapsed": 0.001087
397
- },
398
- {
399
- "id": 13,
400
- "event": "call",
401
- "thread_id": 70143606759380,
402
- "defined_class": "ApiKey",
403
- "method_id": "touch",
404
- "path": "app/models/api_key.rb",
405
- "lineno": 11,
406
- "static": true,
407
- "parameters": [
408
- {
409
- "name": "api_key",
410
- "class": "DAO::ApiKey",
411
- "object_id": 70143621442700,
412
- "value": "#<DAO::ApiKey:0x00007f972b475918>",
413
- "kind": "req"
414
- }
415
- ],
416
- "receiver": {
417
- "class": "Class",
418
- "object_id": 70143710327480,
419
- "value": "ApiKey"
420
- }
421
- },
422
- {
423
- "id": 14,
424
- "event": "call",
425
- "thread_id": 70143606759380,
426
- "sql_query": {
427
- "sql": "UPDATE \"api_keys\" SET \"last_used\" = '2021-01-12 18:48:00.281150+0000' WHERE (\"id\" = 9)",
428
- "database_type": "postgres",
429
- "server_version": 120003
430
- }
431
- },
432
- {
433
- "id": 15,
434
- "event": "return",
435
- "thread_id": 70143606759380,
436
- "parent_id": 14,
437
- "elapsed": 0.000805
438
- },
439
- {
440
- "id": 16,
441
- "event": "return",
442
- "thread_id": 70143606759380,
443
- "parent_id": 13,
444
- "elapsed": 0.005023,
445
- "return_value": {
446
- "class": "DAO::ApiKey",
447
- "value": "#<DAO::ApiKey:0x00007f972b475918>",
448
- "object_id": 70143621442700
449
- }
450
- },
451
- {
452
- "id": 17,
453
- "event": "call",
454
- "thread_id": 70143606759380,
455
- "sql_query": {
456
- "sql": "SELECT * FROM \"users\" WHERE (\"users\".\"login\" = 'admin') LIMIT 1",
457
- "database_type": "postgres",
458
- "server_version": 120003
459
- }
460
- },
461
- {
462
- "id": 18,
463
- "event": "return",
464
- "thread_id": 70143606759380,
465
- "parent_id": 17,
466
- "elapsed": 0.00103
467
- },
468
- {
469
- "id": 19,
470
- "event": "call",
471
- "thread_id": 70143606759380,
472
- "sql_query": {
473
- "sql": "SELECT \"pg_type\".\"oid\", \"typrelid\", \"typarray\" FROM \"pg_type\" WHERE ((\"typtype\" = 'c') AND (\"typname\" = 'q_class')) LIMIT 1",
474
- "database_type": "postgres",
475
- "server_version": 120003
476
- }
477
- },
478
- {
479
- "id": 20,
480
- "event": "return",
481
- "thread_id": 70143606759380,
482
- "parent_id": 19,
483
- "elapsed": 0.001234
484
- },
485
- {
486
- "id": 21,
487
- "event": "call",
488
- "thread_id": 70143606759380,
489
- "sql_query": {
490
- "sql": "SELECT \"attname\", (CASE \"pg_type\".\"typbasetype\" WHEN 0 THEN \"atttypid\" ELSE \"pg_type\".\"typbasetype\" END) AS \"atttypid\" FROM \"pg_attribute\" INNER JOIN \"pg_type\" ON (\"pg_type\".\"oid\" = \"pg_attribute\".\"atttypid\") WHERE ((\"attrelid\" = 223731) AND (\"attnum\" > 0) AND NOT \"attisdropped\") ORDER BY \"attnum\"",
491
- "database_type": "postgres",
492
- "server_version": 120003
493
- }
494
- },
495
- {
496
- "id": 22,
497
- "event": "return",
498
- "thread_id": 70143606759380,
499
- "parent_id": 21,
500
- "elapsed": 0.001281
501
- },
502
- {
503
- "id": 23,
504
- "event": "call",
505
- "thread_id": 70143606759380,
506
- "sql_query": {
507
- "sql": "SELECT \"pg_type\".\"oid\", \"typrelid\", \"typarray\" FROM \"pg_type\" WHERE ((\"typtype\" = 'c') AND (\"typname\" = 'fn_call')) LIMIT 1",
508
- "database_type": "postgres",
509
- "server_version": 120003
510
- }
511
- },
512
- {
513
- "id": 24,
514
- "event": "return",
515
- "thread_id": 70143606759380,
516
- "parent_id": 23,
517
- "elapsed": 0.000838
518
- },
519
- {
520
- "id": 25,
521
- "event": "call",
522
- "thread_id": 70143606759380,
523
- "sql_query": {
524
- "sql": "SELECT \"attname\", (CASE \"pg_type\".\"typbasetype\" WHEN 0 THEN \"atttypid\" ELSE \"pg_type\".\"typbasetype\" END) AS \"atttypid\" FROM \"pg_attribute\" INNER JOIN \"pg_type\" ON (\"pg_type\".\"oid\" = \"pg_attribute\".\"atttypid\") WHERE ((\"attrelid\" = 223734) AND (\"attnum\" > 0) AND NOT \"attisdropped\") ORDER BY \"attnum\"",
525
- "database_type": "postgres",
526
- "server_version": 120003
527
- }
528
- },
529
- {
530
- "id": 26,
531
- "event": "return",
532
- "thread_id": 70143606759380,
533
- "parent_id": 25,
534
- "elapsed": 0.001017
535
- },
536
- {
537
- "id": 27,
538
- "event": "return",
539
- "thread_id": 70143606759380,
540
- "parent_id": 8,
541
- "elapsed": 0.150356,
542
- "return_value": {
543
- "class": "User::Show",
544
- "value": "#<User::Show:0x00007f972cee0d20>",
545
- "object_id": 70143635293840
546
- }
547
- },
548
- {
549
- "id": 28,
550
- "event": "call",
551
- "thread_id": 70143606759380,
552
- "defined_class": "API::APIKeysController",
553
- "method_id": "destroy",
554
- "path": "app/controllers/api/api_keys_controller.rb",
555
- "lineno": 15,
556
- "static": false,
557
- "parameters": [],
558
- "receiver": {
559
- "class": "API::APIKeysController",
560
- "object_id": 70143625216500,
561
- "value": "#<API::APIKeysController:0x00007f972bba83e8>"
562
- }
563
- },
564
- {
565
- "id": 29,
566
- "event": "call",
567
- "thread_id": 70143606759380,
568
- "defined_class": "ApiKey",
569
- "method_id": "revoke",
570
- "path": "app/models/api_key.rb",
571
- "lineno": 40,
572
- "static": true,
573
- "parameters": [
574
- {
575
- "name": "api_key",
576
- "class": "String",
577
- "object_id": 70143626063440,
578
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
579
- "kind": "req"
580
- }
581
- ],
582
- "receiver": {
583
- "class": "Class",
584
- "object_id": 70143710327480,
585
- "value": "ApiKey"
586
- }
587
- },
588
- {
589
- "id": 30,
590
- "event": "call",
591
- "thread_id": 70143606759380,
592
- "defined_class": "ApiKey",
593
- "method_id": "decode",
594
- "path": "app/models/api_key.rb",
595
- "lineno": 24,
596
- "static": true,
597
- "parameters": [
598
- {
599
- "name": "api_key",
600
- "class": "String",
601
- "object_id": 70143626063440,
602
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
603
- "kind": "req"
604
- }
605
- ],
606
- "receiver": {
607
- "class": "Class",
608
- "object_id": 70143710327480,
609
- "value": "ApiKey"
610
- }
611
- },
612
- {
613
- "id": 31,
614
- "event": "return",
615
- "thread_id": 70143606759380,
616
- "parent_id": 30,
617
- "elapsed": 0.000011,
618
- "return_value": {
619
- "class": "Array",
620
- "value": "[\"admin\", \"e57a8310-e718-4914-b3fa-b11d4a0687ee\"]",
621
- "object_id": 70143613653900
622
- }
623
- },
624
- {
625
- "id": 32,
626
- "event": "call",
627
- "thread_id": 70143606759380,
628
- "sql_query": {
629
- "sql": "SELECT * FROM \"api_keys\" WHERE (\"login\" = 'admin')",
630
- "database_type": "postgres",
631
- "server_version": 120003
632
- }
633
- },
634
- {
635
- "id": 33,
636
- "event": "return",
637
- "thread_id": 70143606759380,
638
- "parent_id": 32,
639
- "elapsed": 0.001134
640
- },
641
- {
642
- "id": 34,
643
- "event": "call",
644
- "thread_id": 70143606759380,
645
- "sql_query": {
646
- "sql": "DELETE FROM \"api_keys\" WHERE \"id\" = 9",
647
- "database_type": "postgres",
648
- "server_version": 120003
649
- }
650
- },
651
- {
652
- "id": 35,
653
- "event": "return",
654
- "thread_id": 70143606759380,
655
- "parent_id": 34,
656
- "elapsed": 0.001028
657
- },
658
- {
659
- "id": 36,
660
- "event": "return",
661
- "thread_id": 70143606759380,
662
- "parent_id": 29,
663
- "elapsed": 0.008962,
664
- "return_value": {
665
- "class": "DAO::ApiKey",
666
- "value": "#<DAO::ApiKey:0x00007f972cfa8de8>",
667
- "object_id": 70143635703540
668
- }
669
- },
670
- {
671
- "id": 37,
672
- "event": "return",
673
- "thread_id": 70143606759380,
674
- "parent_id": 28,
675
- "elapsed": 0.009195,
676
- "return_value": {
677
- "class": "String",
678
- "value": "",
679
- "object_id": 70143606590020
680
- }
681
- },
682
- {
683
- "id": 38,
684
- "event": "return",
685
- "thread_id": 70143606759380,
686
- "parent_id": 7,
687
- "elapsed": 0.163302,
688
- "http_server_response": {
689
- "mime_type": "application/json; charset=utf-8",
690
- "status": 200
691
- }
692
- },
693
- {
694
- "id": 39,
695
- "event": "call",
696
- "thread_id": 70143606759380,
697
- "http_server_request": {
698
- "request_method": "DELETE",
699
- "path_info": "/api/api_keys"
700
- },
701
- "message": [
702
- {
703
- "name": "controller",
704
- "class": "String",
705
- "value": "api/api_keys",
706
- "object_id": 70143625900420
707
- },
708
- {
709
- "name": "action",
710
- "class": "String",
711
- "value": "destroy",
712
- "object_id": 70143625903660
713
- }
714
- ]
715
- },
716
- {
717
- "id": 40,
718
- "event": "call",
719
- "thread_id": 70143606759380,
720
- "defined_class": "ApiKey",
721
- "method_id": "authenticate",
722
- "path": "app/models/api_key.rb",
723
- "lineno": 51,
724
- "static": true,
725
- "parameters": [
726
- {
727
- "name": "api_key",
728
- "class": "String",
729
- "object_id": 70143707623380,
730
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
731
- "kind": "req"
732
- }
733
- ],
734
- "receiver": {
735
- "class": "Class",
736
- "object_id": 70143710327480,
737
- "value": "ApiKey"
738
- }
739
- },
740
- {
741
- "id": 41,
742
- "event": "call",
743
- "thread_id": 70143606759380,
744
- "defined_class": "ApiKey",
745
- "method_id": "decode",
746
- "path": "app/models/api_key.rb",
747
- "lineno": 24,
748
- "static": true,
749
- "parameters": [
750
- {
751
- "name": "api_key",
752
- "class": "String",
753
- "object_id": 70143707623380,
754
- "value": "YWRtaW46ZTU3YTgzMTAtZTcxOC00OTE0LWIzZmEtYjExZDRhMDY4N2Vl",
755
- "kind": "req"
756
- }
757
- ],
758
- "receiver": {
759
- "class": "Class",
760
- "object_id": 70143710327480,
761
- "value": "ApiKey"
762
- }
763
- },
764
- {
765
- "id": 42,
766
- "event": "return",
767
- "thread_id": 70143606759380,
768
- "parent_id": 41,
769
- "elapsed": 0.000015,
770
- "return_value": {
771
- "class": "Array",
772
- "value": "[\"admin\", \"e57a8310-e718-4914-b3fa-b11d4a0687ee\"]",
773
- "object_id": 70143707620080
774
- }
775
- },
776
- {
777
- "id": 43,
778
- "event": "call",
779
- "thread_id": 70143606759380,
780
- "sql_query": {
781
- "sql": "SELECT * FROM \"api_keys\" WHERE (\"login\" = 'admin')",
782
- "database_type": "postgres",
783
- "server_version": 120003
784
- }
785
- },
786
- {
787
- "id": 44,
788
- "event": "return",
789
- "thread_id": 70143606759380,
790
- "parent_id": 43,
791
- "elapsed": 0.001356
792
- },
793
- {
794
- "id": 45,
795
- "event": "return",
796
- "thread_id": 70143606759380,
797
- "parent_id": 40,
798
- "elapsed": 0.005355
799
- },
800
- {
801
- "id": 46,
802
- "event": "call",
803
- "thread_id": 70143606759380,
804
- "defined_class": "JSON::Ext::Generator::State",
805
- "method_id": "generate",
806
- "path": "JSON::Ext::Generator::State#generate",
807
- "static": false,
808
- "parameters": [
809
- {
810
- "name": "arg",
811
- "class": "Hash",
812
- "object_id": 70143708130600,
813
- "value": "{\"error\"=>\"must provide authorization\"}",
814
- "kind": "req"
815
- }
816
- ],
817
- "receiver": {
818
- "class": "JSON::Ext::Generator::State",
819
- "object_id": 70143708130560,
820
- "value": "#<JSON::Ext::Generator::State:0x00007f97359cda00>"
821
- }
822
- },
823
- {
824
- "id": 47,
825
- "event": "return",
826
- "thread_id": 70143606759380,
827
- "parent_id": 46,
828
- "elapsed": 0.00005,
829
- "return_value": {
830
- "class": "String",
831
- "value": "{\"error\":\"must provide authorization\"}",
832
- "object_id": 70143708128640
833
- }
834
- },
835
- {
836
- "id": 48,
837
- "event": "return",
838
- "thread_id": 70143606759380,
839
- "parent_id": 39,
840
- "elapsed": 0.006339,
841
- "http_server_response": {
842
- "mime_type": "application/json; charset=utf-8",
843
- "status": 401
844
- }
845
- }
846
- ]
847
- }