15781: Adds test proving that 'contains' does case-sensitive matching.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 19 Feb 2020 18:06:25 +0000 (15:06 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 19 Feb 2020 18:06:25 +0000 (15:06 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

services/api/test/fixtures/collections.yml
services/api/test/functional/arvados/v1/filters_test.rb

index 84c3559939123a6c12230ff375d5dfa62b956a12..1581039bb388638ee0fc56decc7ce0940ea49f4d 100644 (file)
@@ -1000,7 +1000,7 @@ collection_with_list_prop_even:
   manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"
   name: collection with list property with even values
   properties:
-    listprop: [elem2, 4, elem6]
+    listprop: [elem2, 4, elem6, ELEM8]
 
 collection_with_listprop_elem1:
   uuid: zzzzz-4zz18-listpropelem1
index 738c18080f9f4e05857d054e09701c3db201af62..b30afd745345df01fdb986d8ead8b8c7ad2ab0c4 100644 (file)
@@ -176,6 +176,8 @@ class Arvados::V1::FiltersTest < ActionController::TestCase
    ['listprop', '=', 'elem1', [:collection_with_listprop_elem1], [:collection_with_list_prop_odd]],
    ['listprop', 'contains', 5, [:collection_with_list_prop_odd], [:collection_with_list_prop_even, :collection_with_listprop_elem1]],
    ['listprop', 'contains', 'elem2', [:collection_with_list_prop_even], [:collection_with_list_prop_odd, :collection_with_listprop_elem1]],
+   ['listprop', 'contains', 'ELEM2', [], [:collection_with_list_prop_even]],
+   ['listprop', 'contains', 'elem8', [], [:collection_with_list_prop_even]],
    ['listprop', 'contains', 4, [:collection_with_list_prop_even], [:collection_with_list_prop_odd, :collection_with_listprop_elem1]],
   ].each do |prop, op, opr, inc, ex|
     test "jsonb filter properties.#{prop} #{op} #{opr})" do