{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/23250853","id":23250853,"diff_hunk":"@@ -925,6 +953,57 @@ namespace {\n         ASSERT_TRUE(doc[\"test\"].boolean());\n     }\n \n+    TEST_F(DBClientTest, CopyDatabaseMONGODBCR) {\n+        // only run this test if we have auth\n+        if (serverGTE(&c, 2, 4) && !serverGTE(&c, 2, 7)) {","path":"src/mongo/integration/standalone/dbclient_test.cpp","position":50,"original_position":50,"commit_id":"168cfaec3ec67c5f087471527dff11335f682d2c","original_commit_id":"168cfaec3ec67c5f087471527dff11335f682d2c","user":{"login":"samantharitter","id":1824529,"avatar_url":"https://avatars.githubusercontent.com/u/1824529?v=3","gravatar_id":"","url":"https://api.github.com/users/samantharitter","html_url":"https://github.com/samantharitter","followers_url":"https://api.github.com/users/samantharitter/followers","following_url":"https://api.github.com/users/samantharitter/following{/other_user}","gists_url":"https://api.github.com/users/samantharitter/gists{/gist_id}","starred_url":"https://api.github.com/users/samantharitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samantharitter/subscriptions","organizations_url":"https://api.github.com/users/samantharitter/orgs","repos_url":"https://api.github.com/users/samantharitter/repos","events_url":"https://api.github.com/users/samantharitter/events{/privacy}","received_events_url":"https://api.github.com/users/samantharitter/received_events","type":"User","site_admin":false},"body":"The logic is that if the server is a new server, then we'll run the SCRAM-SHA-1 test instead of the MONGODB-CR test.","created_at":"2015-01-20T20:02:55Z","updated_at":"2015-01-20T20:02:55Z","html_url":"https://github.com/mongodb/mongo-cxx-driver/pull/231#discussion_r23250853","pull_request_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/23250853"},"html":{"href":"https://github.com/mongodb/mongo-cxx-driver/pull/231#discussion_r23250853"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231","id":27454316,"html_url":"https://github.com/mongodb/mongo-cxx-driver/pull/231","diff_url":"https://github.com/mongodb/mongo-cxx-driver/pull/231.diff","patch_url":"https://github.com/mongodb/mongo-cxx-driver/pull/231.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/231","number":231,"state":"open","locked":false,"title":"CXX-389 Add auth to copydb helper (MONGODB-CR and SCRAM-SHA-1)","user":{"login":"samantharitter","id":1824529,"avatar_url":"https://avatars.githubusercontent.com/u/1824529?v=3","gravatar_id":"","url":"https://api.github.com/users/samantharitter","html_url":"https://github.com/samantharitter","followers_url":"https://api.github.com/users/samantharitter/followers","following_url":"https://api.github.com/users/samantharitter/following{/other_user}","gists_url":"https://api.github.com/users/samantharitter/gists{/gist_id}","starred_url":"https://api.github.com/users/samantharitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samantharitter/subscriptions","organizations_url":"https://api.github.com/users/samantharitter/orgs","repos_url":"https://api.github.com/users/samantharitter/repos","events_url":"https://api.github.com/users/samantharitter/events{/privacy}","received_events_url":"https://api.github.com/users/samantharitter/received_events","type":"User","site_admin":false},"body":"This code borrows heavily from the [V8 implementation in the server](https://github.com/mongodb/mongo/blob/master/src/mongo/scripting/v8_db.cpp#L392-L478).","created_at":"2015-01-15T19:20:10Z","updated_at":"2015-01-20T20:02:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a548ca667e79bff8c6765c0386c54a61001480da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/231/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/168cfaec3ec67c5f087471527dff11335f682d2c","head":{"label":"samantharitter:CXX-389","ref":"CXX-389","sha":"168cfaec3ec67c5f087471527dff11335f682d2c","user":{"login":"samantharitter","id":1824529,"avatar_url":"https://avatars.githubusercontent.com/u/1824529?v=3","gravatar_id":"","url":"https://api.github.com/users/samantharitter","html_url":"https://github.com/samantharitter","followers_url":"https://api.github.com/users/samantharitter/followers","following_url":"https://api.github.com/users/samantharitter/following{/other_user}","gists_url":"https://api.github.com/users/samantharitter/gists{/gist_id}","starred_url":"https://api.github.com/users/samantharitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samantharitter/subscriptions","organizations_url":"https://api.github.com/users/samantharitter/orgs","repos_url":"https://api.github.com/users/samantharitter/repos","events_url":"https://api.github.com/users/samantharitter/events{/privacy}","received_events_url":"https://api.github.com/users/samantharitter/received_events","type":"User","site_admin":false},"repo":{"id":22432476,"name":"mongo-cxx-driver","full_name":"samantharitter/mongo-cxx-driver","owner":{"login":"samantharitter","id":1824529,"avatar_url":"https://avatars.githubusercontent.com/u/1824529?v=3","gravatar_id":"","url":"https://api.github.com/users/samantharitter","html_url":"https://github.com/samantharitter","followers_url":"https://api.github.com/users/samantharitter/followers","following_url":"https://api.github.com/users/samantharitter/following{/other_user}","gists_url":"https://api.github.com/users/samantharitter/gists{/gist_id}","starred_url":"https://api.github.com/users/samantharitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samantharitter/subscriptions","organizations_url":"https://api.github.com/users/samantharitter/orgs","repos_url":"https://api.github.com/users/samantharitter/repos","events_url":"https://api.github.com/users/samantharitter/events{/privacy}","received_events_url":"https://api.github.com/users/samantharitter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samantharitter/mongo-cxx-driver","description":"C++ Driver for MongoDB","fork":true,"url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver","forks_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/forks","keys_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/teams","hooks_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/hooks","issue_events_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/issues/events{/number}","events_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/events","assignees_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/assignees{/user}","branches_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/branches{/branch}","tags_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/tags","blobs_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/languages","stargazers_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/stargazers","contributors_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/contributors","subscribers_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/subscribers","subscription_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/subscription","commits_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/issues/comments/{number}","contents_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/contents/{+path}","compare_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/merges","archive_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/downloads","issues_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/issues{/number}","pulls_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/labels{/name}","releases_url":"https://api.github.com/repos/samantharitter/mongo-cxx-driver/releases{/id}","created_at":"2014-07-30T15:02:13Z","updated_at":"2014-07-30T08:18:46Z","pushed_at":"2015-01-15T20:45:26Z","git_url":"git://github.com/samantharitter/mongo-cxx-driver.git","ssh_url":"git@github.com:samantharitter/mongo-cxx-driver.git","clone_url":"https://github.com/samantharitter/mongo-cxx-driver.git","svn_url":"https://github.com/samantharitter/mongo-cxx-driver","homepage":null,"size":4092,"stargazers_count":0,"watchers_count":0,"language":null,"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":"legacy"}},"base":{"label":"mongodb:legacy","ref":"legacy","sha":"000791b45a2991b15b07557a9348531f8a49279f","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":15881868,"name":"mongo-cxx-driver","full_name":"mongodb/mongo-cxx-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-cxx-driver","description":"C++ Driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/comments/{number}","contents_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/releases{/id}","created_at":"2014-01-13T21:08:36Z","updated_at":"2015-01-19T08:13:50Z","pushed_at":"2015-01-17T18:50:24Z","git_url":"git://github.com/mongodb/mongo-cxx-driver.git","ssh_url":"git@github.com:mongodb/mongo-cxx-driver.git","clone_url":"https://github.com/mongodb/mongo-cxx-driver.git","svn_url":"https://github.com/mongodb/mongo-cxx-driver","homepage":null,"size":7561,"stargazers_count":105,"watchers_count":105,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":4,"forks":95,"open_issues":4,"watchers":105,"default_branch":"legacy"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231"},"html":{"href":"https://github.com/mongodb/mongo-cxx-driver/pull/231"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/231"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/168cfaec3ec67c5f087471527dff11335f682d2c"}}}}