{"action":"created","comment":{"url":"https://api.github.com/repos/drone/drone/pulls/comments/28536535","id":28536535,"diff_hunk":"@@ -1,24 +1,132 @@\n package bolt\n \n import (\n+\t\"github.com/drone/drone/common\"\n+\t\"github.com/drone/drone/common/sshutil\"\n \t\"testing\"\n-\n-\t. \"github.com/franela/goblin\"\n+\t//. \"github.com/franela/goblin\"\n+\t. \"github.com/smartystreets/goconvey/convey\"\n )\n \n func TestRepo(t *testing.T) {\n-\tg := Goblin(t)\n+\t/*g := Goblin(t)\n \tg.Describe(\"Repos\", func() {\n \n-\t\tg.It(\"Should find by name\")\n+\t\tg.It(\"Should find by name\") // ok\n \t\tg.It(\"Should find params\")\n \t\tg.It(\"Should find keys\")\n-\t\tg.It(\"Should delete\")\n-\t\tg.It(\"Should insert\")\n-\t\tg.It(\"Should not insert if exists\")\n+\t\tg.It(\"Should delete\") // ok\n+\t\tg.It(\"Should insert\") // ok\n+\t\tg.It(\"Should not insert if exists\")  // ?\n \t\tg.It(\"Should insert params\")\n \t\tg.It(\"Should update params\")\n \t\tg.It(\"Should insert keys\")\n \t\tg.It(\"Should update keys\")\n \t})\n+\t*/\n+\tvar testUser string = \"octocat\"\n+\tvar testRepo string = \"github.com/octopod/hq\"\n+\tvar db *DB //-- Temp database\n+\ttestParamsIns := map[string]string{\n+\t\t\"A\": \"Alpha\",\n+\t\t\"B\": \"Beta\",\n+\t\t\"C\": \"Charlie\",\n+\t\t\"D\": \"Delta\",\n+\t\t\"E\": \"Echo\",\n+\t}\n+\ttestParamsUpd := map[string]string{\n+\t\t\"A\": \"Alpha-Upd\",\n+\t\t\"B\": \"Beta-Upd\",\n+\t\t\"C\": \"Charlie-Upd\",\n+\t\t\"D\": \"Delta-Upd\",\n+\t\t\"E\": \"Echo-Upd\",\n+\t}\n+\n+\t//--\n+\tdb = Must(\"/tmp/drone.test.db\")\n+\n+\t//--","path":"datastore/bolt/repo_test.go","position":55,"original_position":55,"commit_id":"26b710fca469666cb2be985630389f6df1adaa21","original_commit_id":"26b710fca469666cb2be985630389f6df1adaa21","user":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"body":"remove `//--`","created_at":"2015-04-16T18:28:27Z","updated_at":"2015-04-16T18:28:27Z","html_url":"https://github.com/drone/drone/pull/978#discussion_r28536535","pull_request_url":"https://api.github.com/repos/drone/drone/pulls/978","_links":{"self":{"href":"https://api.github.com/repos/drone/drone/pulls/comments/28536535"},"html":{"href":"https://github.com/drone/drone/pull/978#discussion_r28536535"},"pull_request":{"href":"https://api.github.com/repos/drone/drone/pulls/978"}}},"pull_request":{"url":"https://api.github.com/repos/drone/drone/pulls/978","id":33428195,"html_url":"https://github.com/drone/drone/pull/978","diff_url":"https://github.com/drone/drone/pull/978.diff","patch_url":"https://github.com/drone/drone/pull/978.patch","issue_url":"https://api.github.com/repos/drone/drone/issues/978","number":978,"state":"open","locked":false,"title":"Unit Test code for repo and task: #1","user":{"login":"oliveiradan","id":3721708,"avatar_url":"https://avatars.githubusercontent.com/u/3721708?v=3","gravatar_id":"","url":"https://api.github.com/users/oliveiradan","html_url":"https://github.com/oliveiradan","followers_url":"https://api.github.com/users/oliveiradan/followers","following_url":"https://api.github.com/users/oliveiradan/following{/other_user}","gists_url":"https://api.github.com/users/oliveiradan/gists{/gist_id}","starred_url":"https://api.github.com/users/oliveiradan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliveiradan/subscriptions","organizations_url":"https://api.github.com/users/oliveiradan/orgs","repos_url":"https://api.github.com/users/oliveiradan/repos","events_url":"https://api.github.com/users/oliveiradan/events{/privacy}","received_events_url":"https://api.github.com/users/oliveiradan/received_events","type":"User","site_admin":false},"body":"Unity test for repo_test.go and task_test.go (1st attempt). \r\n","created_at":"2015-04-16T08:22:55Z","updated_at":"2015-04-16T18:28:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8eee1ae41c534d223d37d44ab6ac5995ae45cc61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drone/drone/pulls/978/commits","review_comments_url":"https://api.github.com/repos/drone/drone/pulls/978/comments","review_comment_url":"https://api.github.com/repos/drone/drone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drone/drone/issues/978/comments","statuses_url":"https://api.github.com/repos/drone/drone/statuses/26b710fca469666cb2be985630389f6df1adaa21","head":{"label":"oliveiradan:bolt","ref":"bolt","sha":"26b710fca469666cb2be985630389f6df1adaa21","user":{"login":"oliveiradan","id":3721708,"avatar_url":"https://avatars.githubusercontent.com/u/3721708?v=3","gravatar_id":"","url":"https://api.github.com/users/oliveiradan","html_url":"https://github.com/oliveiradan","followers_url":"https://api.github.com/users/oliveiradan/followers","following_url":"https://api.github.com/users/oliveiradan/following{/other_user}","gists_url":"https://api.github.com/users/oliveiradan/gists{/gist_id}","starred_url":"https://api.github.com/users/oliveiradan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliveiradan/subscriptions","organizations_url":"https://api.github.com/users/oliveiradan/orgs","repos_url":"https://api.github.com/users/oliveiradan/repos","events_url":"https://api.github.com/users/oliveiradan/events{/privacy}","received_events_url":"https://api.github.com/users/oliveiradan/received_events","type":"User","site_admin":false},"repo":{"id":34036988,"name":"drone","full_name":"oliveiradan/drone","owner":{"login":"oliveiradan","id":3721708,"avatar_url":"https://avatars.githubusercontent.com/u/3721708?v=3","gravatar_id":"","url":"https://api.github.com/users/oliveiradan","html_url":"https://github.com/oliveiradan","followers_url":"https://api.github.com/users/oliveiradan/followers","following_url":"https://api.github.com/users/oliveiradan/following{/other_user}","gists_url":"https://api.github.com/users/oliveiradan/gists{/gist_id}","starred_url":"https://api.github.com/users/oliveiradan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliveiradan/subscriptions","organizations_url":"https://api.github.com/users/oliveiradan/orgs","repos_url":"https://api.github.com/users/oliveiradan/repos","events_url":"https://api.github.com/users/oliveiradan/events{/privacy}","received_events_url":"https://api.github.com/users/oliveiradan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oliveiradan/drone","description":"Drone is a Continuous Integration platform built on Docker, written in Go","fork":true,"url":"https://api.github.com/repos/oliveiradan/drone","forks_url":"https://api.github.com/repos/oliveiradan/drone/forks","keys_url":"https://api.github.com/repos/oliveiradan/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oliveiradan/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oliveiradan/drone/teams","hooks_url":"https://api.github.com/repos/oliveiradan/drone/hooks","issue_events_url":"https://api.github.com/repos/oliveiradan/drone/issues/events{/number}","events_url":"https://api.github.com/repos/oliveiradan/drone/events","assignees_url":"https://api.github.com/repos/oliveiradan/drone/assignees{/user}","branches_url":"https://api.github.com/repos/oliveiradan/drone/branches{/branch}","tags_url":"https://api.github.com/repos/oliveiradan/drone/tags","blobs_url":"https://api.github.com/repos/oliveiradan/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oliveiradan/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oliveiradan/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/oliveiradan/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oliveiradan/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/oliveiradan/drone/languages","stargazers_url":"https://api.github.com/repos/oliveiradan/drone/stargazers","contributors_url":"https://api.github.com/repos/oliveiradan/drone/contributors","subscribers_url":"https://api.github.com/repos/oliveiradan/drone/subscribers","subscription_url":"https://api.github.com/repos/oliveiradan/drone/subscription","commits_url":"https://api.github.com/repos/oliveiradan/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/oliveiradan/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/oliveiradan/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/oliveiradan/drone/issues/comments{/number}","contents_url":"https://api.github.com/repos/oliveiradan/drone/contents/{+path}","compare_url":"https://api.github.com/repos/oliveiradan/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oliveiradan/drone/merges","archive_url":"https://api.github.com/repos/oliveiradan/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oliveiradan/drone/downloads","issues_url":"https://api.github.com/repos/oliveiradan/drone/issues{/number}","pulls_url":"https://api.github.com/repos/oliveiradan/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/oliveiradan/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/oliveiradan/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oliveiradan/drone/labels{/name}","releases_url":"https://api.github.com/repos/oliveiradan/drone/releases{/id}","created_at":"2015-04-16T05:52:16Z","updated_at":"2015-04-16T05:52:17Z","pushed_at":"2015-04-16T08:14:03Z","git_url":"git://github.com/oliveiradan/drone.git","ssh_url":"git@github.com:oliveiradan/drone.git","clone_url":"https://github.com/oliveiradan/drone.git","svn_url":"https://github.com/oliveiradan/drone","homepage":"","size":19230,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"drone:bolt","ref":"bolt","sha":"110af2a1961a91cb17c70046f4dac6d3cc9cecca","user":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"repo":{"id":16607898,"name":"drone","full_name":"drone/drone","owner":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drone/drone","description":"Drone is a Continuous Integration platform built on Docker, written in Go","fork":false,"url":"https://api.github.com/repos/drone/drone","forks_url":"https://api.github.com/repos/drone/drone/forks","keys_url":"https://api.github.com/repos/drone/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drone/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drone/drone/teams","hooks_url":"https://api.github.com/repos/drone/drone/hooks","issue_events_url":"https://api.github.com/repos/drone/drone/issues/events{/number}","events_url":"https://api.github.com/repos/drone/drone/events","assignees_url":"https://api.github.com/repos/drone/drone/assignees{/user}","branches_url":"https://api.github.com/repos/drone/drone/branches{/branch}","tags_url":"https://api.github.com/repos/drone/drone/tags","blobs_url":"https://api.github.com/repos/drone/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drone/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drone/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/drone/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drone/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/drone/drone/languages","stargazers_url":"https://api.github.com/repos/drone/drone/stargazers","contributors_url":"https://api.github.com/repos/drone/drone/contributors","subscribers_url":"https://api.github.com/repos/drone/drone/subscribers","subscription_url":"https://api.github.com/repos/drone/drone/subscription","commits_url":"https://api.github.com/repos/drone/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/drone/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/drone/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/drone/drone/issues/comments{/number}","contents_url":"https://api.github.com/repos/drone/drone/contents/{+path}","compare_url":"https://api.github.com/repos/drone/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drone/drone/merges","archive_url":"https://api.github.com/repos/drone/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drone/drone/downloads","issues_url":"https://api.github.com/repos/drone/drone/issues{/number}","pulls_url":"https://api.github.com/repos/drone/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/drone/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/drone/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drone/drone/labels{/name}","releases_url":"https://api.github.com/repos/drone/drone/releases{/id}","created_at":"2014-02-07T07:54:44Z","updated_at":"2015-04-16T11:34:49Z","pushed_at":"2015-04-16T08:22:55Z","git_url":"git://github.com/drone/drone.git","ssh_url":"git@github.com:drone/drone.git","clone_url":"https://github.com/drone/drone.git","svn_url":"https://github.com/drone/drone","homepage":"","size":19230,"stargazers_count":4764,"watchers_count":4764,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":494,"mirror_url":null,"open_issues_count":144,"forks":494,"open_issues":144,"watchers":4764,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drone/drone/pulls/978"},"html":{"href":"https://github.com/drone/drone/pull/978"},"issue":{"href":"https://api.github.com/repos/drone/drone/issues/978"},"comments":{"href":"https://api.github.com/repos/drone/drone/issues/978/comments"},"review_comments":{"href":"https://api.github.com/repos/drone/drone/pulls/978/comments"},"review_comment":{"href":"https://api.github.com/repos/drone/drone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drone/drone/pulls/978/commits"},"statuses":{"href":"https://api.github.com/repos/drone/drone/statuses/26b710fca469666cb2be985630389f6df1adaa21"}}}}