VCPS create NIO work and tested

This commit is contained in:
Julien Duponchelle committed 2015-01-16 16:20:10 +01:00
1 parent aff834f565
commit 0cdc1c3042
7 files changed
+90 -187

No files matched your search

@@ -0,0 +1,22 @@
curl -i -xPOST 'http://localhost:8000/vpcs/{vpcs_id}/ports/{port_id}/nio' -d '{"local_file": "/tmp/test", "remote_file": "/tmp/remote", "type": "nio_unix"}'
POST /vpcs/{vpcs_id}/ports/{port_id}/nio HTTP/1.1
{
"local_file": "/tmp/test",
"remote_file": "/tmp/remote",
"type": "nio_unix"
}
HTTP/1.1 404
CONNECTION: close
CONTENT-LENGTH: 59
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /vpcs/{vpcs_id}/ports/{port_id}/nio
{
"message": "ID 42 doesn't exist",
"status": 404
}