{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments/295805166","pull_request_review_id":252286820,"id":295805166,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NTgwNTE2Ng==","diff_hunk":"@@ -218,5 +218,327 @@ await using (var consumer = client.CreateConsumer(partition, EventPosition.Lates\n                 }\n             }\n         }\n+\n+        /// <summary>\n+        ///   Verifies that the <see cref=\"EventHubConsumer\" /> is able to\n+        ///   connect to the Event Hubs service and perform operations.\n+        /// </summary>\n+        ///\n+        [Test]\n+        public async Task ReceiveCanReadSingleEvent()\n+        {\n+            await using (var scope = await EventHubScope.CreateAsync(1))\n+            {\n+                var connectionString = TestEnvironment.BuildConnectionStringForEventHub(scope.EventHubName);\n+\n+                var eventBatch = new[]\n+                {\n+                    new EventData(Encoding.UTF8.GetBytes(\"Lonely\"))\n+                };\n+\n+                await using (var client = new EventHubClient(connectionString))\n+                {\n+                    var partition = (await client.GetPartitionIdsAsync()).First();\n+\n+                    await using (var producer = client.CreateProducer(new EventHubProducerOptions { PartitionId = partition }))\n+                    await using (var consumer = client.CreateConsumer(partition, EventPosition.Latest))\n+                    {\n+                        // Initiate an operation to force the consumer to connect and set its position at the\n+                        // end of the event stream.\n+\n+                        Assert.That(async () => await consumer.ReceiveAsync(1, TimeSpan.Zero), Throws.Nothing);\n+\n+                        // Send the batch of events.\n+\n+                        await producer.SendAsync(eventBatch);\n+\n+                        // Receive and validate the events; because there is some non-determinism in the messaging flow, the\n+                        // sent events may not be immediately available.  Allow for a small number of attempts to receive, in order\n+                        // to account for availability delays.\n+\n+                        var receivedEvents = new List<EventData>();\n+                        var index = 0;\n+\n+                        while ((receivedEvents.Count < eventBatch.Length) && (++index < 3))","path":"sdk/eventhub/Azure.Messaging.EventHubs/tests/EventHubConsumer/EventHubConsumerLiveTests.cs","position":65,"original_position":65,"commit_id":"058d6ec919a72ad81c63c58949b23ac4d329e88f","original_commit_id":"058d6ec919a72ad81c63c58949b23ac4d329e88f","user":{"login":"jsquire","id":913445,"node_id":"MDQ6VXNlcjkxMzQ0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/913445?v=4","gravatar_id":"","url":"https://api.github.com/users/jsquire","html_url":"https://github.com/jsquire","followers_url":"https://api.github.com/users/jsquire/followers","following_url":"https://api.github.com/users/jsquire/following{/other_user}","gists_url":"https://api.github.com/users/jsquire/gists{/gist_id}","starred_url":"https://api.github.com/users/jsquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsquire/subscriptions","organizations_url":"https://api.github.com/users/jsquire/orgs","repos_url":"https://api.github.com/users/jsquire/repos","events_url":"https://api.github.com/users/jsquire/events{/privacy}","received_events_url":"https://api.github.com/users/jsquire/received_events","type":"User","site_admin":false},"body":"we should probably extract the `3` into a constant now that we're using it in a bunch of places.   I also had to kick it up to `5` when adding the dynamic management stuff, since the hub throughput is now a bit slower with concurrent operations.     Probably would be a good idea to unify on `5`.","created_at":"2019-06-20T13:27:53Z","updated_at":"2019-06-20T13:35:13Z","html_url":"https://github.com/Azure/azure-sdk-for-net/pull/6643#discussion_r295805166","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments/295805166"},"html":{"href":"https://github.com/Azure/azure-sdk-for-net/pull/6643#discussion_r295805166"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643","id":289863930,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg5ODYzOTMw","html_url":"https://github.com/Azure/azure-sdk-for-net/pull/6643","diff_url":"https://github.com/Azure/azure-sdk-for-net/pull/6643.diff","patch_url":"https://github.com/Azure/azure-sdk-for-net/pull/6643.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/6643","number":6643,"state":"open","locked":false,"title":"[Event Hubs Client] Track Two: First Preview (Consumer Live Tests)","user":{"login":"kinelski","id":7576220,"node_id":"MDQ6VXNlcjc1NzYyMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7576220?v=4","gravatar_id":"","url":"https://api.github.com/users/kinelski","html_url":"https://github.com/kinelski","followers_url":"https://api.github.com/users/kinelski/followers","following_url":"https://api.github.com/users/kinelski/following{/other_user}","gists_url":"https://api.github.com/users/kinelski/gists{/gist_id}","starred_url":"https://api.github.com/users/kinelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinelski/subscriptions","organizations_url":"https://api.github.com/users/kinelski/orgs","repos_url":"https://api.github.com/users/kinelski/repos","events_url":"https://api.github.com/users/kinelski/events{/privacy}","received_events_url":"https://api.github.com/users/kinelski/received_events","type":"User","site_admin":false},"body":"Consumer Live Tests for Track Two. More tests will be added for the First Preview.\r\n\r\nRelated: #6352","created_at":"2019-06-19T20:20:11Z","updated_at":"2019-06-20T13:35:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a600d36eb932e6dca3767eefed4b2e60eedd61fa","assignee":{"login":"kinelski","id":7576220,"node_id":"MDQ6VXNlcjc1NzYyMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7576220?v=4","gravatar_id":"","url":"https://api.github.com/users/kinelski","html_url":"https://github.com/kinelski","followers_url":"https://api.github.com/users/kinelski/followers","following_url":"https://api.github.com/users/kinelski/following{/other_user}","gists_url":"https://api.github.com/users/kinelski/gists{/gist_id}","starred_url":"https://api.github.com/users/kinelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinelski/subscriptions","organizations_url":"https://api.github.com/users/kinelski/orgs","repos_url":"https://api.github.com/users/kinelski/repos","events_url":"https://api.github.com/users/kinelski/events{/privacy}","received_events_url":"https://api.github.com/users/kinelski/received_events","type":"User","site_admin":false},"assignees":[{"login":"kinelski","id":7576220,"node_id":"MDQ6VXNlcjc1NzYyMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7576220?v=4","gravatar_id":"","url":"https://api.github.com/users/kinelski","html_url":"https://github.com/kinelski","followers_url":"https://api.github.com/users/kinelski/followers","following_url":"https://api.github.com/users/kinelski/following{/other_user}","gists_url":"https://api.github.com/users/kinelski/gists{/gist_id}","starred_url":"https://api.github.com/users/kinelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinelski/subscriptions","organizations_url":"https://api.github.com/users/kinelski/orgs","repos_url":"https://api.github.com/users/kinelski/repos","events_url":"https://api.github.com/users/kinelski/events{/privacy}","received_events_url":"https://api.github.com/users/kinelski/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1178447860,"node_id":"MDU6TGFiZWwxMTc4NDQ3ODYw","url":"https://api.github.com/repos/Azure/azure-sdk-for-net/labels/Client","name":"Client","color":"ffeb77","default":false},{"id":723085917,"node_id":"MDU6TGFiZWw3MjMwODU5MTc=","url":"https://api.github.com/repos/Azure/azure-sdk-for-net/labels/Event%20Hubs","name":"Event Hubs","color":"e99695","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/6643/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/statuses/058d6ec919a72ad81c63c58949b23ac4d329e88f","head":{"label":"kinelski:eh_consumer","ref":"eh_consumer","sha":"058d6ec919a72ad81c63c58949b23ac4d329e88f","user":{"login":"kinelski","id":7576220,"node_id":"MDQ6VXNlcjc1NzYyMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7576220?v=4","gravatar_id":"","url":"https://api.github.com/users/kinelski","html_url":"https://github.com/kinelski","followers_url":"https://api.github.com/users/kinelski/followers","following_url":"https://api.github.com/users/kinelski/following{/other_user}","gists_url":"https://api.github.com/users/kinelski/gists{/gist_id}","starred_url":"https://api.github.com/users/kinelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinelski/subscriptions","organizations_url":"https://api.github.com/users/kinelski/orgs","repos_url":"https://api.github.com/users/kinelski/repos","events_url":"https://api.github.com/users/kinelski/events{/privacy}","received_events_url":"https://api.github.com/users/kinelski/received_events","type":"User","site_admin":false},"repo":{"id":192429308,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI0MjkzMDg=","name":"azure-sdk-for-net","full_name":"kinelski/azure-sdk-for-net","private":false,"owner":{"login":"kinelski","id":7576220,"node_id":"MDQ6VXNlcjc1NzYyMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7576220?v=4","gravatar_id":"","url":"https://api.github.com/users/kinelski","html_url":"https://github.com/kinelski","followers_url":"https://api.github.com/users/kinelski/followers","following_url":"https://api.github.com/users/kinelski/following{/other_user}","gists_url":"https://api.github.com/users/kinelski/gists{/gist_id}","starred_url":"https://api.github.com/users/kinelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinelski/subscriptions","organizations_url":"https://api.github.com/users/kinelski/orgs","repos_url":"https://api.github.com/users/kinelski/repos","events_url":"https://api.github.com/users/kinelski/events{/privacy}","received_events_url":"https://api.github.com/users/kinelski/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kinelski/azure-sdk-for-net","description":".NET Libraries for Azure","fork":true,"url":"https://api.github.com/repos/kinelski/azure-sdk-for-net","forks_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/forks","keys_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/teams","hooks_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/hooks","issue_events_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/issues/events{/number}","events_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/events","assignees_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/assignees{/user}","branches_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/branches{/branch}","tags_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/tags","blobs_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/statuses/{sha}","languages_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/languages","stargazers_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/stargazers","contributors_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/contributors","subscribers_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/subscribers","subscription_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/subscription","commits_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/contents/{+path}","compare_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/merges","archive_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/downloads","issues_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/issues{/number}","pulls_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/pulls{/number}","milestones_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/milestones{/number}","notifications_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/labels{/name}","releases_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/releases{/id}","deployments_url":"https://api.github.com/repos/kinelski/azure-sdk-for-net/deployments","created_at":"2019-06-17T22:58:04Z","updated_at":"2019-06-17T22:59:20Z","pushed_at":"2019-06-19T20:06:00Z","git_url":"git://github.com/kinelski/azure-sdk-for-net.git","ssh_url":"git@github.com:kinelski/azure-sdk-for-net.git","clone_url":"https://github.com/kinelski/azure-sdk-for-net.git","svn_url":"https://github.com/kinelski/azure-sdk-for-net","homepage":"https://docs.microsoft.com/en-us/dotnet/azure/","size":307208,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"b224223a570f96e4271f1eeaef5070e7e3fa5add","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","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":2928944,"node_id":"MDEwOlJlcG9zaXRvcnkyOTI4OTQ0","name":"azure-sdk-for-net","full_name":"Azure/azure-sdk-for-net","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","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},"html_url":"https://github.com/Azure/azure-sdk-for-net","description":".NET Libraries for Azure","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-net","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/deployments","created_at":"2011-12-06T23:32:47Z","updated_at":"2019-06-20T13:08:10Z","pushed_at":"2019-06-20T13:07:58Z","git_url":"git://github.com/Azure/azure-sdk-for-net.git","ssh_url":"git@github.com:Azure/azure-sdk-for-net.git","clone_url":"https://github.com/Azure/azure-sdk-for-net.git","svn_url":"https://github.com/Azure/azure-sdk-for-net","homepage":"https://docs.microsoft.com/en-us/dotnet/azure/","size":364690,"stargazers_count":1379,"watchers_count":1379,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1415,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":590,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1415,"open_issues":590,"watchers":1379,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643"},"html":{"href":"https://github.com/Azure/azure-sdk-for-net/pull/6643"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/6643"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/6643/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/6643/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/statuses/058d6ec919a72ad81c63c58949b23ac4d329e88f"}},"author_association":"NONE"}}
{"actor":{"display_login":"jsquire"}}