{"action":"created","comment":{"url":"https://api.github.com/repos/RackHD/on-http/pulls/comments/51279165","id":51279165,"diff_hunk":"@@ -0,0 +1,74 @@\n+// Copyright 2016, EMC, Inc.\n+/* jshint node:true */\n+\n+\"use strict\";\n+\n+describe(\"Http.Services.Api.Catalogs\", function () {\n+    var catalogService;\n+    var waterline;\n+    var needByIdentifier;\n+    var find;\n+\n+    before(\"Http.Services.Api.Catalogs before\", function() {\n+        helper.setupInjector([\n+            helper.require(\"/lib/services/catalogs-api-service.js\")\n+        ]);\n+\n+        waterline = helper.injector.get('Services.Waterline');\n+        waterline.catalogs = {\n+            needByIdentifier: sinon.stub().resolves(),\n+            find: sinon.stub().resolves([])\n+        };\n+\n+        catalogService = helper.injector.get(\"Http.Services.Api.Catalogs\");\n+\n+    });\n+\n+    describe(\"getCatalog\", function() {\n+        it('should expose the appropriate methods', function() {\n+            catalogService.should.have.property('getCatalog')\n+                        .that.is.a('function').with.length(1);\n+                });\n+        it('Run getCatalog', function() {\n+            var mock_catalog = [{ id: 'foobar' }];\n+            waterline.catalogs.find.resolves([mock_catalog]);","path":"spec/lib/services/catalogs-api-service-spec.js","position":34,"original_position":34,"commit_id":"1e90434c7792739ed654a4ba654adc9d7400b807","original_commit_id":"1e90434c7792739ed654a4ba654adc9d7400b807","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'mock_catalog' is not in camel case.","created_at":"2016-01-29T16:13:31Z","updated_at":"2016-01-29T16:13:31Z","html_url":"https://github.com/RackHD/on-http/pull/109#discussion_r51279165","pull_request_url":"https://api.github.com/repos/RackHD/on-http/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/comments/51279165"},"html":{"href":"https://github.com/RackHD/on-http/pull/109#discussion_r51279165"},"pull_request":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/RackHD/on-http/pulls/109","id":57667060,"html_url":"https://github.com/RackHD/on-http/pull/109","diff_url":"https://github.com/RackHD/on-http/pull/109.diff","patch_url":"https://github.com/RackHD/on-http/pull/109.patch","issue_url":"https://api.github.com/repos/RackHD/on-http/issues/109","number":109,"state":"open","locked":false,"title":"controller for catalogs","user":{"login":"srinia6","id":14314211,"avatar_url":"https://avatars.githubusercontent.com/u/14314211?v=3","gravatar_id":"","url":"https://api.github.com/users/srinia6","html_url":"https://github.com/srinia6","followers_url":"https://api.github.com/users/srinia6/followers","following_url":"https://api.github.com/users/srinia6/following{/other_user}","gists_url":"https://api.github.com/users/srinia6/gists{/gist_id}","starred_url":"https://api.github.com/users/srinia6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinia6/subscriptions","organizations_url":"https://api.github.com/users/srinia6/orgs","repos_url":"https://api.github.com/users/srinia6/repos","events_url":"https://api.github.com/users/srinia6/events{/privacy}","received_events_url":"https://api.github.com/users/srinia6/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-29T16:12:58Z","updated_at":"2016-01-29T16:13:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a48067607637f03b91ce9a87570bfff153ce7cf9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RackHD/on-http/pulls/109/commits","review_comments_url":"https://api.github.com/repos/RackHD/on-http/pulls/109/comments","review_comment_url":"https://api.github.com/repos/RackHD/on-http/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RackHD/on-http/issues/109/comments","statuses_url":"https://api.github.com/repos/RackHD/on-http/statuses/1e90434c7792739ed654a4ba654adc9d7400b807","head":{"label":"srinia6:catalog-controller","ref":"catalog-controller","sha":"1e90434c7792739ed654a4ba654adc9d7400b807","user":{"login":"srinia6","id":14314211,"avatar_url":"https://avatars.githubusercontent.com/u/14314211?v=3","gravatar_id":"","url":"https://api.github.com/users/srinia6","html_url":"https://github.com/srinia6","followers_url":"https://api.github.com/users/srinia6/followers","following_url":"https://api.github.com/users/srinia6/following{/other_user}","gists_url":"https://api.github.com/users/srinia6/gists{/gist_id}","starred_url":"https://api.github.com/users/srinia6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinia6/subscriptions","organizations_url":"https://api.github.com/users/srinia6/orgs","repos_url":"https://api.github.com/users/srinia6/repos","events_url":"https://api.github.com/users/srinia6/events{/privacy}","received_events_url":"https://api.github.com/users/srinia6/received_events","type":"User","site_admin":false},"repo":{"id":49977583,"name":"on-http","full_name":"srinia6/on-http","owner":{"login":"srinia6","id":14314211,"avatar_url":"https://avatars.githubusercontent.com/u/14314211?v=3","gravatar_id":"","url":"https://api.github.com/users/srinia6","html_url":"https://github.com/srinia6","followers_url":"https://api.github.com/users/srinia6/followers","following_url":"https://api.github.com/users/srinia6/following{/other_user}","gists_url":"https://api.github.com/users/srinia6/gists{/gist_id}","starred_url":"https://api.github.com/users/srinia6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinia6/subscriptions","organizations_url":"https://api.github.com/users/srinia6/orgs","repos_url":"https://api.github.com/users/srinia6/repos","events_url":"https://api.github.com/users/srinia6/events{/privacy}","received_events_url":"https://api.github.com/users/srinia6/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srinia6/on-http","description":"","fork":true,"url":"https://api.github.com/repos/srinia6/on-http","forks_url":"https://api.github.com/repos/srinia6/on-http/forks","keys_url":"https://api.github.com/repos/srinia6/on-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srinia6/on-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srinia6/on-http/teams","hooks_url":"https://api.github.com/repos/srinia6/on-http/hooks","issue_events_url":"https://api.github.com/repos/srinia6/on-http/issues/events{/number}","events_url":"https://api.github.com/repos/srinia6/on-http/events","assignees_url":"https://api.github.com/repos/srinia6/on-http/assignees{/user}","branches_url":"https://api.github.com/repos/srinia6/on-http/branches{/branch}","tags_url":"https://api.github.com/repos/srinia6/on-http/tags","blobs_url":"https://api.github.com/repos/srinia6/on-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srinia6/on-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srinia6/on-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/srinia6/on-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srinia6/on-http/statuses/{sha}","languages_url":"https://api.github.com/repos/srinia6/on-http/languages","stargazers_url":"https://api.github.com/repos/srinia6/on-http/stargazers","contributors_url":"https://api.github.com/repos/srinia6/on-http/contributors","subscribers_url":"https://api.github.com/repos/srinia6/on-http/subscribers","subscription_url":"https://api.github.com/repos/srinia6/on-http/subscription","commits_url":"https://api.github.com/repos/srinia6/on-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/srinia6/on-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/srinia6/on-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/srinia6/on-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/srinia6/on-http/contents/{+path}","compare_url":"https://api.github.com/repos/srinia6/on-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srinia6/on-http/merges","archive_url":"https://api.github.com/repos/srinia6/on-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srinia6/on-http/downloads","issues_url":"https://api.github.com/repos/srinia6/on-http/issues{/number}","pulls_url":"https://api.github.com/repos/srinia6/on-http/pulls{/number}","milestones_url":"https://api.github.com/repos/srinia6/on-http/milestones{/number}","notifications_url":"https://api.github.com/repos/srinia6/on-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srinia6/on-http/labels{/name}","releases_url":"https://api.github.com/repos/srinia6/on-http/releases{/id}","deployments_url":"https://api.github.com/repos/srinia6/on-http/deployments","created_at":"2016-01-19T19:32:25Z","updated_at":"2016-01-19T19:32:26Z","pushed_at":"2016-01-29T16:10:52Z","git_url":"git://github.com/srinia6/on-http.git","ssh_url":"git@github.com:srinia6/on-http.git","clone_url":"https://github.com/srinia6/on-http.git","svn_url":"https://github.com/srinia6/on-http","homepage":null,"size":1723,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RackHD:master","ref":"master","sha":"3edc0af96958939381bd12a3d015e7570ab01fd3","user":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"repo":{"id":41690081,"name":"on-http","full_name":"RackHD/on-http","owner":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RackHD/on-http","description":"","fork":false,"url":"https://api.github.com/repos/RackHD/on-http","forks_url":"https://api.github.com/repos/RackHD/on-http/forks","keys_url":"https://api.github.com/repos/RackHD/on-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RackHD/on-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RackHD/on-http/teams","hooks_url":"https://api.github.com/repos/RackHD/on-http/hooks","issue_events_url":"https://api.github.com/repos/RackHD/on-http/issues/events{/number}","events_url":"https://api.github.com/repos/RackHD/on-http/events","assignees_url":"https://api.github.com/repos/RackHD/on-http/assignees{/user}","branches_url":"https://api.github.com/repos/RackHD/on-http/branches{/branch}","tags_url":"https://api.github.com/repos/RackHD/on-http/tags","blobs_url":"https://api.github.com/repos/RackHD/on-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RackHD/on-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RackHD/on-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/RackHD/on-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RackHD/on-http/statuses/{sha}","languages_url":"https://api.github.com/repos/RackHD/on-http/languages","stargazers_url":"https://api.github.com/repos/RackHD/on-http/stargazers","contributors_url":"https://api.github.com/repos/RackHD/on-http/contributors","subscribers_url":"https://api.github.com/repos/RackHD/on-http/subscribers","subscription_url":"https://api.github.com/repos/RackHD/on-http/subscription","commits_url":"https://api.github.com/repos/RackHD/on-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/RackHD/on-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/RackHD/on-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/RackHD/on-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/RackHD/on-http/contents/{+path}","compare_url":"https://api.github.com/repos/RackHD/on-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RackHD/on-http/merges","archive_url":"https://api.github.com/repos/RackHD/on-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RackHD/on-http/downloads","issues_url":"https://api.github.com/repos/RackHD/on-http/issues{/number}","pulls_url":"https://api.github.com/repos/RackHD/on-http/pulls{/number}","milestones_url":"https://api.github.com/repos/RackHD/on-http/milestones{/number}","notifications_url":"https://api.github.com/repos/RackHD/on-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RackHD/on-http/labels{/name}","releases_url":"https://api.github.com/repos/RackHD/on-http/releases{/id}","deployments_url":"https://api.github.com/repos/RackHD/on-http/deployments","created_at":"2015-08-31T17:29:08Z","updated_at":"2016-01-26T18:11:40Z","pushed_at":"2016-01-29T16:12:59Z","git_url":"git://github.com/RackHD/on-http.git","ssh_url":"git@github.com:RackHD/on-http.git","clone_url":"https://github.com/RackHD/on-http.git","svn_url":"https://github.com/RackHD/on-http","homepage":null,"size":2036,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":6,"forks":31,"open_issues":6,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/109"},"html":{"href":"https://github.com/RackHD/on-http/pull/109"},"issue":{"href":"https://api.github.com/repos/RackHD/on-http/issues/109"},"comments":{"href":"https://api.github.com/repos/RackHD/on-http/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/RackHD/on-http/statuses/1e90434c7792739ed654a4ba654adc9d7400b807"}}}}