Skip to content

Instantly share code, notes, and snippets.

@Phrogz
Created August 28, 2014 20:49
Show Gist options
  • Save Phrogz/6f8bfc3fab702c28990d to your computer and use it in GitHub Desktop.
Save Phrogz/6f8bfc3fab702c28990d to your computer and use it in GitHub Desktop.
peers = {
node1: :node2,
node2: :node1,
node3: :node4,
node4: :node3
}
describe 'peers' do
peers.each do |a,b|
it "should have #{b} as a peer", if: Socket.gethostname=="#{a}.vagrantup.com" do
expect(command "gluster peer status | grep #{b}").to return_exit_status 0
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment