/[Apache-SVN]
ViewVC logotype

Revision 1063028


Jump to revision: Previous Next
Author: lutter
Date: Mon Jan 24 22:21:15 2011 UTC (13 years, 2 months ago)
Changed paths: 7
Log Message:
rabbit: remove any static dependencies on the driver

With driver switching, we only have a driver for the duration of the
request. That means the request handlers that rabbit generates can not
depend on the features of a prticular driver at generation time. Instead,
those dependencies need to be taken into account when a request is
processed.

In particular, we need to generate handlers for all collections and their
operations, even if some drivers do not support them; at request time, we
check if the selected driver supports the collection/operation and generate
a 404 if it does not.

We also generate the complete list of parameters for an operation only at
request time (via effective_params); this is the list of parameters against
which we validate.

Changed paths

Path Details
Directoryincubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb modified , text changed
Directoryincubator/deltacloud/trunk/server/lib/deltacloud/validation.rb modified , text changed
Directoryincubator/deltacloud/trunk/server/lib/sinatra/rabbit.rb modified , text changed
Directoryincubator/deltacloud/trunk/server/server.rb modified , text changed
Directoryincubator/deltacloud/trunk/server/tests/common.rb modified , text changed
Directoryincubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb modified , text changed
Directoryincubator/deltacloud/trunk/server/tests/rabbit_test.rb added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26