[ https://issues.apache.org/jira/browse/DTACLOUD-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618481#comment-13618481 ]
Ronelle Landy commented on DTACLOUD-511: ---------------------------------------- http://tracker.deltacloud.org/set/392 has no patch to download Pls upload the patch again for testing - thanks > Filtering images by owner (using Mock driver) errors out > -------------------------------------------------------- > > Key: DTACLOUD-511 > URL: https://issues.apache.org/jira/browse/DTACLOUD-511 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Environment: deltacloud gem under test (post 1.1.1) > mock driver > Reporter: Ronelle Landy > Assignee: Michal Fojtik > > This error was found by running the tests in deltacloud/client/tests against > the mock driver. > The test wants to return only the images owned by user: > images = client.images( :owner_id=>:self ) > ERROR -- 500: [NameError] undefined local variable or method `credentials' > for #<Deltacloud::Drivers::Mock::MockDriver:0x007fe5d802c248> > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/drivers/mock/mock_driver.rb:120:in > `block in filter_by_owner' > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/drivers/mock/mock_driver.rb:120:in > `select' > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/drivers/mock/mock_driver.rb:120:in > `filter_by_owner' > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/drivers/mock/mock_driver.rb:134:in > `images' > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/helpers/deltacloud_helper.rb:70:in > `block in filter_all' > /usr/share/ruby/benchmark.rb:280:in `measure' > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/helpers/deltacloud_helper.rb:70:in > `filter_all' > /usr/local/share/gems/gems/deltacloud-core-1.1.2/lib/deltacloud/collections/images.rb:34:in > `block (3 levels) in <class:Images>' > /usr/local/share/gems/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in > `instance_eval' > /usr/local/share/gems/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in > `block in control' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1293:in `call' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1293:in `block > in compile!' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `[]' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `block (3 > levels) in route!' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:876:in > `route_eval' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `block (2 > levels) in route!' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:897:in `block in > process_route' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:895:in `catch' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:895:in > `process_route' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:859:in `block in > route!' > /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:858:in `each' > 10.16.120.64 - - [12/Mar/2013 17:04:22] "GET /api/images?owner_id=self > HTTP/1.1" 500 37884 0.0349 -- 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