{"action":"created","comment":{"url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments/40319754","id":40319754,"diff_hunk":"@@ -0,0 +1,248 @@\n+﻿using System.Collections.Immutable;\n+using System.Linq;\n+using Akka.Remote.TestKit;\n+using Akka.TestKit;\n+\n+namespace Akka.Cluster.Tests.MultiNode\n+{\n+    public class LeaderElectionSpecConfig : MultiNodeConfig\n+    {\n+        private readonly RoleName _controller;\n+        public RoleName Controller\n+        {\n+            get { return _controller; }\n+        }\n+\n+        private readonly RoleName _first;\n+        public RoleName First\n+        {\n+            get { return _first; }\n+        }\n+\n+        private readonly RoleName _second;\n+        public RoleName Second\n+        {\n+            get { return _second; }\n+        }\n+\n+        private readonly RoleName _third;\n+        public RoleName Third\n+        {\n+            get { return _third; }\n+        }\n+\n+        private readonly RoleName _forth;\n+        public RoleName Forth\n+        {\n+            get { return _forth; }\n+        }\n+\n+        public LeaderElectionSpecConfig(bool failureDectectorPuppet)\n+        {\n+            _controller = Role(\"controller\");\n+            _first = Role(\"first\");\n+            _second = Role(\"second\");\n+            _third = Role(\"third\");\n+            _forth = Role(\"forth\");\n+\n+            if (failureDectectorPuppet)","path":"src/core/Akka.Cluster.Tests.MultiNode/LeaderElectionSpec.cs","position":48,"original_position":48,"commit_id":"1fb67afb8659ff5c29452e02c3b6ebcb4631b3c6","original_commit_id":"1fb67afb8659ff5c29452e02c3b6ebcb4631b3c6","user":{"login":"GraemeBradbury","id":93497,"avatar_url":"https://avatars.githubusercontent.com/u/93497?v=3","gravatar_id":"","url":"https://api.github.com/users/GraemeBradbury","html_url":"https://github.com/GraemeBradbury","followers_url":"https://api.github.com/users/GraemeBradbury/followers","following_url":"https://api.github.com/users/GraemeBradbury/following{/other_user}","gists_url":"https://api.github.com/users/GraemeBradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/GraemeBradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraemeBradbury/subscriptions","organizations_url":"https://api.github.com/users/GraemeBradbury/orgs","repos_url":"https://api.github.com/users/GraemeBradbury/repos","events_url":"https://api.github.com/users/GraemeBradbury/events{/privacy}","received_events_url":"https://api.github.com/users/GraemeBradbury/received_events","type":"User","site_admin":false},"body":"No need for the conditional.\r\nMultiNodeClusterSpec.ClusterConfig has an override that'll take failureDetectorPuppet","created_at":"2015-09-24T13:46:37Z","updated_at":"2015-09-24T13:46:37Z","html_url":"https://github.com/akkadotnet/akka.net/pull/1323#discussion_r40319754","pull_request_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323","_links":{"self":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments/40319754"},"html":{"href":"https://github.com/akkadotnet/akka.net/pull/1323#discussion_r40319754"},"pull_request":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323"}}},"pull_request":{"url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323","id":45487468,"html_url":"https://github.com/akkadotnet/akka.net/pull/1323","diff_url":"https://github.com/akkadotnet/akka.net/pull/1323.diff","patch_url":"https://github.com/akkadotnet/akka.net/pull/1323.patch","issue_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1323","number":1323,"state":"open","locked":false,"title":"[wip] leader election spec","user":{"login":"rodrigovidal","id":388081,"avatar_url":"https://avatars.githubusercontent.com/u/388081?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigovidal","html_url":"https://github.com/rodrigovidal","followers_url":"https://api.github.com/users/rodrigovidal/followers","following_url":"https://api.github.com/users/rodrigovidal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigovidal/subscriptions","organizations_url":"https://api.github.com/users/rodrigovidal/orgs","repos_url":"https://api.github.com/users/rodrigovidal/repos","events_url":"https://api.github.com/users/rodrigovidal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigovidal/received_events","type":"User","site_admin":false},"body":"Port of https://github.com/akka/akka/blob/master/akka-cluster/src/multi-jvm/scala/akka/cluster/LeaderElectionSpec.scala\r\n\r\n","created_at":"2015-09-20T00:55:52Z","updated_at":"2015-09-24T13:46:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eadc898cecaa3513d356cb013da9d205a23cafc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323/commits","review_comments_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323/comments","review_comment_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1323/comments","statuses_url":"https://api.github.com/repos/akkadotnet/akka.net/statuses/1fb67afb8659ff5c29452e02c3b6ebcb4631b3c6","head":{"label":"rodrigovidal:leader-election","ref":"leader-election","sha":"1fb67afb8659ff5c29452e02c3b6ebcb4631b3c6","user":{"login":"rodrigovidal","id":388081,"avatar_url":"https://avatars.githubusercontent.com/u/388081?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigovidal","html_url":"https://github.com/rodrigovidal","followers_url":"https://api.github.com/users/rodrigovidal/followers","following_url":"https://api.github.com/users/rodrigovidal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigovidal/subscriptions","organizations_url":"https://api.github.com/users/rodrigovidal/orgs","repos_url":"https://api.github.com/users/rodrigovidal/repos","events_url":"https://api.github.com/users/rodrigovidal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigovidal/received_events","type":"User","site_admin":false},"repo":{"id":17929872,"name":"akka.net","full_name":"rodrigovidal/akka.net","owner":{"login":"rodrigovidal","id":388081,"avatar_url":"https://avatars.githubusercontent.com/u/388081?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigovidal","html_url":"https://github.com/rodrigovidal","followers_url":"https://api.github.com/users/rodrigovidal/followers","following_url":"https://api.github.com/users/rodrigovidal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigovidal/subscriptions","organizations_url":"https://api.github.com/users/rodrigovidal/orgs","repos_url":"https://api.github.com/users/rodrigovidal/repos","events_url":"https://api.github.com/users/rodrigovidal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigovidal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rodrigovidal/akka.net","description":"Port of Akka actors for .NET","fork":true,"url":"https://api.github.com/repos/rodrigovidal/akka.net","forks_url":"https://api.github.com/repos/rodrigovidal/akka.net/forks","keys_url":"https://api.github.com/repos/rodrigovidal/akka.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rodrigovidal/akka.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rodrigovidal/akka.net/teams","hooks_url":"https://api.github.com/repos/rodrigovidal/akka.net/hooks","issue_events_url":"https://api.github.com/repos/rodrigovidal/akka.net/issues/events{/number}","events_url":"https://api.github.com/repos/rodrigovidal/akka.net/events","assignees_url":"https://api.github.com/repos/rodrigovidal/akka.net/assignees{/user}","branches_url":"https://api.github.com/repos/rodrigovidal/akka.net/branches{/branch}","tags_url":"https://api.github.com/repos/rodrigovidal/akka.net/tags","blobs_url":"https://api.github.com/repos/rodrigovidal/akka.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rodrigovidal/akka.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rodrigovidal/akka.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/rodrigovidal/akka.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rodrigovidal/akka.net/statuses/{sha}","languages_url":"https://api.github.com/repos/rodrigovidal/akka.net/languages","stargazers_url":"https://api.github.com/repos/rodrigovidal/akka.net/stargazers","contributors_url":"https://api.github.com/repos/rodrigovidal/akka.net/contributors","subscribers_url":"https://api.github.com/repos/rodrigovidal/akka.net/subscribers","subscription_url":"https://api.github.com/repos/rodrigovidal/akka.net/subscription","commits_url":"https://api.github.com/repos/rodrigovidal/akka.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/rodrigovidal/akka.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/rodrigovidal/akka.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/rodrigovidal/akka.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/rodrigovidal/akka.net/contents/{+path}","compare_url":"https://api.github.com/repos/rodrigovidal/akka.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rodrigovidal/akka.net/merges","archive_url":"https://api.github.com/repos/rodrigovidal/akka.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rodrigovidal/akka.net/downloads","issues_url":"https://api.github.com/repos/rodrigovidal/akka.net/issues{/number}","pulls_url":"https://api.github.com/repos/rodrigovidal/akka.net/pulls{/number}","milestones_url":"https://api.github.com/repos/rodrigovidal/akka.net/milestones{/number}","notifications_url":"https://api.github.com/repos/rodrigovidal/akka.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rodrigovidal/akka.net/labels{/name}","releases_url":"https://api.github.com/repos/rodrigovidal/akka.net/releases{/id}","created_at":"2014-03-20T03:41:44Z","updated_at":"2015-02-28T00:51:36Z","pushed_at":"2015-09-20T02:24:52Z","git_url":"git://github.com/rodrigovidal/akka.net.git","ssh_url":"git@github.com:rodrigovidal/akka.net.git","clone_url":"https://github.com/rodrigovidal/akka.net.git","svn_url":"https://github.com/rodrigovidal/akka.net","homepage":"","size":44838,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"akkadotnet:dev","ref":"dev","sha":"0f0a382d7353cb2317650a7e89e62528bd67a27d","user":{"login":"akkadotnet","id":7003835,"avatar_url":"https://avatars.githubusercontent.com/u/7003835?v=3","gravatar_id":"","url":"https://api.github.com/users/akkadotnet","html_url":"https://github.com/akkadotnet","followers_url":"https://api.github.com/users/akkadotnet/followers","following_url":"https://api.github.com/users/akkadotnet/following{/other_user}","gists_url":"https://api.github.com/users/akkadotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/akkadotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akkadotnet/subscriptions","organizations_url":"https://api.github.com/users/akkadotnet/orgs","repos_url":"https://api.github.com/users/akkadotnet/repos","events_url":"https://api.github.com/users/akkadotnet/events{/privacy}","received_events_url":"https://api.github.com/users/akkadotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":15509440,"name":"akka.net","full_name":"akkadotnet/akka.net","owner":{"login":"akkadotnet","id":7003835,"avatar_url":"https://avatars.githubusercontent.com/u/7003835?v=3","gravatar_id":"","url":"https://api.github.com/users/akkadotnet","html_url":"https://github.com/akkadotnet","followers_url":"https://api.github.com/users/akkadotnet/followers","following_url":"https://api.github.com/users/akkadotnet/following{/other_user}","gists_url":"https://api.github.com/users/akkadotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/akkadotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akkadotnet/subscriptions","organizations_url":"https://api.github.com/users/akkadotnet/orgs","repos_url":"https://api.github.com/users/akkadotnet/repos","events_url":"https://api.github.com/users/akkadotnet/events{/privacy}","received_events_url":"https://api.github.com/users/akkadotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akkadotnet/akka.net","description":"Port of Akka actors for .NET","fork":false,"url":"https://api.github.com/repos/akkadotnet/akka.net","forks_url":"https://api.github.com/repos/akkadotnet/akka.net/forks","keys_url":"https://api.github.com/repos/akkadotnet/akka.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akkadotnet/akka.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akkadotnet/akka.net/teams","hooks_url":"https://api.github.com/repos/akkadotnet/akka.net/hooks","issue_events_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/events{/number}","events_url":"https://api.github.com/repos/akkadotnet/akka.net/events","assignees_url":"https://api.github.com/repos/akkadotnet/akka.net/assignees{/user}","branches_url":"https://api.github.com/repos/akkadotnet/akka.net/branches{/branch}","tags_url":"https://api.github.com/repos/akkadotnet/akka.net/tags","blobs_url":"https://api.github.com/repos/akkadotnet/akka.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akkadotnet/akka.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akkadotnet/akka.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/akkadotnet/akka.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akkadotnet/akka.net/statuses/{sha}","languages_url":"https://api.github.com/repos/akkadotnet/akka.net/languages","stargazers_url":"https://api.github.com/repos/akkadotnet/akka.net/stargazers","contributors_url":"https://api.github.com/repos/akkadotnet/akka.net/contributors","subscribers_url":"https://api.github.com/repos/akkadotnet/akka.net/subscribers","subscription_url":"https://api.github.com/repos/akkadotnet/akka.net/subscription","commits_url":"https://api.github.com/repos/akkadotnet/akka.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/akkadotnet/akka.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/akkadotnet/akka.net/contents/{+path}","compare_url":"https://api.github.com/repos/akkadotnet/akka.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akkadotnet/akka.net/merges","archive_url":"https://api.github.com/repos/akkadotnet/akka.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akkadotnet/akka.net/downloads","issues_url":"https://api.github.com/repos/akkadotnet/akka.net/issues{/number}","pulls_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls{/number}","milestones_url":"https://api.github.com/repos/akkadotnet/akka.net/milestones{/number}","notifications_url":"https://api.github.com/repos/akkadotnet/akka.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akkadotnet/akka.net/labels{/name}","releases_url":"https://api.github.com/repos/akkadotnet/akka.net/releases{/id}","created_at":"2013-12-29T14:17:38Z","updated_at":"2015-09-24T08:59:56Z","pushed_at":"2015-09-22T18:37:39Z","git_url":"git://github.com/akkadotnet/akka.net.git","ssh_url":"git@github.com:akkadotnet/akka.net.git","clone_url":"https://github.com/akkadotnet/akka.net.git","svn_url":"https://github.com/akkadotnet/akka.net","homepage":"http://getakka.net","size":60788,"stargazers_count":1191,"watchers_count":1191,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":274,"mirror_url":null,"open_issues_count":129,"forks":274,"open_issues":129,"watchers":1191,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323"},"html":{"href":"https://github.com/akkadotnet/akka.net/pull/1323"},"issue":{"href":"https://api.github.com/repos/akkadotnet/akka.net/issues/1323"},"comments":{"href":"https://api.github.com/repos/akkadotnet/akka.net/issues/1323/comments"},"review_comments":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323/comments"},"review_comment":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1323/commits"},"statuses":{"href":"https://api.github.com/repos/akkadotnet/akka.net/statuses/1fb67afb8659ff5c29452e02c3b6ebcb4631b3c6"}}}}