---
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :post
uri: http://user:pass@www.example.com:80/virtual_machines/404/change_owner.json?user_id=1
body:
headers:
content-type:
- application/json
authorization:
- Basic WHAT
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 404
message: Not Found
headers:
x-ua-compatible:
- IE=Edge,chrome=1
x-powered-by:
- Phusion Passenger (mod_rails/mod_rack) 3.0.1
content-type:
- application/json; charset=utf-8
x-runtime:
- "0.007364"
server:
- Apache/2.2.3 (CentOS)
date:
- Thu, 28 Apr 2011 15:16:51 GMT
set-cookie:
- _onapp_session=WHAT; path=/; HttpOnly
status:
- "404"
cache-control:
- no-cache
transfer-encoding:
- chunked
body: "{\"error\":\"Resource not found\"}"
http_version: "1.1"
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :post
uri: http://user:pass@www.example.com:80/virtual_machines/1/change_owner.json?user_id=404
body:
headers:
content-type:
- application/json
authorization:
- Basic WHAT
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 500
message: Internal Server Error
headers:
x-powered-by:
- Phusion Passenger (mod_rails/mod_rack) 3.0.1
content-type:
- text/html; charset=UTF-8
date:
- Thu, 28 Apr 2011 15:16:51 GMT
server:
- Apache/2.2.3 (CentOS)
x-runtime:
- "35.003244"
status:
- "500"
transfer-encoding:
- chunked
body:
500 Internal Server Error
If you are the useristrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.
http_version: "1.1"
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :post
uri: http://user:pass@www.example.com:80/virtual_machines/1/change_owner.json?user_id=2
body:
headers:
content-type:
- application/json
authorization:
- Basic WHAT
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 201
message: Created
headers:
x-ua-compatible:
- IE=Edge,chrome=1
location:
- http://www.example.com/virtual_machines/7z2gzavnrhmmt3
x-powered-by:
- Phusion Passenger (mod_rails/mod_rack) 3.0.1
content-type:
- application/json; charset=utf-8
x-runtime:
- "0.297176"
server:
- Apache/2.2.3 (CentOS)
date:
- Thu, 28 Apr 2011 15:18:02 GMT
set-cookie:
- _onapp_session=WHAT; path=/; HttpOnly
status:
- "201"
cache-control:
- no-cache
transfer-encoding:
- chunked
body: "{\"virtual_machine\":{\"monthly_bandwidth_used\":0,\"cpus\":1,\"label\":\"testing\",\"created_at\":\"2011-04-19T18:30:33Z\",\"operating_system_distro\":null,\"cpu_shares\":1,\"operating_system\":null,\"template_id\":null,\"allowed_swap\":true,\"local_remote_access_port\":null,\"memory\":100,\"updated_at\":\"2011-04-28T15:18:02Z\",\"allow_resize_without_reboot\":null,\"recovery_mode\":null,\"hypervisor_id\":1,\"id\":1,\"xen_id\":null,\"user_note\":null,\"allowed_hot_migrate\":null,\"user_id\":2,\"note\":null,\"strict_virtual_machine_id\":null,\"suspended\":false,\"total_disk_size\":0,\"booted\":false,\"hostname\":\"bob\",\"template_label\":null,\"identifier\":\"7z2gzavnrhmmt3\",\"initial_root_password\":\"qb6xnpofw43k\",\"min_disk_size\":null,\"remote_access_password\":null,\"built\":false,\"locked\":false,\"ip_addresses\":[]}}"
http_version: "1.1"