Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute controller #5

Merged
merged 25 commits into from
Apr 17, 2015
Merged

compute controller #5

merged 25 commits into from
Apr 17, 2015

Conversation

alvarolopez
Copy link
Owner

No description provided.

@alvarolopez
Copy link
Owner Author

Tests are broken due to Resource not being renderable into headers.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.54%) to 90.96% when pulling 546d3b6 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.54%) to 90.96% when pulling 546d3b6 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.73%) to 91.15% when pulling b9f0fb9 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.71%) to 91.14% when pulling b6fa794 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.71%) to 91.14% when pulling 63839d2 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.38%) to 91.81% when pulling e443785 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.07%) to 92.5% when pulling 8ab4be5 on compute_controller into 4d4e7ea on master.

According to the OCCI specification, the accept header MUST be handled
as follows:

 - If Accept is empty, the returned content-type should be text/plain
 - If Accept is "*/*", the returned content-type should be text/plain
 - If Accept cannot be understood, a 406 error should be returned.

We are still missing the handling of the content-type header (that must
indicate the type of the data being sent, if any) that should be checked
against the available parsers (this is still missing).
Check that we are actually raising the proper exception when there is a
bad request in the compute controller create method.
200, 201 and 202 are valid return codes that will contain a JSON, so we
should check for them also.
If after serializing the response we do not have a body or headers (for
example after a delete), we should return a 204 code.
@coveralls
Copy link

Coverage Status

Coverage increased (+3.08%) to 92.51% when pulling 3f436d4 on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.98%) to 92.41% when pulling 65edb4b on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.98%) to 92.41% when pulling 65edb4b on compute_controller into 4d4e7ea on master.

enolfc and others added 5 commits April 13, 2015 16:57
- New parser and validator for create methods.
- Includes schemes in the mixin class to allow comparisons
- Fix scheme builder in helper (was missing # at the end)
- Update tests
Everything is now under the same module (wsgi). Request
object includes methods for parsing a validating the
user input.
Fixed the compute method which was still using the old
body for creating the VM.
Added tests for parser.
Missing the validation tests.
In section 3.6.5 it is said that a server must indicate the version that
it supports via the Server HTTP header. We have to advertise this even
when a fault is returned.
@coveralls
Copy link

Coverage Status

Coverage increased (+4.58%) to 94.01% when pulling 86329b7 on compute_controller into 4d4e7ea on master.

We only support OCCI/1.1, so if we have another version we have to raise
a 501 not implemented error.
@coveralls
Copy link

Coverage Status

Coverage increased (+4.61%) to 94.04% when pulling 2675a8c on compute_controller into 4d4e7ea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.62%) to 94.04% when pulling a8d4178 on compute_controller into 4d4e7ea on master.

According to section 3.6.7, to comply with the RFC5785 we should
implement the query interface functionality under the authrority
path "/.well-known/org/ogf/occi/-/".
@coveralls
Copy link

Coverage Status

Coverage increased (+4.62%) to 94.04% when pulling b52984d on compute_controller into 4d4e7ea on master.

According to OCCI specification, operations on paths that are not
resource instances or location paths, the path must end with "/". We
need to add the rule manually, since otherwise routes will strip out all
the slashes when generating the resources rules.
@coveralls
Copy link

Coverage Status

Coverage increased (+4.63%) to 94.06% when pulling a44c086 on compute_controller into 4d4e7ea on master.

@alvarolopez alvarolopez merged commit a44c086 into master Apr 17, 2015
@alvarolopez alvarolopez deleted the compute_controller branch April 17, 2015 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants