test/integration/virtual_network_gateway.rb in fog-azure-rm-0.3.2 vs test/integration/virtual_network_gateway.rb in fog-azure-rm-0.3.3

- old
+ new

@@ -4,11 +4,11 @@ ######################################################################################################################## ###################### Services object required by all actions ###################### ###################### Keep it Uncommented! ###################### ######################################################################################################################## -azure_credentials = YAML.load_file('credentials/azure.yml') +azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__)) resource = Fog::Resources::AzureRM.new( tenant_id: azure_credentials['tenant_id'], client_id: azure_credentials['client_id'], client_secret: azure_credentials['client_secret'], @@ -79,12 +79,12 @@ subnet_id: "/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-VNG/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/GatewaySubnet", private_ipaddress: nil } ], resource_group: 'TestRG-VNG', - sku_name: 'Basic', - sku_tier: 'Basic', + sku_name: 'Standard', + sku_tier: 'Standard', sku_capacity: 2, gateway_type: 'ExpressRoute', enable_bgp: false, gateway_size: nil, vpn_type: 'RouteBased', @@ -108,15 +108,9 @@ network_gateway = network.virtual_network_gateways.get('TestRG-VNG', 'testnetworkgateway') puts "Get virtual network gateway: #{network_gateway.name}" puts "Deleted virtual network gateway: #{network_gateway.destroy}" - - pubip = network.public_ips.get('TestRG-VNG', 'mypubip') - pubip.destroy - - vnet = network.virtual_networks.get('TestRG-VNG', 'testVnet') - vnet.destroy rg = resource.resource_groups.get('TestRG-VNG') rg.destroy rescue puts 'Integration Test for virtual network gateway is failing'