python-cratonclient/cratonclient/tests/cassettes/TestRegions-test_create.yaml

164 lines
5.0 KiB
YAML

http_interactions:
- recorded_at: '2017-03-21T15:52:13'
request:
body:
encoding: utf-8
string: "{\n \"name\": \"cloud-TestRegions-test_create\"\n}"
headers:
Accept: '*/*'
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: '41'
Content-Type: application/json
User-Agent: python-cratonclient/0.0.1
X-Auth-Project: <craton-demo-project>
X-Auth-Token: <craton-demo-token>
X-Auth-User: <craton-demo-username>
method: POST
uri: <craton-url>/clouds
response:
body:
encoding: null
string: "{\n \"variables\": {},\n \"created_at\": \"2017-03-21T00:42:39.791662\"\
,\n \"note\": null,\n \"updated_at\": null,\n \"project_id\": \"<craton-demo-project>\"\
,\n \"name\": \"cloud-TestRegions-test_create\",\n \"id\": 147\n}"
headers:
Content-Length: '218'
Content-Type: application/json
Date: Tue, 21 Mar 2017 00:42:39 GMT
Location: <craton-url>/clouds/147
Server: WSGIServer/0.2 CPython/3.5.2
x-openstack-request-id: req-6f0519d5-bcb7-4925-b263-78d6b7b8b1b4
status:
code: 201
message: CREATED
url: <craton-url>/clouds
- recorded_at: '2017-03-21T15:52:13'
request:
body:
encoding: utf-8
string: "{\n \"cloud_id\": 147,\n \"name\": \"region-creation\"\n}"
headers:
Accept: '*/*'
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: '44'
Content-Type: application/json
User-Agent: python-cratonclient/0.0.1
X-Auth-Project: <craton-demo-project>
X-Auth-Token: <craton-demo-token>
X-Auth-User: <craton-demo-username>
method: POST
uri: <craton-url>/regions
response:
body:
encoding: null
string: "{\n \"variables\": {},\n \"cloud_id\": 147,\n \"created_at\": \"\
2017-03-21T00:42:39.839331\",\n \"note\": null,\n \"project_id\": \"<craton-demo-project>\"\
,\n \"id\": 15,\n \"name\": \"region-creation\",\n \"updated_at\": null\n\
}"
headers:
Content-Length: '222'
Content-Type: application/json
Date: Tue, 21 Mar 2017 00:42:39 GMT
Location: <craton-url>/regions/15
Server: WSGIServer/0.2 CPython/3.5.2
x-openstack-request-id: req-a337c517-cdf8-48a8-97fd-0313443c525d
status:
code: 201
message: CREATED
url: <craton-url>/regions
- recorded_at: '2017-03-21T15:52:13'
request:
body:
encoding: utf-8
string: ''
headers:
Accept: '*/*'
Accept-Encoding: gzip, deflate
Connection: keep-alive
User-Agent: python-cratonclient/0.0.1
X-Auth-Project: <craton-demo-project>
X-Auth-Token: <craton-demo-token>
X-Auth-User: <craton-demo-username>
method: GET
uri: <craton-url>/regions/15
response:
body:
encoding: null
string: "{\n \"variables\": {},\n \"cloud_id\": 147,\n \"created_at\": \"\
2017-03-21T00:42:39.000000\",\n \"note\": null,\n \"project_id\": \"<craton-demo-project>\"\
,\n \"id\": 15,\n \"name\": \"region-creation\",\n \"updated_at\": null\n\
}"
headers:
Content-Length: '222'
Content-Type: application/json
Date: Tue, 21 Mar 2017 00:42:39 GMT
Server: WSGIServer/0.2 CPython/3.5.2
x-openstack-request-id: req-e5ac546a-10e3-4a4f-8dd6-89026ef5266f
status:
code: 200
message: OK
url: <craton-url>/regions/15
- recorded_at: '2017-03-21T15:52:13'
request:
body:
encoding: utf-8
string: ''
headers:
Accept: '*/*'
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: '0'
User-Agent: python-cratonclient/0.0.1
X-Auth-Project: <craton-demo-project>
X-Auth-Token: <craton-demo-token>
X-Auth-User: <craton-demo-username>
method: DELETE
uri: <craton-url>/regions/15
response:
body:
encoding: null
string: ''
headers:
Content-Length: '0'
Content-Type: application/json
Date: Tue, 21 Mar 2017 00:42:39 GMT
Server: WSGIServer/0.2 CPython/3.5.2
x-openstack-request-id: req-45859feb-f346-4561-a3e4-bcb54d2bb23d
status:
code: 204
message: NO CONTENT
url: <craton-url>/regions/15
- recorded_at: '2017-03-21T15:52:13'
request:
body:
encoding: utf-8
string: ''
headers:
Accept: '*/*'
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: '0'
User-Agent: python-cratonclient/0.0.1
X-Auth-Project: <craton-demo-project>
X-Auth-Token: <craton-demo-token>
X-Auth-User: <craton-demo-username>
method: DELETE
uri: <craton-url>/clouds/147
response:
body:
encoding: null
string: ''
headers:
Content-Length: '0'
Content-Type: application/json
Date: Tue, 21 Mar 2017 00:42:39 GMT
Server: WSGIServer/0.2 CPython/3.5.2
x-openstack-request-id: req-00deb216-f14e-44f8-b4cb-fa900c619de7
status:
code: 204
message: NO CONTENT
url: <craton-url>/clouds/147
recorded_with: betamax/0.8.0