test/test_helper.rb in fog-azure-rm-temp-0.0.4 vs test/test_helper.rb in fog-azure-rm-temp-0.0.5

- old
+ new

@@ -788,24 +788,10 @@ end_ip: '10.10.10.10', service: service ) end -def recovery_vault(service) - Fog::Storage::AzureRM::RecoveryVault.new( - name: 'fog-test-vault', - id: '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.RecoveryServices/vaults/fog-test-vault', - resource_group: 'fog-test-rg', - location: 'westus', - type: 'Microsoft.RecoveryServices/vaults', - sku: { - name: 'standard' - }, - service: service - ) -end - def managed_disk(service) Fog::Compute::AzureRM::ManagedDisk.new( name: 'managed-disk', location: 'East US', resource_group_name: 'fog-test-rg', @@ -835,6 +821,11 @@ } } ], service: service ) +end + +def create_mock_response + response_headers = { 'status' => HTTP_NOT_FOUND } + Faraday::Response.new(response_headers) end