deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [7/9] GoGrid: Added initial MiniTest tests
Date Fri, 24 Aug 2012 09:49:46 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3563f0ea/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_instances.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_instances.yml b/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_instances.yml
new file mode 100644
index 0000000..808893c
--- /dev/null
+++ b/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_instances.yml
@@ -0,0 +1,605 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/get?api_key=9bbf139b8b57d967&format=json&name=test&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=E249CA49F723BC9FCBB8EC0622D65F30; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:51 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '222'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/server/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=CA63FF8832B5C3F3F1803225FA1F47D1; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:52 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2744'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","state":{"id":3,"description":null,"name":"Off","object":"option"},"isSandbox":false,"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/get?api_key=9bbf139b8b57d967&format=json&name=test&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=97D1CFF4141134F083A2313B07131C26; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:53 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '222'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/server/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=E9ECC12EC528F7E1B131D5C5EF46F924; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:55 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2744'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","state":{"id":3,"description":null,"name":"Off","object":"option"},"isSandbox":false,"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/get?api_key=9bbf139b8b57d967&format=json&name=test&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=F2ABA041386A54971485549E912FE679; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:56 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '222'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/server/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=F388350646018A526ACDC406D03080C7; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:57 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2744'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","state":{"id":3,"description":null,"name":"Off","object":"option"},"isSandbox":false,"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/get?api_key=9bbf139b8b57d967&format=json&name=test&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=05C544282D3F3E93CA2412CCA14EA262; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:12:58 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '222'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/server/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=B0D6D32EBF5C55E6EBF9ACFCA37E3772; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:13:00 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2744'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","state":{"id":3,"description":null,"name":"Off","object":"option"},"isSandbox":false,"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=06AD4E88FE22E6F815922BD15B16FAF2; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:13:44 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2744'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","state":{"id":3,"description":null,"name":"Off","object":"option"},"isSandbox":false,"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=3D71559BAEE0622F083C7632194CACB3; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:13:45 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2744'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","state":{"id":3,"description":null,"name":"Off","object":"option"},"isSandbox":false,"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/get?api_key=9bbf139b8b57d967&format=json&name=unknown&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=48782C472765C4F133DD73E174110263; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:13:47 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '222'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/server/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/server/list?api_key=9bbf139b8b57d967&format=json&sig=65def4a564c4fabc70570d1bf8a8f07d&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=64C73A31EF6EA5B97F3FB744D28550EC; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 12:13:49 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '2808'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/list","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"state":{"id":1,"description":"Server
+        is in active state.","name":"On","object":"option"},"image":{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"server","type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"cores":0.5,"ip":{"id":1656767,"subnet":"173.204.26.112/255.255.255.240","state":{"id":2,"description":"IP
+        is reserved or in use","name":"Assigned","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"ip","public":true,"ip":"173.204.26.114"},"id":386143,"ram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},"description":"testdesc","name":"test","isSandbox":false,"diskSize":25600}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
+recorded_with: VCR 2.2.4

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3563f0ea/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_realms.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_realms.yml b/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_realms.yml
new file mode 100644
index 0000000..54c0b3c
--- /dev/null
+++ b/server/tests/drivers/gogrid/fixtures/test_0003_must_allow_to_filter_realms.yml
@@ -0,0 +1,243 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=ip.datacenter&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=87A459B42A77DC20FBC140BCD534F88B; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:31:56 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '367'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":3,"start":0,"numpages":0,"returned":3},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=ip.datacenter&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=BD487E1A0FC60197BD19AF400F45559D; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:31:58 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '367'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":3,"start":0,"numpages":0,"returned":3},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=ip.datacenter&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=CD7452BF9BBD9FAE2DA8ABCAF574D67D; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:31:59 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '367'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":3,"start":0,"numpages":0,"returned":3},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=ip.datacenter&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=7132D28B26D640FEC06CCA6DADAEAC61; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:32:00 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '367'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":3,"start":0,"numpages":0,"returned":3},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=ip.datacenter&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=588EFEE4070AE5F4F1A128B95AFE5EEB; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:32:02 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '367'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":3,"start":0,"numpages":0,"returned":3},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=ip.datacenter&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=29F64E3F091EF32E93433262E565E042; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:32:04 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '367'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":3,"start":0,"numpages":0,"returned":3},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+recorded_with: VCR 2.2.4

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3563f0ea/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml b/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml
new file mode 100644
index 0000000..e856084
--- /dev/null
+++ b/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml
@@ -0,0 +1,667 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=385243C2AFCA3FEB44EB1975E5DFC65E; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:50:21 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=1005B31BDA2893F58EA4BC7C494DECD2; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:50:23 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=E5F08E548140CAA4EC4709594E0189EB; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:50:24 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=6332B6434497E5BDCFE6AD589E6AF5B9; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:50:26 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=3175F5C139CB0BF596EDA4F0324AFF67; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:52:19 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=05D647A6F43AFDDDD37D80B94E6E65CE; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:52:21 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=7FB62F31D08B3524942F79607BC339DF; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:55:23 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=f9872e632cd2f7a5363b6b545629cc33&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=988C7B0E00241311707B240FEAF26B2D; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:55:24 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:51:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=340D6468B32D74606664A44752262D6D; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:25 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=104214DDB5CC0985E08A046A32EFE3B0; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:26 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=7528EE4CC84F219C9C46D4CB523DF093; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:28 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=B71E787AAFCF4BD5CBD9C46EBE5A41FA; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:28 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=FBDA2216BD7426A8E963EBBA092291C8; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:29 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=6529F022FF4B7F39AE04CDF025CC2943; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:31 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.type&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=886B1FEC1ECF8BCCAF95C2BE677D4FE0; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:32 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '291'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},{"id":2,"description":"Database
+        Server","name":"Database Server","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/common/lookup/list?api_key=9bbf139b8b57d967&format=json&lookup=server.ram&sig=52eca28707f013e583b8e28e936ee587&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=CD4CCACC6BEFC9C0140FF24278269EB4; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:58:34 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '658'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":7,"start":0,"numpages":0,"returned":7},"status":"success","method":"/common/lookup/list","list":[{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"},{"id":2,"description":"Server
+        with 1GB RAM","name":"1GB","object":"option"},{"id":3,"description":"Server
+        with 2GB RAM","name":"2GB","object":"option"},{"id":4,"description":"Server
+        with 4GB RAM","name":"4GB","object":"option"},{"id":5,"description":"Server
+        with 8GB RAM","name":"8GB","object":"option"},{"id":8,"description":"Server
+        with 16GB RAM","name":"16GB","object":"option"},{"id":9,"description":"Server
+        with 24GB RAM","name":"24GB","object":"option"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:58:00 GMT
+recorded_with: VCR 2.2.4

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3563f0ea/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_image.yml b/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
new file mode 100644
index 0000000..6669772
--- /dev/null
+++ b/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
@@ -0,0 +1,367 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=ami-aecd60c7&sig=87793253b9792183251c078d84eaef1c&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=3C75A892D5AF9A6C8C9BDB4938F30E46; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:34:40 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '221'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/image/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:30:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=ami-aecd60c7&sig=22481be67cbd1e5f985bf638f127e4cd&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=81452889D7A6A61473EF99CA8E8D0978; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:37:34 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '221'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/image/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:38:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=ami-aecd60c7&sig=2e5a49e756c56a639fc10ab5d64dee39&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=42A145DF99A4F0F091DAA4367F446B90; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:44:23 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '221'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/image/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:45:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=9928&sig=2e5a49e756c56a639fc10ab5d64dee39&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=A2D8DDA2D19D48F1B87BC6216BFDF5D4; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:47:03 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '1912'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/image/get","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:45:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=9928&sig=2e5a49e756c56a639fc10ab5d64dee39&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web2-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=9CBDA6B5EC5F16340DF5E52932FFFAEE; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:47:04 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '1912'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/image/get","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:45:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=9928&sig=2e5a49e756c56a639fc10ab5d64dee39&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web4-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=769501DD7D5F2C837F5966C996D150AB; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:47:06 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '1912'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/image/get","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:45:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=9928&sig=2e5a49e756c56a639fc10ab5d64dee39&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Connection:
+      - close
+      X-Mashery-Responder:
+      - mashery-web1-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=A0523C7AD8E8B1BA5582908B13B5BD91; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:47:31 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '1912'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/image/get","list":[{"os":{"id":73,"description":"CentOS
+        5.6 (32-bit)","name":"CentOS 5.6 (32-bit)","object":"option"},"datacenterlist":[{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":1,"description":"US
+        West 1 Datacenter","name":"US-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":2,"description":"US
+        East 1 Datacenter","name":"US-East-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000},{"state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"datacenter":{"id":3,"description":"EU-West-1
+        Datacenter","name":"EU-West-1","object":"option"},"object":"image_datacenter_state","updatedTime":1294198799000}],"location":"gogrid/GSI-840b854e-4862-49d4-8c83-4768ae48fa3b.img","state":{"id":2,"description":"Image
+        is available for adds","name":"Available","object":"option"},"friendlyName":"CentOS
+        5.6 (32-bit) w/ None","object":"serverimage","architecture":{"id":1,"description":"32
+        bit OS","name":"32-bit","object":"option"},"isPublic":true,"billingtokens":[{"id":73,"price":0,"name":"CentOS
+        5.6 (32-bit)","object":"billingtoken"}],"type":{"id":1,"description":"Web
+        or Application Server","name":"Web Server","object":"option"},"id":9928,"isActive":true,"gsitype":{"id":1,"description":"Image
+        produced and certified by GoGrid","name":"baseGSI","object":"option"},"price":0,"description":"CentOS
+        5.6 (32-bit) w/ None","name":"centos5.6_32_base","owner":{"id":-1,"name":"GoGrid","object":"customer"},"updatedTime":1294198799000,"minram":{"id":1,"description":"Server
+        with 512MB RAM","name":"512MB","object":"option"}}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:45:00 GMT
+- request:
+    method: get
+    uri: https://api.gogrid.com/api/grid/image/get?api_key=9bbf139b8b57d967&format=json&id=unknown&sig=2e5a49e756c56a639fc10ab5d64dee39&v=1.9
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - ! '*/*'
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 400
+      message: Bad Request
+    headers:
+      Connection:
+      - close
+      - close
+      X-Mashery-Responder:
+      - mashery-web3-lax.mashery.com
+      Server:
+      - Apache-Coyote/1.1
+      Set-Cookie:
+      - JSESSIONID=22FE0FE1C0CE25BD961CC4770869A612; Path=/api; Secure
+      Date:
+      - Thu, 23 Aug 2012 11:47:47 GMT
+      Accept-Ranges:
+      - bytes
+      Content-Length:
+      - '221'
+      Content-Type:
+      - text/html
+    body:
+      encoding: US-ASCII
+      string: ! '{"summary":{"total":1,"start":0,"returned":1},"status":"failure","method":"/grid/image/get","list":[{"message":"No
+        object found that matches your input criteria.","object":"error","errorcode":"IllegalArgumentException"}]}'
+    http_version: 
+  recorded_at: Thu, 23 Aug 2012 11:45:00 GMT
+recorded_with: VCR 2.2.4


Mime
View raw message