Skip to content

Commit

Permalink
Resolve hound violations
Browse files Browse the repository at this point in the history
  • Loading branch information
samawia-moin-confiz committed Sep 9, 2016
1 parent da0f4cc commit 752d4ce
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ StringLiterals:
EnforcedStyle: single_quotes
SignalException:
EnforcedStyle: only_raise
Style/FrozenStringLiteralComment:
Enabled: false
34 changes: 17 additions & 17 deletions lib/fog/azurerm/requests/network/list_local_network_gateways.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ def list_local_network_gateways(resource_group_name)
# Mock class for Local Network Gateway Request
class Mock
def list_virtual_network_gateways(*)
local_network_gateway = {
local_network_gateway = {
'value' => [
{
'id' => '/subscriptions/<Subscription_id>/resourceGroups/learn_fog/providers/Microsoft.Network/localNetworkGateways/testLocalNetworkGateway',
'name' => 'testLocalNetworkGateway',
'type' => 'Microsoft.Network/localNetworkGateways',
'location' => 'eastus',
'properties' =>
{
'local_network_address_space' => {
'address_prefixes' => []
},
'gateway_ip_address' => '192.168.1.1',
'bgp_settings' => {
'asn' => 100,
'bgp_peering_address' => '192.168.1.2',
'peer_weight' => 3
{
'id' => '/subscriptions/<Subscription_id>/resourceGroups/learn_fog/providers/Microsoft.Network/localNetworkGateways/testLocalNetworkGateway',
'name' => 'testLocalNetworkGateway',
'type' => 'Microsoft.Network/localNetworkGateways',
'location' => 'eastus',
'properties' =>
{
'local_network_address_space' => {
'address_prefixes' => []
},
'gateway_ip_address' => '192.168.1.1',
'bgp_settings' => {
'asn' => 100,
'bgp_peering_address' => '192.168.1.2',
'peer_weight' => 3
}
}
}
}
]
}
Expand Down
5 changes: 2 additions & 3 deletions test/api_stub/requests/network/local_network_gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def self.create_local_network_gateway_response(network_client)
'asn' => 100,
'bgp_peering_address' => '192.168.1.2',
'peer_weight' => 3
},
'gateway_ip_address' => '192.168.1.1'
}
}
}
local_network_gateway_mapper = Azure::ARM::Network::Models::LocalNetworkGateway.mapper
Expand All @@ -32,7 +31,7 @@ def self.delete_local_network_gateway_response
end

def self.list_local_network_gateway_response(network_client)
local_network_gateway = {
local_network_gateway = {
'value' => [
{
'id' => '/subscriptions/<Subscription_id>/resourceGroups/learn_fog/providers/Microsoft.Network/localNetworkGateways/testLocalNetworkGateway',
Expand Down
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ def local_network_gateway(service)
name: 'testLocalNetworkGateway',
location: 'eastus',
tags: {
key1: 'value1',
key2: 'value2'
key1: 'value1',
key2: 'value2'
},
resource_group: 'learn_fog',
gateway_ip_address: '192.168.1.1',
Expand Down

0 comments on commit 752d4ce

Please sign in to comment.