test/api_stub/requests/application_gateway/gateway.rb in fog-azure-rm-0.0.5 vs test/api_stub/requests/application_gateway/gateway.rb in fog-azure-rm-0.0.6

- old
+ new

@@ -1,8 +1,9 @@ module ApiStub module Requests module ApplicationGateway + # Mock class for Application Gateway Requests class Gateway def self.create_application_gateway_response(gateway_client) response = '{ "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway", "name": "gateway", @@ -134,9 +135,38 @@ "provisioningState": "Succeeded" } }' gateway_mapper = Azure::ARM::Network::Models::ApplicationGateway.mapper gateway_client.deserialize(gateway_mapper, JSON.load(response), 'result.body') + end + + def self.gateway_params + gateway_ip_configurations = ApiStub::Requests::ApplicationGateway::Gateway.gateway_ip_configurations + frontend_ip_configurations = ApiStub::Requests::ApplicationGateway::Gateway.frontend_ip_configurations + frontend_ports = ApiStub::Requests::ApplicationGateway::Gateway.frontend_ports + backend_address_pools = ApiStub::Requests::ApplicationGateway::Gateway.backend_address_pools + backend_http_settings_list = ApiStub::Requests::ApplicationGateway::Gateway.backend_http_settings_list + http_listeners = ApiStub::Requests::ApplicationGateway::Gateway.http_listeners + request_routing_rules = ApiStub::Requests::ApplicationGateway::Gateway.request_routing_rules + params = { + name: 'gateway', + location: 'East US', + resource_group: 'fogRM-rg', + sku_name: 'Standard_Medium', + sku_tier: 'Standard', + sku_capacity: 2, + gateway_ip_configurations: gateway_ip_configurations, + ssl_certificates: ssl_certificates, + frontend_ip_configurations: frontend_ip_configurations, + frontend_ports: frontend_ports, + probes: probes, + backend_address_pools: backend_address_pools, + backend_http_settings_list: backend_http_settings_list, + http_listeners: http_listeners, + url_path_maps: url_path_maps, + request_routing_rules: request_routing_rules + } + params end def self.list_application_gateway_response(gateway_client) response = '{ "value": [{