Sha256: 87f8fb479e3a3701af9b3bfb3467441f17a51e0d67a7c06f7f58da8e13609e96
Contents?: true
Size: 721 Bytes
Versions: 21
Compression:
Stored size: 721 Bytes
Contents
Shindo.tests("Fog::Compute[:cloudstack] | public_ip_address", "cloudstack") do config = compute_providers[:cloudstack] compute = Fog::Compute[:cloudstack] model_tests(compute.public_ip_addresses, config[:public_ip_address_attributes], config[:mocked]) do @server = Fog::Compute[:cloudstack].servers.create(config[:server_attributes]) @server.wait_for { ready? } tests('#server=').succeeds do @instance.server = @server end tests('#server') do test(' == @server') do @instance.reload @instance.server_id == @server.id end end test('#server = nil') do @instance.server = nil @instance.server_id.nil? end @server.destroy end end
Version data entries
21 entries across 19 versions & 3 rubygems