{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/comments/84446189","pull_request_review_id":5223378,"id":84446189,"diff_hunk":"@@ -0,0 +1,32 @@\n+import should     from 'should';\n+import supertest  from 'supertest';\n+\n+import app        from './server';\n+import sensorthings    from '../src/sensorthings';\n+\n+import {\n+  BAD_REQUEST,\n+  errnos,\n+  ERRNO_FORBIDDEN,\n+  ERRNO_INVALID_API_CLIENT_NAME,\n+  ERRNO_UNAUTHORIZED,\n+  errors,\n+  FORBIDDEN,\n+  UNAUTHORIZED\n+} from '../src/errors';\n+\n+const endpointPrefix = '/api';\n+const server = supertest.agent(app);\n+let token;\n+\n+describe('Things API', () => {\n+  it('should exist', done => {\n+    server.get(endpointPrefix + '/Things')\n+      .expect('Content-type', /json/)\n+      .expect(200)\n+      .end((err, res) => {\n+        res.status.should.be.equal(200);\n+        done();\n+      });\n+  });\n+});","path":"test/test_things.js","position":32,"original_position":32,"commit_id":"d0657b3709bffbc3c5b3cebe21b7689626668ae5","original_commit_id":"d0657b3709bffbc3c5b3cebe21b7689626668ae5","user":{"login":"ferjm","id":480202,"avatar_url":"https://avatars.githubusercontent.com/u/480202?v=3","gravatar_id":"","url":"https://api.github.com/users/ferjm","html_url":"https://github.com/ferjm","followers_url":"https://api.github.com/users/ferjm/followers","following_url":"https://api.github.com/users/ferjm/following{/other_user}","gists_url":"https://api.github.com/users/ferjm/gists{/gist_id}","starred_url":"https://api.github.com/users/ferjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferjm/subscriptions","organizations_url":"https://api.github.com/users/ferjm/orgs","repos_url":"https://api.github.com/users/ferjm/repos","events_url":"https://api.github.com/users/ferjm/events{/privacy}","received_events_url":"https://api.github.com/users/ferjm/received_events","type":"User","site_admin":false},"body":"Same comment about unused imports from `../src/errors` and unused `token` in all test files.","created_at":"2016-10-21T09:22:36Z","updated_at":"2016-10-21T09:23:08Z","html_url":"https://github.com/mozilla-sensorweb/sensorthings/pull/1#discussion_r84446189","pull_request_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/comments/84446189"},"html":{"href":"https://github.com/mozilla-sensorweb/sensorthings/pull/1#discussion_r84446189"},"pull_request":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1","id":90342462,"html_url":"https://github.com/mozilla-sensorweb/sensorthings/pull/1","diff_url":"https://github.com/mozilla-sensorweb/sensorthings/pull/1.diff","patch_url":"https://github.com/mozilla-sensorweb/sensorthings/pull/1.patch","issue_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues/1","number":1,"state":"open","locked":false,"title":"St endpoints definition","user":{"login":"albertopq","id":368225,"avatar_url":"https://avatars.githubusercontent.com/u/368225?v=3","gravatar_id":"","url":"https://api.github.com/users/albertopq","html_url":"https://github.com/albertopq","followers_url":"https://api.github.com/users/albertopq/followers","following_url":"https://api.github.com/users/albertopq/following{/other_user}","gists_url":"https://api.github.com/users/albertopq/gists{/gist_id}","starred_url":"https://api.github.com/users/albertopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertopq/subscriptions","organizations_url":"https://api.github.com/users/albertopq/orgs","repos_url":"https://api.github.com/users/albertopq/repos","events_url":"https://api.github.com/users/albertopq/events{/privacy}","received_events_url":"https://api.github.com/users/albertopq/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-21T08:31:37Z","updated_at":"2016-10-21T09:23:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bad8e792eecaaaf4cf316a0c115e6ba87b04dedd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues/1/comments","statuses_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/statuses/d0657b3709bffbc3c5b3cebe21b7689626668ae5","head":{"label":"albertopq:st-endpoints","ref":"st-endpoints","sha":"d0657b3709bffbc3c5b3cebe21b7689626668ae5","user":{"login":"albertopq","id":368225,"avatar_url":"https://avatars.githubusercontent.com/u/368225?v=3","gravatar_id":"","url":"https://api.github.com/users/albertopq","html_url":"https://github.com/albertopq","followers_url":"https://api.github.com/users/albertopq/followers","following_url":"https://api.github.com/users/albertopq/following{/other_user}","gists_url":"https://api.github.com/users/albertopq/gists{/gist_id}","starred_url":"https://api.github.com/users/albertopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertopq/subscriptions","organizations_url":"https://api.github.com/users/albertopq/orgs","repos_url":"https://api.github.com/users/albertopq/repos","events_url":"https://api.github.com/users/albertopq/events{/privacy}","received_events_url":"https://api.github.com/users/albertopq/received_events","type":"User","site_admin":false},"repo":{"id":71449808,"name":"sensorthings","full_name":"albertopq/sensorthings","owner":{"login":"albertopq","id":368225,"avatar_url":"https://avatars.githubusercontent.com/u/368225?v=3","gravatar_id":"","url":"https://api.github.com/users/albertopq","html_url":"https://github.com/albertopq","followers_url":"https://api.github.com/users/albertopq/followers","following_url":"https://api.github.com/users/albertopq/following{/other_user}","gists_url":"https://api.github.com/users/albertopq/gists{/gist_id}","starred_url":"https://api.github.com/users/albertopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertopq/subscriptions","organizations_url":"https://api.github.com/users/albertopq/orgs","repos_url":"https://api.github.com/users/albertopq/repos","events_url":"https://api.github.com/users/albertopq/events{/privacy}","received_events_url":"https://api.github.com/users/albertopq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertopq/sensorthings","description":"Node implementation of the OGC SensorThings API","fork":true,"url":"https://api.github.com/repos/albertopq/sensorthings","forks_url":"https://api.github.com/repos/albertopq/sensorthings/forks","keys_url":"https://api.github.com/repos/albertopq/sensorthings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertopq/sensorthings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertopq/sensorthings/teams","hooks_url":"https://api.github.com/repos/albertopq/sensorthings/hooks","issue_events_url":"https://api.github.com/repos/albertopq/sensorthings/issues/events{/number}","events_url":"https://api.github.com/repos/albertopq/sensorthings/events","assignees_url":"https://api.github.com/repos/albertopq/sensorthings/assignees{/user}","branches_url":"https://api.github.com/repos/albertopq/sensorthings/branches{/branch}","tags_url":"https://api.github.com/repos/albertopq/sensorthings/tags","blobs_url":"https://api.github.com/repos/albertopq/sensorthings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertopq/sensorthings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertopq/sensorthings/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertopq/sensorthings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertopq/sensorthings/statuses/{sha}","languages_url":"https://api.github.com/repos/albertopq/sensorthings/languages","stargazers_url":"https://api.github.com/repos/albertopq/sensorthings/stargazers","contributors_url":"https://api.github.com/repos/albertopq/sensorthings/contributors","subscribers_url":"https://api.github.com/repos/albertopq/sensorthings/subscribers","subscription_url":"https://api.github.com/repos/albertopq/sensorthings/subscription","commits_url":"https://api.github.com/repos/albertopq/sensorthings/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertopq/sensorthings/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertopq/sensorthings/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertopq/sensorthings/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertopq/sensorthings/contents/{+path}","compare_url":"https://api.github.com/repos/albertopq/sensorthings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertopq/sensorthings/merges","archive_url":"https://api.github.com/repos/albertopq/sensorthings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertopq/sensorthings/downloads","issues_url":"https://api.github.com/repos/albertopq/sensorthings/issues{/number}","pulls_url":"https://api.github.com/repos/albertopq/sensorthings/pulls{/number}","milestones_url":"https://api.github.com/repos/albertopq/sensorthings/milestones{/number}","notifications_url":"https://api.github.com/repos/albertopq/sensorthings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertopq/sensorthings/labels{/name}","releases_url":"https://api.github.com/repos/albertopq/sensorthings/releases{/id}","deployments_url":"https://api.github.com/repos/albertopq/sensorthings/deployments","created_at":"2016-10-20T09:59:23Z","updated_at":"2016-10-20T09:59:25Z","pushed_at":"2016-10-21T08:37:46Z","git_url":"git://github.com/albertopq/sensorthings.git","ssh_url":"git@github.com:albertopq/sensorthings.git","clone_url":"https://github.com/albertopq/sensorthings.git","svn_url":"https://github.com/albertopq/sensorthings","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mozilla-sensorweb:master","ref":"master","sha":"40cd9742a3bbc82fe450c484d22e9b3db3d9cef1","user":{"login":"mozilla-sensorweb","id":22178992,"avatar_url":"https://avatars.githubusercontent.com/u/22178992?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-sensorweb","html_url":"https://github.com/mozilla-sensorweb","followers_url":"https://api.github.com/users/mozilla-sensorweb/followers","following_url":"https://api.github.com/users/mozilla-sensorweb/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-sensorweb/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-sensorweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-sensorweb/subscriptions","organizations_url":"https://api.github.com/users/mozilla-sensorweb/orgs","repos_url":"https://api.github.com/users/mozilla-sensorweb/repos","events_url":"https://api.github.com/users/mozilla-sensorweb/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-sensorweb/received_events","type":"Organization","site_admin":false},"repo":{"id":71230782,"name":"sensorthings","full_name":"mozilla-sensorweb/sensorthings","owner":{"login":"mozilla-sensorweb","id":22178992,"avatar_url":"https://avatars.githubusercontent.com/u/22178992?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-sensorweb","html_url":"https://github.com/mozilla-sensorweb","followers_url":"https://api.github.com/users/mozilla-sensorweb/followers","following_url":"https://api.github.com/users/mozilla-sensorweb/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-sensorweb/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-sensorweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-sensorweb/subscriptions","organizations_url":"https://api.github.com/users/mozilla-sensorweb/orgs","repos_url":"https://api.github.com/users/mozilla-sensorweb/repos","events_url":"https://api.github.com/users/mozilla-sensorweb/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-sensorweb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-sensorweb/sensorthings","description":"Node implementation of the OGC SensorThings API","fork":false,"url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings","forks_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/forks","keys_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/teams","hooks_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/hooks","issue_events_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/events","assignees_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/tags","blobs_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/languages","stargazers_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/stargazers","contributors_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/contributors","subscribers_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/subscribers","subscription_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/subscription","commits_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/merges","archive_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/downloads","issues_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/deployments","created_at":"2016-10-18T09:19:22Z","updated_at":"2016-10-18T14:37:54Z","pushed_at":"2016-10-21T08:37:47Z","git_url":"git://github.com/mozilla-sensorweb/sensorthings.git","ssh_url":"git@github.com:mozilla-sensorweb/sensorthings.git","clone_url":"https://github.com/mozilla-sensorweb/sensorthings.git","svn_url":"https://github.com/mozilla-sensorweb/sensorthings","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1"},"html":{"href":"https://github.com/mozilla-sensorweb/sensorthings/pull/1"},"issue":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues/1"},"comments":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-sensorweb/sensorthings/statuses/d0657b3709bffbc3c5b3cebe21b7689626668ae5"}}}}
{"actor":{"display_login":"ferjm"}}