2013-03-01 18:46:56 -05:00
|
|
|
module Fog
|
|
|
|
module HP
|
2013-03-05 11:25:30 -05:00
|
|
|
class LB
|
|
|
|
class Real
|
2013-03-06 12:27:06 -05:00
|
|
|
|
2013-03-05 11:25:30 -05:00
|
|
|
def list_versions
|
|
|
|
request(
|
2013-10-09 18:49:44 -04:00
|
|
|
:expects => 200,
|
2013-03-05 11:25:30 -05:00
|
|
|
:method => 'GET',
|
2013-10-09 18:49:44 -04:00
|
|
|
:path => ''
|
2013-03-05 11:25:30 -05:00
|
|
|
)
|
2013-03-01 18:46:56 -05:00
|
|
|
end
|
2013-03-05 11:25:30 -05:00
|
|
|
end
|
|
|
|
class Mock
|
2013-03-06 12:27:06 -05:00
|
|
|
|
2013-03-05 11:25:30 -05:00
|
|
|
def list_versions
|
|
|
|
response = Excon::Response.new
|
2013-10-09 18:49:44 -04:00
|
|
|
versions = self.data[:versions].values
|
2013-03-05 11:25:30 -05:00
|
|
|
response.status = 200
|
2013-10-09 18:49:44 -04:00
|
|
|
response.body = { 'versions' => versions }
|
2013-03-05 11:25:30 -05:00
|
|
|
response
|
2013-03-01 18:46:56 -05:00
|
|
|
end
|
2013-03-06 12:27:06 -05:00
|
|
|
|
2013-03-01 18:46:56 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-05-22 10:03:55 -04:00
|
|
|
end
|