{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments/238841108","pull_request_review_id":181482628,"id":238841108,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODg0MTEwOA==","diff_hunk":"@@ -0,0 +1,97 @@\n+require 'lite_spec_helper'\n+\n+describe 'Uri Options' do\n+  include Mongo::ConnectionString\n+\n+  URI_OPTIONS_TESTS.each do |file|\n+\n+    spec = Mongo::ConnectionString::Spec.new(file)\n+\n+    context(spec.description) do\n+\n+      before(:all) do\n+\n+        module Mongo\n+          class Address\n+\n+            private\n+\n+            alias :original_create_resolver :create_resolver\n+            def create_resolver(timeout, ssl_options)\n+              family = (host == 'localhost') ? ::Socket::AF_INET : ::Socket::AF_UNSPEC\n+              info = ::Socket.getaddrinfo(host, nil, family, ::Socket::SOCK_STREAM)\n+              FAMILY_MAP[info.first[4]].new(info[3], port, host)\n+            end\n+          end\n+        end\n+      end\n+\n+      after(:all) do\n+\n+        module Mongo\n+          # Return the implementations to their originals for the other\n+          # tests in the suite.\n+          class Address\n+            alias :create_resolver :original_create_resolver\n+            remove_method(:original_create_resolver)\n+          end\n+        end\n+      end\n+\n+      spec.tests.each do |test|\n+\n+        # Skip optional tests for options the driver doesn't support.\n+        next if test.description.start_with?('tlsAllowInvalidHostnames', 'tlsInsecure')","path":"spec/spec_tests/uri_options_spec.rb","position":44,"original_position":44,"commit_id":"e396935447b59a9cf05b2622cb579227623ebdcb","original_commit_id":"ffc3704e2e0923fdd15d242950677192c11b4e22","user":{"login":"saghm","id":5875560,"node_id":"MDQ6VXNlcjU4NzU1NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/5875560?v=4","gravatar_id":"","url":"https://api.github.com/users/saghm","html_url":"https://github.com/saghm","followers_url":"https://api.github.com/users/saghm/followers","following_url":"https://api.github.com/users/saghm/following{/other_user}","gists_url":"https://api.github.com/users/saghm/gists{/gist_id}","starred_url":"https://api.github.com/users/saghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghm/subscriptions","organizations_url":"https://api.github.com/users/saghm/orgs","repos_url":"https://api.github.com/users/saghm/repos","events_url":"https://api.github.com/users/saghm/events{/privacy}","received_events_url":"https://api.github.com/users/saghm/received_events","type":"User","site_admin":false},"body":"`tlsInsecure` has been added","created_at":"2018-12-04T21:15:12Z","updated_at":"2018-12-04T21:15:12Z","html_url":"https://github.com/mongodb/mongo-ruby-driver/pull/1170#discussion_r238841108","pull_request_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments/238841108"},"html":{"href":"https://github.com/mongodb/mongo-ruby-driver/pull/1170#discussion_r238841108"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170"}},"in_reply_to_id":238831368},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170","id":234088434,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0MDg4NDM0","html_url":"https://github.com/mongodb/mongo-ruby-driver/pull/1170","diff_url":"https://github.com/mongodb/mongo-ruby-driver/pull/1170.diff","patch_url":"https://github.com/mongodb/mongo-ruby-driver/pull/1170.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/1170","number":1170,"state":"open","locked":false,"title":"Implement uri option spec tests","user":{"login":"saghm","id":5875560,"node_id":"MDQ6VXNlcjU4NzU1NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/5875560?v=4","gravatar_id":"","url":"https://api.github.com/users/saghm","html_url":"https://github.com/saghm","followers_url":"https://api.github.com/users/saghm/followers","following_url":"https://api.github.com/users/saghm/following{/other_user}","gists_url":"https://api.github.com/users/saghm/gists{/gist_id}","starred_url":"https://api.github.com/users/saghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghm/subscriptions","organizations_url":"https://api.github.com/users/saghm/orgs","repos_url":"https://api.github.com/users/saghm/repos","events_url":"https://api.github.com/users/saghm/events{/privacy}","received_events_url":"https://api.github.com/users/saghm/received_events","type":"User","site_admin":false},"body":"Spec test pull request: https://github.com/mongodb/specifications/pull/414","created_at":"2018-11-27T22:48:38Z","updated_at":"2018-12-04T21:15:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af52d033447ab32d94a2d6ccca323e073ff96373","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/1170/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/e396935447b59a9cf05b2622cb579227623ebdcb","head":{"label":"saghm:uri-options-spec","ref":"uri-options-spec","sha":"e396935447b59a9cf05b2622cb579227623ebdcb","user":{"login":"saghm","id":5875560,"node_id":"MDQ6VXNlcjU4NzU1NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/5875560?v=4","gravatar_id":"","url":"https://api.github.com/users/saghm","html_url":"https://github.com/saghm","followers_url":"https://api.github.com/users/saghm/followers","following_url":"https://api.github.com/users/saghm/following{/other_user}","gists_url":"https://api.github.com/users/saghm/gists{/gist_id}","starred_url":"https://api.github.com/users/saghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghm/subscriptions","organizations_url":"https://api.github.com/users/saghm/orgs","repos_url":"https://api.github.com/users/saghm/repos","events_url":"https://api.github.com/users/saghm/events{/privacy}","received_events_url":"https://api.github.com/users/saghm/received_events","type":"User","site_admin":false},"repo":{"id":40193935,"node_id":"MDEwOlJlcG9zaXRvcnk0MDE5MzkzNQ==","name":"mongo-ruby-driver","full_name":"saghm/mongo-ruby-driver","private":false,"owner":{"login":"saghm","id":5875560,"node_id":"MDQ6VXNlcjU4NzU1NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/5875560?v=4","gravatar_id":"","url":"https://api.github.com/users/saghm","html_url":"https://github.com/saghm","followers_url":"https://api.github.com/users/saghm/followers","following_url":"https://api.github.com/users/saghm/following{/other_user}","gists_url":"https://api.github.com/users/saghm/gists{/gist_id}","starred_url":"https://api.github.com/users/saghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghm/subscriptions","organizations_url":"https://api.github.com/users/saghm/orgs","repos_url":"https://api.github.com/users/saghm/repos","events_url":"https://api.github.com/users/saghm/events{/privacy}","received_events_url":"https://api.github.com/users/saghm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/saghm/mongo-ruby-driver","description":"Ruby driver for MongoDB","fork":true,"url":"https://api.github.com/repos/saghm/mongo-ruby-driver","forks_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/forks","keys_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/teams","hooks_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/hooks","issue_events_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/issues/events{/number}","events_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/events","assignees_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/assignees{/user}","branches_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/branches{/branch}","tags_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/tags","blobs_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/languages","stargazers_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/stargazers","contributors_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/contributors","subscribers_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/subscribers","subscription_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/subscription","commits_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/contents/{+path}","compare_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/merges","archive_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/downloads","issues_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/issues{/number}","pulls_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/labels{/name}","releases_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/releases{/id}","deployments_url":"https://api.github.com/repos/saghm/mongo-ruby-driver/deployments","created_at":"2015-08-04T15:48:40Z","updated_at":"2018-06-18T17:06:25Z","pushed_at":"2018-12-04T21:05:57Z","git_url":"git://github.com/saghm/mongo-ruby-driver.git","ssh_url":"git@github.com:saghm/mongo-ruby-driver.git","clone_url":"https://github.com/saghm/mongo-ruby-driver.git","svn_url":"https://github.com/saghm/mongo-ruby-driver","homepage":"http://api.mongodb.org/ruby","size":34509,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mongodb:master","ref":"master","sha":"90340ab3dd6b62fa4ab6d55e0bd86d2fa142d9b1","user":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","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":108125,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgxMjU=","name":"mongo-ruby-driver","full_name":"mongodb/mongo-ruby-driver","private":false,"owner":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","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},"html_url":"https://github.com/mongodb/mongo-ruby-driver","description":"Ruby driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/deployments","created_at":"2009-01-15T16:40:45Z","updated_at":"2018-12-04T07:14:56Z","pushed_at":"2018-12-04T21:06:00Z","git_url":"git://github.com/mongodb/mongo-ruby-driver.git","ssh_url":"git@github.com:mongodb/mongo-ruby-driver.git","clone_url":"https://github.com/mongodb/mongo-ruby-driver.git","svn_url":"https://github.com/mongodb/mongo-ruby-driver","homepage":"http://api.mongodb.org/ruby","size":34603,"stargazers_count":1358,"watchers_count":1358,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":485,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":485,"open_issues":8,"watchers":1358,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170"},"html":{"href":"https://github.com/mongodb/mongo-ruby-driver/pull/1170"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/1170"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/1170/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/1170/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/e396935447b59a9cf05b2622cb579227623ebdcb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"saghm"}}