diff --git a/lib/fog/rackspace/requests/servers/list_images.rb b/lib/fog/rackspace/requests/servers/list_images.rb index caa775edb..61122edde 100644 --- a/lib/fog/rackspace/requests/servers/list_images.rb +++ b/lib/fog/rackspace/requests/servers/list_images.rb @@ -11,9 +11,6 @@ unless Fog.mocking? # * body<~Hash>: # * 'id'<~Integer> - Id of the image # * 'name'<~String> - Name of the image - # * 'updated'<~String> - Last update timestamp for image - # * 'created'<~String> - Creation timestamp for image - # * 'status'<~String> - Status of image def list_images request( :expects => [200, 203], diff --git a/lib/fog/rackspace/requests/servers/list_images_detail.rb b/lib/fog/rackspace/requests/servers/list_images_detail.rb new file mode 100644 index 000000000..51e0cfa4b --- /dev/null +++ b/lib/fog/rackspace/requests/servers/list_images_detail.rb @@ -0,0 +1,42 @@ +unless Fog.mocking? + + module Fog + module Rackspace + class Servers + + # List all images + # + # ==== Returns + # * response<~Fog::AWS::Response>: + # * body<~Hash>: + # * 'id'<~Integer> - Id of the image + # * 'name'<~String> - Name of the image + # * 'updated'<~String> - Last update timestamp for image + # * 'created'<~String> - Creation timestamp for image + # * 'status'<~String> - Status of image + def list_images_detail + request( + :expects => [200, 203], + :method => 'GET', + :path => 'images.json' + ) + end + + end + end + end + +else + + module Fog + module Rackspace + class Servers + + def list_images + end + + end + end + end + +end diff --git a/lib/fog/rackspace/servers.rb b/lib/fog/rackspace/servers.rb index 61f31eb5e..74b7fdc97 100644 --- a/lib/fog/rackspace/servers.rb +++ b/lib/fog/rackspace/servers.rb @@ -13,6 +13,7 @@ module Fog load "fog/rackspace/requests/servers/get_server_details.rb" load "fog/rackspace/requests/servers/list_flavors.rb" load "fog/rackspace/requests/servers/list_images.rb" + load "fog/rackspace/requests/servers/list_images_detail.rb" load "fog/rackspace/requests/servers/list_servers.rb" load "fog/rackspace/requests/servers/list_servers_detail.rb" load "fog/rackspace/requests/servers/reboot_server.rb" diff --git a/spec/rackspace/requests/servers/list_images_detail.rb b/spec/rackspace/requests/servers/list_images_detail.rb new file mode 100644 index 000000000..f314f6615 --- /dev/null +++ b/spec/rackspace/requests/servers/list_images_detail.rb @@ -0,0 +1,12 @@ +require File.dirname(__FILE__) + '/../../../spec_helper' + +describe 'Rackspace::Servers.list_images_detail' do + describe 'success' do + + it "should return proper attributes" do + pending + p servers.list_images_detail + end + + end +end \ No newline at end of file