lib/fog/introspection/openstack.rb in fog-openstack-0.1.12 vs lib/fog/introspection/openstack.rb in fog-openstack-0.1.13
- old
+ new
@@ -41,11 +41,11 @@
class Mock
def self.data
@data ||= Hash.new do |hash, key|
# Introspection data is *huge* we load it from a yaml file
- file = "../../../../tests/fixtures/introspection.yaml"
+ file = "../../../../test/fixtures/introspection.yaml"
hash[key] = YAML.load(File.read(File.expand_path(file, __FILE__)))
end
end
def self.reset
@@ -78,11 +78,11 @@
end
def initialize(options = {})
initialize_identity options
- @openstack_service_type = options[:openstack_service_type] || ['introspection']
+ @openstack_service_type = options[:openstack_service_type] || ['baremetal-introspection']
@openstack_service_name = options[:openstack_service_name]
@connection_options = options[:connection_options] || {}
authenticate
@@ -92,15 +92,10 @@
@connection = Fog::Core::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end
def set_api_path
unless @path.match(SUPPORTED_VERSIONS)
- @path = "/" + Fog::OpenStack.get_supported_version(
- SUPPORTED_VERSIONS,
- @openstack_management_uri,
- @auth_token,
- @connection_options
- )
+ @path = "/v1"
end
end
end
end
end