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

Dies Koper commented on DTACLOUD-562:
-------------------------------------

I opened DTACLOUD-561 about this last week.
I also mentioned about two other failures in that JIRA. I should probably have 
opened separate JIRAs for them.
Let's use this JIRA for this issue and DTACLOUD-561 for the uninitialized 
constant CIMI::Model::MachineCollection issue (which you are mentioning here - 
have you fixed it? Patch welcome!)

About this issue, here's what I wrote in the other JIRA:

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?

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

                
> The $filter attribute in CIMI does not propetly
> -----------------------------------------------
>
>                 Key: DTACLOUD-562
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-562
>             Project: DeltaCloud
>          Issue Type: Bug
>            Reporter: Michal Fojtik
>            Priority: Minor
>
> I just saw the the unit tests fail on testing the $filter attribute on CIMI:
> FAIL
>   Expected: 1
>     Actual: 2
>   (eval):8:in `must_equal'
>   tests/cimi/collections/machines_test.rb:114:in `block (3 levels) in <top 
> (required)>
> I dunno what cause this issue :-) I will investigate later tomorrow or of 
> somebody wants to pick it up I will not be against ;-)

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