This repository has been archived by the owner on Feb 2, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ashcrow/update-example-calls
example: Added host endpoint. PR passes with expected results. => Listing Hosts Without Auth (Should Fail) 127.0.0.1 - - [2016-01-20 13:59:13] "GET /api/v0/hosts HTTP/1.1" 403 175 0.000326 {u'description': u'Forbidden', u'title': u'Forbidden'} SUCCESS! => Listing Hosts With Auth 127.0.0.1 - - [2016-01-20 13:59:13] "GET /api/v0/hosts HTTP/1.1" 200 280 0.249626 [{u'status': u'available', u'space': 487652, u'address': u'10.0.0.1', u'cpus': 2, u'last_check': u'2015-12-17T15:48:18.710454', u'memory': 11989228, u'os': u'atomic'}] SUCCESS! => Listing Existing Host 10.0.0.1 127.0.0.1 - - [2016-01-20 13:59:14] "GET /api/v0/host/10.0.0.1 HTTP/1.1" 200 278 0.252620 {u'status': u'available', u'space': 487652, u'address': u'10.0.0.1', u'cpus': 2, u'last_check': u'2015-12-17T15:48:18.710454', u'memory': 11989228, u'os': u'atomic'} SUCCESS! => Listing Non Existing Host 10.0.0.2 127.0.0.1 - - [2016-01-20 13:59:14] "GET /api/v0/hosts/10.0.0.2 HTTP/1.1" 404 131 0.246412 {} SUCCESS! => Creating Host 10.2.0.2 127.0.0.1 - - [2016-01-20 13:59:14] "PUT /api/v0/host/10.2.0.2 HTTP/1.1" 201 265 0.262298 {u'status': u'investigating', u'space': -1, u'address': u'10.2.0.2', u'cpus': -1, u'last_check': u'0001-01-01T00:00:00', u'memory': -1, u'os': u''} SUCCESS! => Creating Host Again 10.2.0.2 (Should Fail) 127.0.0.1 - - [2016-01-20 13:59:14] "PUT /api/v0/host/10.2.0.2 HTTP/1.1" 409 130 0.249732 {} SUCCESS! => Deleting Host 10.2.0.2 127.0.0.1 - - [2016-01-20 13:59:15] "DELETE /api/v0/host/10.2.0.2 HTTP/1.1" 410 126 0.261026 {} SUCCESS! (testing)[rcook@goku example]$
- Loading branch information