Sha256: e84489828fd787540e2a7e10644bf24aeb3e0e8760463312d98628d6fec487a8
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
require "test_helper" describe Rubineti::Node do describe "#evacuate" do it "is not implemented" do out, err = capture_io { CONNECTION.node.evacuate :invalid_node_name } err.must_match Not_Implemented_Matcher end end describe "#list" do it "returns a Hash" do node_name = cassette_for("nodes").first["id"] VCR.use_cassette "node_list" do response = CONNECTION.node.list node_name response.body.must_be_kind_of Hash end end end describe "#migrate" do it "is not implemented" do out, err = capture_io { CONNECTION.node.migrate :invalid_node_name } err.must_match Not_Implemented_Matcher end end describe "#role_create" do it "is not implemented" do out, err = capture_io { CONNECTION.node.role_create :invalid_node_name } err.must_match Not_Implemented_Matcher end end describe "#role_list" do it "returns a role" do node_name = cassette_for("nodes").first["id"] VCR.use_cassette "node_role_list" do response = CONNECTION.node.role_list node_name response.body.must_equal "master" end end end describe "#all" do it "returns an Array of Hashes" do VCR.use_cassette "nodes" do CONNECTION.node.all.body.size.must_equal 2 end end end describe "#storage_list" do it "is not implemented" do out, err = capture_io { CONNECTION.node.storage_list :invalid_node_name } err.must_match Not_Implemented_Matcher end end describe "#storage_modify" do it "is not implemented" do out, err = capture_io { CONNECTION.node.storage_modify :invalid_node_name } err.must_match Not_Implemented_Matcher end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubineti-1.4.0 | test/lib/rubineti/node_test.rb |