{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/comments/70697626","id":70697626,"diff_hunk":"@@ -279,4 +311,51 @@ describe('devices api', () => {\n             });\n         });\n     });\n+\n+    describe('get hub keys', () => {\n+        var device_name: string;\n+        \n+        beforeAll(function (done) {\n+            // Get the first device\n+            request.get('', (err, resp, result: Devices) => {\n+                expect(result.data.length).toBeGreaterThan(0);\n+                device_name = result.data[0].DeviceProperties.DeviceID;\n+                done();\n+            });\n+        });\n+\n+        it('should return Hub keys', (done) => {\n+            request.get('/'+device_name+'/hub-keys', (err, resp, result) => {\n+                expect(result).toBeTruthy();\n+                let keys:HubKeys = result.data;\n+                expect(keys).toBeTruthy();\n+                expect(keys.primaryKey).toBeTruthy();\n+                expect(keys.secondaryKey).toBeTruthy();\n+                done();\n+            });\n+        });\n+    });\n+\n+    describe('delete device by id', () => {\n+        var newDeviceId: string;\n+\n+        beforeAll(function (done) {\n+            newDeviceId = \"C2C-TEST-\" + Math.random().toString(36).substr(2, 5);\n+            request(getNewCustomDeviceOptions(newDeviceId), (err, resp, result) => {\n+                if (err || resp.statusCode != 200) {\n+                    console.log(\"Could not create device \" + newDeviceId);\n+                }","path":"apitests/spec/devices_spec.ts","position":103,"original_position":103,"commit_id":"6afa689f465dae61499d94c71ba8dab9d97503ba","original_commit_id":"6afa689f465dae61499d94c71ba8dab9d97503ba","user":{"login":"rraomsft","id":19983255,"avatar_url":"https://avatars.githubusercontent.com/u/19983255?v=3","gravatar_id":"","url":"https://api.github.com/users/rraomsft","html_url":"https://github.com/rraomsft","followers_url":"https://api.github.com/users/rraomsft/followers","following_url":"https://api.github.com/users/rraomsft/following{/other_user}","gists_url":"https://api.github.com/users/rraomsft/gists{/gist_id}","starred_url":"https://api.github.com/users/rraomsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rraomsft/subscriptions","organizations_url":"https://api.github.com/users/rraomsft/orgs","repos_url":"https://api.github.com/users/rraomsft/repos","events_url":"https://api.github.com/users/rraomsft/events{/privacy}","received_events_url":"https://api.github.com/users/rraomsft/received_events","type":"User","site_admin":false},"body":"+1 This should fail if new device could not be created. ","created_at":"2016-07-13T20:01:21Z","updated_at":"2016-07-13T20:01:21Z","html_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/208#discussion_r70697626","pull_request_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/comments/70697626"},"html":{"href":"https://github.com/Azure/azure-iot-remote-monitoring/pull/208#discussion_r70697626"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208","id":77345191,"html_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/208","diff_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/208.diff","patch_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/208.patch","issue_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/208","number":208,"state":"open","locked":false,"title":"Device api test","user":{"login":"kapil-ms","id":20193720,"avatar_url":"https://avatars.githubusercontent.com/u/20193720?v=3","gravatar_id":"","url":"https://api.github.com/users/kapil-ms","html_url":"https://github.com/kapil-ms","followers_url":"https://api.github.com/users/kapil-ms/followers","following_url":"https://api.github.com/users/kapil-ms/following{/other_user}","gists_url":"https://api.github.com/users/kapil-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/kapil-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapil-ms/subscriptions","organizations_url":"https://api.github.com/users/kapil-ms/orgs","repos_url":"https://api.github.com/users/kapil-ms/repos","events_url":"https://api.github.com/users/kapil-ms/events{/privacy}","received_events_url":"https://api.github.com/users/kapil-ms/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-13T19:15:16Z","updated_at":"2016-07-13T20:01:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20c7de2e39831c7d466d29b1ba608379c53ce6db","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/208/comments","statuses_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/statuses/6afa689f465dae61499d94c71ba8dab9d97503ba","head":{"label":"Azure:device-api-test","ref":"device-api-test","sha":"6afa689f465dae61499d94c71ba8dab9d97503ba","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":39550433,"name":"azure-iot-remote-monitoring","full_name":"Azure/azure-iot-remote-monitoring","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-iot-remote-monitoring","description":"Azure IoT Remote Monitoring preconfigured solution","fork":false,"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring","forks_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/forks","keys_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/teams","hooks_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/events","assignees_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/tags","blobs_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/subscription","commits_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/merges","archive_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/downloads","issues_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/deployments","created_at":"2015-07-23T06:43:58Z","updated_at":"2016-07-13T18:59:51Z","pushed_at":"2016-07-13T19:59:08Z","git_url":"git://github.com/Azure/azure-iot-remote-monitoring.git","ssh_url":"git@github.com:Azure/azure-iot-remote-monitoring.git","clone_url":"https://github.com/Azure/azure-iot-remote-monitoring.git","svn_url":"https://github.com/Azure/azure-iot-remote-monitoring","homepage":null,"size":8962,"stargazers_count":96,"watchers_count":96,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":9,"forks":107,"open_issues":9,"watchers":96,"default_branch":"master"}},"base":{"label":"Azure:august-integration","ref":"august-integration","sha":"1fc8742974edbad1aefb7580ff9712cc463261b9","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":39550433,"name":"azure-iot-remote-monitoring","full_name":"Azure/azure-iot-remote-monitoring","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-iot-remote-monitoring","description":"Azure IoT Remote Monitoring preconfigured solution","fork":false,"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring","forks_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/forks","keys_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/teams","hooks_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/events","assignees_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/tags","blobs_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/subscription","commits_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/merges","archive_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/downloads","issues_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/deployments","created_at":"2015-07-23T06:43:58Z","updated_at":"2016-07-13T18:59:51Z","pushed_at":"2016-07-13T19:59:08Z","git_url":"git://github.com/Azure/azure-iot-remote-monitoring.git","ssh_url":"git@github.com:Azure/azure-iot-remote-monitoring.git","clone_url":"https://github.com/Azure/azure-iot-remote-monitoring.git","svn_url":"https://github.com/Azure/azure-iot-remote-monitoring","homepage":null,"size":8962,"stargazers_count":96,"watchers_count":96,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":9,"forks":107,"open_issues":9,"watchers":96,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208"},"html":{"href":"https://github.com/Azure/azure-iot-remote-monitoring/pull/208"},"issue":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/208"},"comments":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/208/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/208/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/statuses/6afa689f465dae61499d94c71ba8dab9d97503ba"}}}}
{"actor":{"display_login":"rraomsft"}}