This patchset adds backend capability checking to the rabbit dsl, allowing each operation to specify the required capability with:
with_capability :some_driver_method If the driver does not respond to :some_driver_method, a 405 will be returned to the client. This has been ACK'ed by mfojtik via #deltacloud. Tobias Crawley (3): Add support files for capability checking. Add capability checking to rabbit and to key management initially. Added capability checking for all operations. server/lib/deltacloud/backend_capability.rb | 21 +++++++++++ server/lib/sinatra/rabbit.rb | 3 ++ server/server.rb | 36 +++++++++++++++---- .../errors/backend_capability_failure.html.haml | 11 ++++++ .../errors/backend_capability_failure.xml.haml | 4 ++ 5 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 server/lib/deltacloud/backend_capability.rb create mode 100644 server/views/errors/backend_capability_failure.html.haml create mode 100644 server/views/errors/backend_capability_failure.xml.haml -- 1.7.2.3
