deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-480) Digitalocean driver: undefined method `valid_credentials?' error when using using "?force_auth" parameter
Date Tue, 26 Feb 2013 23:24:13 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587721#comment-13587721
] 

Ronelle Landy commented on DTACLOUD-480:
----------------------------------------

ACK - patch works for me 

# Running tests:

.................

Finished tests in 0.938143s, 18.1209 tests/s, 60.7583 assertions/s.

17 tests, 57 assertions, 0 failures, 0 errors, 0 skips

                
> Digitalocean driver: undefined method `valid_credentials?' error when using  using "?force_auth"
parameter
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-480
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-480
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Deltacloud 1.1.1. - gen under test
> Digitalocean driver
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>         Attachments: 0001-Adds-valid_credentials-method-for-digital_ocean-driv.patch
>
>
> Tets code that prodiced the error:
> >> get_api(:noauth=> true, :force_auth => '1')
> Test failure output copied below:
> test_0015_must re-validate the driver credentials when using "?force_auth" parameter
in URL(Deltacloud API Entry Point) [base_api_test.rb:113]:
> [RestClient::Request::Unauthorized] exception expected, not
> Class: <RestClient::InternalServerError>
> Message: <"500 Internal Server Error">
> ---Backtrace---
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
`return!'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
> /usr/lib/ruby/1.8/net/http.rb:543:in `start'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient.rb:68:in `get'
> ./../deltacloud/test_setup.rb:136:in `get'
> base_api_test.rb:25:in `get_api'
> base_api_test.rb:114:in `test_0015_must re-validate the driver credentials when using
"?force_auth" parameter in URL'
> ---------------
> From the server trace:
> E, [2013-02-14T16:59:24.894818 #55926] ERROR -- 500: [NoMethodError] undefined method
`valid_credentials?' for #<Deltacloud::Drivers::Digitalocean::DigitaloceanDriver:0x7f11a3a73d28>
> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.1.1/lib/deltacloud/server.rb:49:in `GET
/'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:1292:in `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:1292:in `compile!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in `[]'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:876:in `route_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:897:in `process_route'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in `catch'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in `process_route'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:859:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:858:in `each'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:858:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:963:in `dispatch!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in `catch'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:960:in `dispatch!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:794:in `call!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in `catch'
> 10.16.96.112 - - [14/Feb/2013 16:59:24] "GET /api/?force_auth=1 HTTP/1.1" 500 75324 0.0221
> 1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message