4156: update test to expect uuid instead of pdh
[arvados.git] / sdk / cli / test / test_arv-collection-create.rb
index c513be098674318d4604b2c54bd286f2974dfb65..d1f4a51940d1f67ec4bc12ba75b642af1f3fa4c6 100644 (file)
@@ -1,5 +1,6 @@
 require 'minitest/autorun'
 require 'digest/md5'
+require 'active_support/core_ext'
 
 class TestCollectionCreate < Minitest::Test
   def setup
@@ -13,7 +14,9 @@ class TestCollectionCreate < Minitest::Test
                    manifest_text: foo_manifest
                  }.to_json)
     end
-    assert_equal uuid+"\n", out
+
+    match = /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(out)
+    assert_equal true, (match and match[1] and !match[1].nil?)
     assert_equal '', err
     $stderr.puts err
   end