This file contains 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
describe ".get_backup_metrics_per_node" do | |
it "should return backup metrics configured on a node" do | |
@test_chef_rest_call.stub(:get_rest => test_chef_node_3) | |
expect(BACKM::Chef.get_backup_metrics_per_node(test_backup_node_1)).to eql(test_backup_metrics_1) | |
end | |
it "should return empty hash when chef server is unavailable" do | |
@test_chef_rest_call.stub(:get_rest).and_raise(EOFError) | |
expect(BACKM::Chef.get_backup_metrics_per_node(test_backup_node_1)).to eql({}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment