[ https://issues.apache.org/jira/browse/DTACLOUD-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676759#comment-13676759 ]
Dies Koper commented on DTACLOUD-561: ------------------------------------- Saw it just from rake test and rake test:cimi. I get a similar error with the CIMI ui client, when clicking on machines in the UI. See Monday's e-mail "cimi client UI returning uninitialized constant" on the mailing list. If you can reproduce and fix that one, I may be able to figure out what's wrong with this one. > 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