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

- old
+ new

@@ -1,8 +1,9 @@ module ApiStub module Models module ApplicationGateway + # Mock class for Application Gateway Model class Gateway def self.create_application_gateway_response(gateway_client) gateway = '{ "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat", "name": "gateway", @@ -127,9 +128,37 @@ "provisioningState": "Succeeded" } }' gateway_mapper = Azure::ARM::Network::Models::ApplicationGateway.mapper gateway_client.deserialize(gateway_mapper, JSON.load(gateway), 'result.body') + end + + def self.ssl_certifcate + { + name: '<SSL Certificate name>', + data: 'Base-64 encoded pfx certificate', + password: 'azure', + public_cert_data: 'Base-64 encoded Public cert data corresponding to pfx specified in data.' + } + end + + def self.frontend_port + { + name: '<Frontend port name>', + port: 80 + } + end + + def self.probe + { + name: '<Probe name>', + protocol: 'http', + host: 'localhost', + path: '/fog-test', + interval: 60, + timeout: 300, + unhealthy_threshold: 5 + } end end end end end