lib/fog/azurerm/requests/storage/get_container_url.rb in gitlab-fog-azure-rm-1.8.0 vs lib/fog/azurerm/requests/storage/get_container_url.rb in gitlab-fog-azure-rm-1.9.0
- old
+ new
@@ -1,8 +1,8 @@
module Fog
- module Storage
- class AzureRM
+ module AzureRM
+ class Storage
# This class provides the actual implemention for service calls.
class Real
# Get a public container url from Azure storage container
#
# @param container_name [String] Name of container
@@ -22,11 +22,11 @@
end
# This class provides the mock implementation for unit tests.
class Mock
def get_container_url(_container_name, options = {})
- url = 'https://sa.blob.core.windows.net/test_container?comp=list&restype=container'
- url.gsub!('https:', 'http:') if options[:scheme] == 'http'
+ url = 'https://mockaccount.blob.core.windows.net/test_container?comp=list&restype=container'
+ url.sub!('https:', 'http:') if options[:scheme] == 'http'
url
end
end
end
end