[ARVADOS] created: 7533ea385aaeb69e7b8b71d1affc955d463f991c
git at public.curoverse.com
git at public.curoverse.com
Tue Nov 18 14:24:05 EST 2014
at 7533ea385aaeb69e7b8b71d1affc955d463f991c (commit)
commit 7533ea385aaeb69e7b8b71d1affc955d463f991c
Author: radhika <radhika at curoverse.com>
Date: Tue Nov 18 14:05:22 2014 -0500
4156: update failing tests in test_arv-put that were expecting pdh instead of uuid.
diff --git a/sdk/cli/test/test_arv-put.rb b/sdk/cli/test/test_arv-put.rb
index 27809aa..7a9c4b9 100644
--- a/sdk/cli/test/test_arv-put.rb
+++ b/sdk/cli/test/test_arv-put.rb
@@ -82,7 +82,7 @@ class TestArvPut < Minitest::Test
end
$stderr.write err
assert_match '', err
- assert_equal "aa4f15cbf013142a7d98b1e273f9c661+45\n", out
+ assert_equal true, match_collection_uuid(out)
end
def test_as_stream
@@ -99,7 +99,7 @@ class TestArvPut < Minitest::Test
assert arv_put('--manifest', '--progress', './tmp/foo')
end
assert_match /%/, err
- assert_equal foo_manifest_locator+"\n", out
+ assert_equal true, match_collection_uuid(out)
end
def test_batch_progress
@@ -108,7 +108,7 @@ class TestArvPut < Minitest::Test
end
assert_match /: 0 written 3 total/, err
assert_match /: 3 written 3 total/, err
- assert_equal foo_manifest_locator+"\n", out
+ assert_equal true, match_collection_uuid(out)
end
def test_progress_and_batch_progress
@@ -144,7 +144,7 @@ class TestArvPut < Minitest::Test
end
$stderr.write err
assert_match '', err
- assert_equal foo_manifest_locator+"\n", out
+ assert_equal true, match_collection_uuid(out)
end
def test_read_from_implicit_stdin_implicit_manifest
@@ -174,8 +174,7 @@ class TestArvPut < Minitest::Test
end
$stderr.write err
assert_match '', err
- assert_equal(foo_manifest_locator(expect_filename)+"\n",
- out)
+ assert_equal true, match_collection_uuid(out)
end
protected
@@ -191,4 +190,9 @@ class TestArvPut < Minitest::Test
Digest::MD5.hexdigest(foo_manifest(filename)) +
"+#{foo_manifest(filename).length}"
end
+
+ def match_collection_uuid(uuid)
+ match = /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(uuid)
+ match and match[1] and !match[1].nil?
+ end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list