{"action":"created","comment":{"url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/comments/205427215","pull_request_review_id":140692399,"id":205427215,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTQyNzIxNQ==","diff_hunk":"@@ -49,51 +49,55 @@ describe('TsdbAdminClient', function () {\n \n     it('ok', function () {});\n \n-    it('createDatabase & listDatabase & getDatabaseInfo', function () { \n+    it('createDatabase', function () { \n         ingestDataPointsMonthly = 1;\n         purchaseLength = 1;\n         description = 'This is a test for TSDB.';\n \n         return clientAdmin.createDatabase(clientToken, databaseName,\n-            ingestDataPointsMonthly, purchaseLength, description)\n-            .then(function () {\n-                return clientAdmin.listDatabase();\n-            })\n-            .then(function (response) {\n-                debug('%j', response);\n-                var length = response.body.databases.length;\n-                console.log(length);\n-                expect(response.body.databases[length - 1].databaseName).to.eql(databaseName);\n-                var databaseId = response.body.databases[length - 1].databaseId;\n-                return clientAdmin.getDatabaseInfo(databaseId);\n-            })\n-            .then(function (response) {\n-                debug('%j', response);\n-                expect(response.body.databaseName).to.eql(databaseName);\n-                expect(response.body.description).to.eql(description);\n-            });\n+                ingestDataPointsMonthly, purchaseLength, description, '', 1)\n+        .then(function (response) {\n+            debug('%j', response);\n+            expect(response.body.databaseId).not.to.be(undefined);\n+            expect(response.body.charge).not.to.be(undefined);\n+            expect(response.body.expiredTime).not.to.be(undefined);\n+            expect(response.body.orderId).not.to.be(undefined);\n+        });\n     });\n \n-    it('deleteDatabase', function () {\n-        ingestDataPointsMonthly = 1;\n-        purchaseLength = 1;\n-        description = 'This is a test for TSDB.';\n+    it('listDatabase & getDatabaseInfo', function () {\n+        return clientAdmin.listDatabase()\n+        .then(function (response) {\n+            debug('%j', response);\n+            var databaseId = response.body.databases[0].databaseId\n+            return clientAdmin.getDatabaseInfo(databaseId);\n+        })\n+        .then(function (response) {\n+            debug('%j', response);\n+            expect(response.body.databaseId).not.to.be(undefined);\n+            expect(response.body.databaseName).not.to.be(undefined);\n+            expect(response.body.description).not.to.be(undefined);\n+            expect(response.body.endpoint).not.to.be(undefined);\n+            expect(response.body.quota.ingestDataPointsMonthly).not.to.be(undefined);\n+            expect(response.body.quota.storeBytesQuota).not.to.be(undefined);\n+            expect(response.body.status).not.to.be(undefined);\n+            expect(response.body.autoExport).not.to.be(undefined);\n+            expect(response.body.createTime).not.to.be(undefined);\n+            expect(response.body.expiredTime).not.to.be(undefined);\n+        })","path":"test/sdk/tsdb_admin_client.spec.js","position":61,"original_position":61,"commit_id":"c8b537c58c7ff8c8ddbd5361c06ee0e51f7ba7b9","original_commit_id":"c8b537c58c7ff8c8ddbd5361c06ee0e51f7ba7b9","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2018-07-26T11:52:34Z","updated_at":"2018-07-26T11:52:37Z","html_url":"https://github.com/baidubce/bce-sdk-js/pull/47#discussion_r205427215","pull_request_url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/comments/205427215"},"html":{"href":"https://github.com/baidubce/bce-sdk-js/pull/47#discussion_r205427215"},"pull_request":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47","id":204117168,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MTE3MTY4","html_url":"https://github.com/baidubce/bce-sdk-js/pull/47","diff_url":"https://github.com/baidubce/bce-sdk-js/pull/47.diff","patch_url":"https://github.com/baidubce/bce-sdk-js/pull/47.patch","issue_url":"https://api.github.com/repos/baidubce/bce-sdk-js/issues/47","number":47,"state":"open","locked":false,"title":"add sql interface and storeBytesQuota parameter","user":{"login":"haoqian3055","id":8992709,"node_id":"MDQ6VXNlcjg5OTI3MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/8992709?v=4","gravatar_id":"","url":"https://api.github.com/users/haoqian3055","html_url":"https://github.com/haoqian3055","followers_url":"https://api.github.com/users/haoqian3055/followers","following_url":"https://api.github.com/users/haoqian3055/following{/other_user}","gists_url":"https://api.github.com/users/haoqian3055/gists{/gist_id}","starred_url":"https://api.github.com/users/haoqian3055/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoqian3055/subscriptions","organizations_url":"https://api.github.com/users/haoqian3055/orgs","repos_url":"https://api.github.com/users/haoqian3055/repos","events_url":"https://api.github.com/users/haoqian3055/events{/privacy}","received_events_url":"https://api.github.com/users/haoqian3055/received_events","type":"User","site_admin":false},"body":"add sql interface in tsdb_data_client\r\nadd storeBytesQuota parameter in createDatabase function","created_at":"2018-07-26T11:52:21Z","updated_at":"2018-07-26T11:52:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e22a92bdf00475879279f73d3cd926e9cc1ee45d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47/commits","review_comments_url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47/comments","review_comment_url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baidubce/bce-sdk-js/issues/47/comments","statuses_url":"https://api.github.com/repos/baidubce/bce-sdk-js/statuses/c8b537c58c7ff8c8ddbd5361c06ee0e51f7ba7b9","head":{"label":"haoqian3055:master","ref":"master","sha":"c8b537c58c7ff8c8ddbd5361c06ee0e51f7ba7b9","user":{"login":"haoqian3055","id":8992709,"node_id":"MDQ6VXNlcjg5OTI3MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/8992709?v=4","gravatar_id":"","url":"https://api.github.com/users/haoqian3055","html_url":"https://github.com/haoqian3055","followers_url":"https://api.github.com/users/haoqian3055/followers","following_url":"https://api.github.com/users/haoqian3055/following{/other_user}","gists_url":"https://api.github.com/users/haoqian3055/gists{/gist_id}","starred_url":"https://api.github.com/users/haoqian3055/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoqian3055/subscriptions","organizations_url":"https://api.github.com/users/haoqian3055/orgs","repos_url":"https://api.github.com/users/haoqian3055/repos","events_url":"https://api.github.com/users/haoqian3055/events{/privacy}","received_events_url":"https://api.github.com/users/haoqian3055/received_events","type":"User","site_admin":false},"repo":{"id":142156787,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxNTY3ODc=","name":"bce-sdk-js","full_name":"haoqian3055/bce-sdk-js","owner":{"login":"haoqian3055","id":8992709,"node_id":"MDQ6VXNlcjg5OTI3MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/8992709?v=4","gravatar_id":"","url":"https://api.github.com/users/haoqian3055","html_url":"https://github.com/haoqian3055","followers_url":"https://api.github.com/users/haoqian3055/followers","following_url":"https://api.github.com/users/haoqian3055/following{/other_user}","gists_url":"https://api.github.com/users/haoqian3055/gists{/gist_id}","starred_url":"https://api.github.com/users/haoqian3055/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoqian3055/subscriptions","organizations_url":"https://api.github.com/users/haoqian3055/orgs","repos_url":"https://api.github.com/users/haoqian3055/repos","events_url":"https://api.github.com/users/haoqian3055/events{/privacy}","received_events_url":"https://api.github.com/users/haoqian3055/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haoqian3055/bce-sdk-js","description":"Baidu Cloud Engine JavaScript SDK","fork":true,"url":"https://api.github.com/repos/haoqian3055/bce-sdk-js","forks_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/forks","keys_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/teams","hooks_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/events","assignees_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/tags","blobs_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/languages","stargazers_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/subscription","commits_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/merges","archive_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/downloads","issues_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/releases{/id}","deployments_url":"https://api.github.com/repos/haoqian3055/bce-sdk-js/deployments","created_at":"2018-07-24T12:41:27Z","updated_at":"2018-07-26T11:48:28Z","pushed_at":"2018-07-26T11:48:26Z","git_url":"git://github.com/haoqian3055/bce-sdk-js.git","ssh_url":"git@github.com:haoqian3055/bce-sdk-js.git","clone_url":"https://github.com/haoqian3055/bce-sdk-js.git","svn_url":"https://github.com/haoqian3055/bce-sdk-js","homepage":"","size":13104,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"baidubce:master","ref":"master","sha":"86e159f6ed9b9444a05f3601a74425c764e4a409","user":{"login":"baidubce","id":8200078,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyMDAwNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/8200078?v=4","gravatar_id":"","url":"https://api.github.com/users/baidubce","html_url":"https://github.com/baidubce","followers_url":"https://api.github.com/users/baidubce/followers","following_url":"https://api.github.com/users/baidubce/following{/other_user}","gists_url":"https://api.github.com/users/baidubce/gists{/gist_id}","starred_url":"https://api.github.com/users/baidubce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidubce/subscriptions","organizations_url":"https://api.github.com/users/baidubce/orgs","repos_url":"https://api.github.com/users/baidubce/repos","events_url":"https://api.github.com/users/baidubce/events{/privacy}","received_events_url":"https://api.github.com/users/baidubce/received_events","type":"Organization","site_admin":false},"repo":{"id":52262486,"node_id":"MDEwOlJlcG9zaXRvcnk1MjI2MjQ4Ng==","name":"bce-sdk-js","full_name":"baidubce/bce-sdk-js","owner":{"login":"baidubce","id":8200078,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyMDAwNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/8200078?v=4","gravatar_id":"","url":"https://api.github.com/users/baidubce","html_url":"https://github.com/baidubce","followers_url":"https://api.github.com/users/baidubce/followers","following_url":"https://api.github.com/users/baidubce/following{/other_user}","gists_url":"https://api.github.com/users/baidubce/gists{/gist_id}","starred_url":"https://api.github.com/users/baidubce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidubce/subscriptions","organizations_url":"https://api.github.com/users/baidubce/orgs","repos_url":"https://api.github.com/users/baidubce/repos","events_url":"https://api.github.com/users/baidubce/events{/privacy}","received_events_url":"https://api.github.com/users/baidubce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/baidubce/bce-sdk-js","description":"Baidu Cloud Engine JavaScript SDK","fork":true,"url":"https://api.github.com/repos/baidubce/bce-sdk-js","forks_url":"https://api.github.com/repos/baidubce/bce-sdk-js/forks","keys_url":"https://api.github.com/repos/baidubce/bce-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baidubce/bce-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baidubce/bce-sdk-js/teams","hooks_url":"https://api.github.com/repos/baidubce/bce-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/baidubce/bce-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/baidubce/bce-sdk-js/events","assignees_url":"https://api.github.com/repos/baidubce/bce-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/baidubce/bce-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/baidubce/bce-sdk-js/tags","blobs_url":"https://api.github.com/repos/baidubce/bce-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baidubce/bce-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baidubce/bce-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/baidubce/bce-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baidubce/bce-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/baidubce/bce-sdk-js/languages","stargazers_url":"https://api.github.com/repos/baidubce/bce-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/baidubce/bce-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/baidubce/bce-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/baidubce/bce-sdk-js/subscription","commits_url":"https://api.github.com/repos/baidubce/bce-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/baidubce/bce-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/baidubce/bce-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/baidubce/bce-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/baidubce/bce-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/baidubce/bce-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baidubce/bce-sdk-js/merges","archive_url":"https://api.github.com/repos/baidubce/bce-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baidubce/bce-sdk-js/downloads","issues_url":"https://api.github.com/repos/baidubce/bce-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/baidubce/bce-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/baidubce/bce-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baidubce/bce-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/baidubce/bce-sdk-js/releases{/id}","deployments_url":"https://api.github.com/repos/baidubce/bce-sdk-js/deployments","created_at":"2016-02-22T09:33:22Z","updated_at":"2018-07-24T12:41:19Z","pushed_at":"2018-07-26T11:52:21Z","git_url":"git://github.com/baidubce/bce-sdk-js.git","ssh_url":"git@github.com:baidubce/bce-sdk-js.git","clone_url":"https://github.com/baidubce/bce-sdk-js.git","svn_url":"https://github.com/baidubce/bce-sdk-js","homepage":"","size":13104,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":15,"open_issues":13,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47"},"html":{"href":"https://github.com/baidubce/bce-sdk-js/pull/47"},"issue":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/issues/47"},"comments":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/baidubce/bce-sdk-js/statuses/c8b537c58c7ff8c8ddbd5361c06ee0e51f7ba7b9"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}