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

Marios Andreou commented on DTACLOUD-561:
-----------------------------------------

[~dies] if you are referring to the 'uninitialized constant 
CIMI::Model::MachineCollection ' error then, yeah, my patch @ 
https://github.com/deltacloud/deltacloud-core/pull/45 and 
https://issues.apache.org/jira/browse/DTACLOUD-562 does not address that at 
all. This is because I can't see or reproduce this error, so I will need some 
more help for this - [~mfojtik] did you say you had fixed/seen this? To be 
clear [~dkoper] - are you seeing this just from 'rake test:cimi' ? Is there a 
more direct repro (like GET /machines for example?) - so we can isolate the 
stack trace
 
all the best, marios
                
> cimi: regression: cimi tests failing with uninitialized constant 
> CIMI::Model::MachineCollection
> -----------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-561
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-561
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: CIMI/Frontend
>         Environment: Reproduced on Windows and github linked Travis
>            Reporter: Dies Koper
>
> 112 tests, 109 passed, 531 assertions, 1 failures, 2 errors, 0 skips
> details below.
> I don't understand the errors. For the failure, it is doing a 
> /machines?$filter=name!='MockUserInstance' and expecting 1 resource.
> According to the log below, there were 2.
> I think it should have returned three:
> There are four inst yaml files, with the following names:
> inst0: Mock Instance With Profile Change
> inst1: MockUserInstance <- name=='MockUserInstance'
> inst2: AnotherInstance
> inst3: ''
> So I expected inst0, inst2 and inst3 to be returned. Bug in filter operation 
> with empty strings?
> ERROR
> uninitialized constant CIMI::Model::MachineCollection
> org/jruby/RubyModule.java:2630:in `const_missing'
> org/jruby/RubyModule.java:2545:in `const_get'
> tests/cimi/collections/common.rb:44:in `model_class'
> tests/cimi/collections/common.rb:49:in `model'
> tests/cimi/collections/machines_test.rb:40:in `test_0005_should have an "add" 
> operation for the machine collection'
> org/jruby/RubyBasicObject.java:1677:in `__send__'
> org/jruby/RubyArray.java:2407:in `map'
> org/jruby/RubyArray.java:2407:in `map'
> org/jruby/RubyBasicObject.java:1677:in `__send__'
> org/jruby/RubyKernel.java:2167:in `send'
> org/jruby/RubyArray.java:1613:in `each'
> /home/travis/.rvm/rubies/jruby-head/bin/testrb:5:in `(root)'
> ERROR
> uninitialized constant CIMI::Model::MachineCollection
> org/jruby/RubyModule.java:2630:in `const_missing'
> org/jruby/RubyModule.java:2545:in `const_get'
> tests/cimi/collections/common.rb:44:in `model_class'
> tests/cimi/collections/common.rb:49:in `model'
> tests/cimi/collections/machines_test.rb:47:in `test_0006_should return the 
> disks collection for a machine'
> org/jruby/RubyBasicObject.java:1677:in `__send__'
> org/jruby/RubyArray.java:2407:in `map'
> org/jruby/RubyArray.java:2407:in `map'
> org/jruby/RubyBasicObject.java:1677:in `__send__'
> org/jruby/RubyKernel.java:2167:in `send'
> org/jruby/RubyArray.java:1613:in `each'
> /home/travis/.rvm/rubies/jruby-head/bin/testrb:5:in `(root)'
> FAIL
> Expected: 1
> Actual: 2
> (eval):8:in `must_equal'
> tests/cimi/collections/machines_test.rb:109:in `test_0002_should filter 
> collection by reverse name attribute'
> org/jruby/RubyBasicObject.java:1677:in `__send__'
> org/jruby/RubyArray.java:2407:in `map'
> org/jruby/RubyArray.java:2407:in `map'
> org/jruby/RubyBasicObject.java:1677:in `__send__'
> org/jruby/RubyKernel.java:2167:in `send'
> org/jruby/RubyArray.java:1613:in `each'
> /home/travis/.rvm/rubies/jruby-head/bin/testrb:5:in `(root)'

--
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

Reply via email to