{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/2524","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/2524/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/2524/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/2524/events","html_url":"https://github.com/hashicorp/consul/issues/2524","id":190848918,"number":2524,"title":"How to tell if a node is a member of a cluster?","user":{"login":"joshuaspence","id":234676,"avatar_url":"https://avatars.githubusercontent.com/u/234676?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaspence","html_url":"https://github.com/joshuaspence","followers_url":"https://api.github.com/users/joshuaspence/followers","following_url":"https://api.github.com/users/joshuaspence/following{/other_user}","gists_url":"https://api.github.com/users/joshuaspence/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaspence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaspence/subscriptions","organizations_url":"https://api.github.com/users/joshuaspence/orgs","repos_url":"https://api.github.com/users/joshuaspence/repos","events_url":"https://api.github.com/users/joshuaspence/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaspence/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-21T22:04:02Z","updated_at":"2016-12-20T01:50:51Z","closed_at":"2016-12-20T01:50:51Z","body":"I am wanting to write some sort of sanity check script for our hosts which are running Consul, using [Serverspec](http://serverspec.org/). Currently we just do this:\r\n\r\n```\r\ndescribe 'consul' do\r\n  context service('consul') do\r\n    it { should be_enabled }\r\n    it { should be_running }\r\n  end\r\n\r\n  context command('consul configtest -config-dir /etc/consul') do\r\n    its(:exit_status) { should eq 0 }\r\n  end\r\n\r\n  context port(8500) do\r\n    it { should be_listening.on('127.0.0.1').with('tcp') }\r\n  end\r\nend\r\n```\r\n\r\nI am wanting to add a test which verifies that the agent has successfully connected to the cluster, but I am not sure if there is any `consul` command which allows me to do this?"}}
{"actor":{"display_login":"slackpad"}}