-
Notifications
You must be signed in to change notification settings - Fork 0
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
validate proper syntax and return responses of DBaaS API calls #3
Comments
|
invoking "self.name" causes a lookup agains the extended_items and the api, which raises an exception for models that don't have a name property. the str functionality is mainly for my own use in debugging and others that work on this library. i have refactored and moved the class into clouddb.models and implemented some of the other suggestions. the outstanding issue to be addressed here still are if the data being passed into and out of the underlying API are correct and we are not missing anything. this comparison can be done against the docs (http://docs.rackspace.com/cdb/api/v1.0/cdb-devguide/content/index.html) and your own experimentation. pro tip: this "app" for chrome helps a lot: https://chrome.google.com/webstore/detail/hgmloofddffdnphfgcellkdfbfbjeloo |
What should the default be in that case? I'm inclined to say that in those cases the path might need to be implemented in that class with the special case. Otherwise, duck type it and pass back something else (or more horrifically: nest getattrs). You should provide a I prefer to do my RESTful stuff with curl but I understand that the API is a bit awkward using this mechanism. I would do testing of those inputs in the unittests on the API Handler you have defined. I'll look at the testing infrastructure a bit and update the test bug with any developments. |
for alex
The text was updated successfully, but these errors were encountered: