require "support" describe Rubineti::Compute do describe Rubineti::Cluster do describe "#cluster_features" do it "is not implemented" do out, err = capture_io { Connection.cluster_features } err.must_match Not_Implemented_Matcher end end describe "#cluster_info" do it "returns a Hash" do VCR.use_cassette "cluster_info" do response = Connection.cluster_info response.must_be_kind_of Hash end end end describe "#cluster_redistribute_config" do it "returns a job_id" do VCR.use_cassette "cluster_redistribute_config" do Connection.cluster_redistribute_config.must_match Job_Matcher end end end describe "#cluser_tags_create" do it "is not implemented" do out, err = capture_io { Connection.cluster_tags_create } err.must_match Not_Implemented_Matcher end end describe "#cluser_tags_delete" do it "is not implemented" do out, err = capture_io { Connection.cluster_tags_create } err.must_match Not_Implemented_Matcher end end describe "#cluser_tags_list" do it "is not implemented" do out, err = capture_io { Connection.cluster_tags_list } err.must_match Not_Implemented_Matcher end end describe "#cluser_version" do it "returns a version string" do VCR.use_cassette "cluster_version" do Connection.cluster_version.must_equal 2 end end end describe "#cluser_os_list" do it "returns an Array" do VCR.use_cassette "cluster_oses" do Connection.cluster_os_list.size.must_equal 1 end end end end end