You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2012/08/28 02:16:54 UTC
[8/15] Gogrid tests: use credentials from config file
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f6778198/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
index e856084..1d0bca5 100644
--- 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
@@ -1,667 +1,135 @@
----
-http_interactions:
-- request:
+---
+recorded_with: VCR 2.2.4
+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:
+ uri: https://api.gogrid.com/api/common/lookup/list?api_key=b5e87458eb2d3297&format=json&lookup=server.type&sig=dcac45e51fc1f4157a313805171a510c&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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:
+ headers:
+ Content-Length:
+ - "291"
+ 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:
+ 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:
+ 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:
+ Connection:
- close
- X-Mashery-Responder:
+ Date:
+ - Sat, 25 Aug 2012 00:35:07 GMT
+ Set-Cookie:
+ - JSESSIONID=DC81382060CE31226F870C495DB23569; Path=/api; Secure
+ 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"}]}'
+ body:
+ 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:
+ recorded_at: Sat, 25 Aug 2012 00:35:07 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:
+ uri: https://api.gogrid.com/api/common/lookup/list?api_key=b5e87458eb2d3297&format=json&lookup=server.ram&sig=b94867e298cdeceb7feef93803bab0c1&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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:
+ headers:
+ Content-Length:
+ - "658"
+ 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:
+ 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:
+ 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:
+ 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"}]}'
+ Date:
+ - Sat, 25 Aug 2012 00:35:07 GMT
+ Set-Cookie:
+ - JSESSIONID=E834399747D9876567DA7BEAB9E48408; Path=/api; Secure
+ X-Mashery-Responder:
+ - mashery-web3-lax.mashery.com
+ body:
+ 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:
+ recorded_at: Sat, 25 Aug 2012 00:35:08 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:
+ uri: https://api.gogrid.com/api/common/lookup/list?api_key=b5e87458eb2d3297&format=json&lookup=server.type&sig=b94867e298cdeceb7feef93803bab0c1&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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:
+ headers:
+ Content-Length:
+ - "291"
+ 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:
+ 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:
+ 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:
+ Connection:
- close
- X-Mashery-Responder:
+ Date:
+ - Sat, 25 Aug 2012 00:35:07 GMT
+ Set-Cookie:
+ - JSESSIONID=285B1AA92A7D04FFE06BA7042A408AB0; Path=/api; Secure
+ 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"}]}'
+ body:
+ 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:
+ recorded_at: Sat, 25 Aug 2012 00:35:08 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:
+ uri: https://api.gogrid.com/api/common/lookup/list?api_key=b5e87458eb2d3297&format=json&lookup=server.ram&sig=f6f5f58de1399256aabfaa34a201a782&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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:
+ headers:
+ Content-Length:
+ - "658"
+ 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:
+ 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:
+ 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:
+ 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"}]}'
+ Date:
+ - Sat, 25 Aug 2012 00:35:08 GMT
+ Set-Cookie:
+ - JSESSIONID=43616B106C5B3EB9EF1C12777BE31AE2; Path=/api; Secure
+ X-Mashery-Responder:
+ - mashery-web1-lax.mashery.com
+ body:
+ 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
+ recorded_at: Sat, 25 Aug 2012 00:35:08 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f6778198/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
deleted file mode 100644
index 6669772..0000000
--- a/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
+++ /dev/null
@@ -1,367 +0,0 @@
----
-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
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f6778198/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml b/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
index b3a247e..a0b7406 100644
--- a/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
+++ b/server/tests/drivers/gogrid/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
@@ -1,458 +1,137 @@
----
-http_interactions:
-- request:
+---
+recorded_with: VCR 2.2.4
+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: 200
- message: OK
- headers:
- Connection:
- - close
- X-Mashery-Responder:
- - mashery-web2-lax.mashery.com
- Server:
- - Apache-Coyote/1.1
- Set-Cookie:
- - JSESSIONID=6B8AA4F8650838C68E0196447E02FB0A; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:13:50 GMT
- Accept-Ranges:
+ uri: https://api.gogrid.com/api/grid/server/get?api_key=b5e87458eb2d3297&format=json&name=test-instance&sig=c40e7dfda86ec2e1b26862c6f7b35507&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ response:
+ status:
+ code: 400
+ message: Bad Request
+ headers:
+ Content-Length:
+ - "222"
+ Accept-Ranges:
- bytes
- Content-Length:
- - '2807'
- Content-Type:
- - text/html
- body:
- encoding: US-ASCII
- string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/get","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
-- request:
- method: get
- uri: https://api.gogrid.com/api/support/password/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:
+ Server:
- Apache-Coyote/1.1
- Set-Cookie:
- - JSESSIONID=9DBF0090611699BF713E7B1B63EB0084; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:13:52 GMT
- Accept-Ranges:
- - bytes
- Content-Length:
- - '3041'
- Content-Type:
+ Content-Type:
- text/html
- body:
- encoding: US-ASCII
- string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/support/password/list","list":[{"id":399303,"username":"root","applicationtype":"os","server":{"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},"object":"password","password":"HOLybUeOv3"},{"id":72398,"username":"26648","applicationtype":"US-West-1
- Storage","object":"password","password":"3woc7UWdJsJEcm8@"}]}'
- 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: 200
- message: OK
- headers:
- Connection:
+ Connection:
- close
- X-Mashery-Responder:
- - mashery-web2-lax.mashery.com
- Server:
- - Apache-Coyote/1.1
- Set-Cookie:
- - JSESSIONID=2642ED5669A6EA6C1D4DDF9A9115D2CF; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:13:53 GMT
- Accept-Ranges:
- - bytes
- Content-Length:
- - '2807'
- Content-Type:
- - text/html
- body:
- encoding: US-ASCII
- string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/get","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
-- request:
- method: get
- uri: https://api.gogrid.com/api/support/password/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=1225989D8111D53A58AA41D3B8A8F7A3; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:13:54 GMT
- Accept-Ranges:
- - bytes
- Content-Length:
- - '3041'
- Content-Type:
- - text/html
- body:
- encoding: US-ASCII
- string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/support/password/list","list":[{"id":399303,"username":"root","applicationtype":"os","server":{"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},"object":"password","password":"HOLybUeOv3"},{"id":72398,"username":"26648","applicationtype":"US-West-1
- Storage","object":"password","password":"3woc7UWdJsJEcm8@"}]}'
+ Date:
+ - Sat, 25 Aug 2012 00:35:32 GMT
+ Set-Cookie:
+ - JSESSIONID=946906F2F76C53FCBB5972EABAD2F38D; Path=/api; Secure
+ X-Mashery-Responder:
+ - mashery-web3-lax.mashery.com
+ body:
+ 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:
+ recorded_at: Sat, 25 Aug 2012 00:35:33 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:
+ uri: https://api.gogrid.com/api/grid/server/list?api_key=b5e87458eb2d3297&format=json&sig=c40e7dfda86ec2e1b26862c6f7b35507&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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=49ED1F09EF5246B518BDDC2F164003A2; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:13:56 GMT
- Accept-Ranges:
+ headers:
+ Content-Length:
+ - "2726"
+ Accept-Ranges:
- bytes
- Content-Length:
- - '2807'
- Content-Type:
- - text/html
- body:
- encoding: US-ASCII
- string: ! '{"summary":{"total":1,"start":0,"numpages":0,"returned":1},"status":"success","method":"/grid/server/get","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
-- request:
- method: get
- uri: https://api.gogrid.com/api/support/password/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-web3-lax.mashery.com
- Server:
+ Server:
- Apache-Coyote/1.1
- Set-Cookie:
- - JSESSIONID=F0653DBF8C5A3660C13DA28FC07D9743; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:13:59 GMT
- Accept-Ranges:
- - bytes
- Content-Length:
- - '3041'
- Content-Type:
+ Content-Type:
- text/html
- body:
- encoding: US-ASCII
- string: ! '{"summary":{"total":2,"start":0,"numpages":0,"returned":2},"status":"success","method":"/support/password/list","list":[{"id":399303,"username":"root","applicationtype":"os","server":{"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},"object":"password","password":"HOLybUeOv3"},{"id":72398,"username":"26648","applicationtype":"US-West-1
- Storage","object":"password","password":"3woc7UWdJsJEcm8@"}]}'
+ Connection:
+ - close
+ Date:
+ - Sat, 25 Aug 2012 00:35:33 GMT
+ Set-Cookie:
+ - JSESSIONID=A2601E3B26AFCD342D2DEB96C08461F8; Path=/api; Secure
+ X-Mashery-Responder:
+ - mashery-web2-lax.mashery.com
+ body:
+ 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\"},\"name\":\"test-instance\",\"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\":1107369,\"subnet\":\"173.1.167.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.1.167.116\"}}]}"
http_version:
- recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
-- request:
+ recorded_at: Sat, 25 Aug 2012 00:35:33 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:
+ uri: https://api.gogrid.com/api/grid/server/get?api_key=b5e87458eb2d3297&format=json&name=unknown&sig=3f66e819b531a499b14b41323828335b&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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=AC052E6530E167B552737CBA53317F90; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:14:00 GMT
- Accept-Ranges:
+ headers:
+ Content-Length:
+ - "222"
+ Accept-Ranges:
- bytes
- Content-Length:
- - '222'
- Content-Type:
+ Server:
+ - Apache-Coyote/1.1
+ 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"}]}'
+ Connection:
+ - close
+ - close
+ Date:
+ - Sat, 25 Aug 2012 00:35:34 GMT
+ Set-Cookie:
+ - JSESSIONID=41E3E9ADE096E41C697A915D9F210FBA; Path=/api; Secure
+ X-Mashery-Responder:
+ - mashery-web3-lax.mashery.com
+ body:
+ 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:
+ recorded_at: Sat, 25 Aug 2012 00:35:34 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:
+ uri: https://api.gogrid.com/api/grid/server/list?api_key=b5e87458eb2d3297&format=json&sig=729522f93fb25f59441171ad1bd0cd90&v=1.9
+ body:
+ string: ""
+ headers:
+ Accept:
+ - "*/*"
+ 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=1372365AB3475A9780D53BD998F069BE; Path=/api; Secure
- Date:
- - Thu, 23 Aug 2012 12:14:01 GMT
- Accept-Ranges:
+ headers:
+ Content-Length:
+ - "2726"
+ Accept-Ranges:
- bytes
- Content-Length:
- - '2808'
- Content-Type:
+ Server:
+ - Apache-Coyote/1.1
+ 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}]}'
+ Connection:
+ - close
+ Date:
+ - Sat, 25 Aug 2012 00:35:34 GMT
+ Set-Cookie:
+ - JSESSIONID=D74CCACA85B1E0B2299736317F30C3BF; Path=/api; Secure
+ X-Mashery-Responder:
+ - mashery-web2-lax.mashery.com
+ body:
+ 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\"},\"name\":\"test-instance\",\"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\":1107369,\"subnet\":\"173.1.167.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.1.167.116\"}}]}"
http_version:
- recorded_at: Thu, 23 Aug 2012 12:12:00 GMT
-recorded_with: VCR 2.2.4
+ recorded_at: Sat, 25 Aug 2012 00:35:35 GMT