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

Content types #12

Merged
merged 4 commits into from
Apr 10, 2015
Merged

Content types #12

merged 4 commits into from
Apr 10, 2015

Conversation

alvarolopez
Copy link
Owner

Just for comments, I will merge this manually

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.
@coveralls
Copy link

Coverage Status

Coverage increased (+1.31%) to 93.8% when pulling 9bacf8e on content_types into 0b92038 on compute_controller.

200, 201 and 202 are valid return codes that will contain a JSON, so we
should check for them also.
@coveralls
Copy link

Coverage Status

Coverage increased (+1.31%) to 93.8% when pulling f75d2d6 on content_types into 0b92038 on compute_controller.

@alvarolopez alvarolopez merged commit f75d2d6 into compute_controller Apr 10, 2015
@alvarolopez alvarolopez deleted the content_types branch April 10, 2015 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants