Created
August 28, 2014 20:49
-
-
Save Phrogz/6f8bfc3fab702c28990d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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