Sha256: 4ac6122ca5980dd79ca75a370583c0fe0d724b4b486883c70dfed98c110e1ea6
Contents?: true
Size: 926 Bytes
Versions: 58
Compression:
Stored size: 926 Bytes
Contents
Shindo.tests("Fog::Network[:openstack] | router", ['openstack']) do tests('success') do tests('#create').succeeds do @instance = Fog::Network[:openstack].routers.create( :name => 'router_name', :admin_state_up => true ) !@instance.id.nil? end tests('#update') do test 'router name' do @instance.name = 'new_name' @instance.update.name == 'new_name' end # Needs code from issue #1598 #test 'external_gateway_info' do # net = Fog::Network[:openstack].networks.create( # :name => 'net_name', # :shared => false, # :admin_state_up => true, # :tenant_id => 'tenant_id', # :router_external => true, # ) # @instance.external_gateway_info = net # @instance.update #end end tests('#destroy').succeeds do @instance.destroy == true end end end
Version data entries
58 entries across 58 versions & 5 rubygems