Sha256: fd85199bb39997ff78009572588c5153cbf292bb94c21caa18c6123d7ac1c32c
Contents?: true
Size: 1.02 KB
Versions: 11
Compression:
Stored size: 1.02 KB
Contents
require "spec_helper" describe Brightbox::Server do describe "#show", :vcr do context "when server exists" do before do options = { :image_id => "img-12345", :name => "medium servers", :zone_id => "", :user_data => nil, :flavor_id => "typ-12345" } @server = Brightbox::Server.create options @servers = Brightbox::DetailedServer.find_or_call([@server.id]) end it "shows detailed attributes of a server" do output = FauxIO.new do Brightbox.render_table(@servers, :vertical => true) end expect(output.stdout).to include("private_ips:") expect(output.stdout).to include("ram:") expect(output.stdout).to include("disk:") expect(output.stdout).to include("hostname: #{@server.id}") expect(output.stdout).to include("ipv6_hostname: ipv6.#{@server.id}.gb1.brightbox.com") expect(output.stdout).to include("fqdn: #{@server.id}.gb1.brightbox.com") end end end end
Version data entries
11 entries across 11 versions & 1 rubygems