deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Fix for broken driver switching (DTACLOUD-254)
Date Tue, 10 Jul 2012 12:39:22 GMT

To verify this issue you need to:

1. gem update sinatra-rabbit

(the required version of sinatra-rabbit is 1.0.7)

2. apply the patch

Then to test:

$ deltacloudd -i mock

curl -v -X GET --user 'mockuser:mockpassword' -H 'X-Deltacloud-Driver: mock' 'http://localhost:3001/api/firewalls?format=xml'

=> This should fail with 412 with Expect header set to 'firewalls'.

curl -v -X GET --user 'mockuser:mockpassword' -H 'X-Deltacloud-Driver: ec2' 'http://localhost:3001/api/firewalls?format=xml'

=> Should work (401, which is fine)

As a bonus, I added a new API call:

curl -v -X OPTIONS -H 'X-Deltacloud-Driver: ec2' 'http://localhost:3001/api'
curl -v -X OPTIONS -H 'X-Deltacloud-Driver: mock' 'http://localhost:3001/api'

=> Should return all 'supported' collections for the current driver in 'Allow'

  -- Michal

View raw message