Sha256: a0384c2c1b82e90300361c4fcd5f9df79a3a3937456ff1bea81d428e03a4724b
Contents?: true
Size: 791 Bytes
Versions: 12
Compression:
Stored size: 791 Bytes
Contents
require "helpers/integration_test_helper" require "integration/factories/networks_factory" require "integration/factories/servers_factory" class TestNetworks < FogIntegrationTest include TestCollection def setup @subject = Fog::Compute[:google].networks @servers = ServersFactory.new(namespaced_name) @factory = NetworksFactory.new(namespaced_name) end def teardown # Clean up the server resources used in testing @servers.cleanup super end def test_run_instance network = @factory.create server = @servers.create(:network_interfaces => [network.get_as_interface_config]) assert_equal( network.self_link, server.network_interfaces[0][:network], "Created server should have the network specified on boot" ) end end
Version data entries
12 entries across 12 versions & 1 rubygems