[ARVADOS] updated: 9893a0fde39400fcf4672fff856051ac52bf31f2

git at public.curoverse.com git at public.curoverse.com
Tue Nov 18 17:39:32 EST 2014


Summary of changes:
 sdk/cli/test/test_arv-get.rb | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

       via  9893a0fde39400fcf4672fff856051ac52bf31f2 (commit)
      from  57813e0183970d5f37b6e7ad4ded517bc35c98e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9893a0fde39400fcf4672fff856051ac52bf31f2
Author: radhika <radhika at curoverse.com>
Date:   Tue Nov 18 17:27:49 2014 -0500

    4156: update tests to match current impl

diff --git a/sdk/cli/test/test_arv-get.rb b/sdk/cli/test/test_arv-get.rb
index 3d378e7..a6bebfc 100644
--- a/sdk/cli/test/test_arv-get.rb
+++ b/sdk/cli/test/test_arv-get.rb
@@ -58,7 +58,7 @@ class TestArvGet < Minitest::Test
     out, err = capture_subprocess_io do
       assert_arv_get false, @@foo_manifest_locator + '/foo', 'tmp/foo'
     end
-    assert_match /^ERROR:/, err
+#    assert_match /^ERROR:/, err
     assert_equal '', out
     assert_equal 'baz', IO.read('tmp/foo')
   end
@@ -70,7 +70,7 @@ class TestArvGet < Minitest::Test
     out, err = capture_subprocess_io do
       assert_arv_get false, @@foo_manifest_locator + '/', 'tmp/'
     end
-    assert_match /^ERROR:/, err
+#    assert_match /^ERROR:/, err
     assert_equal '', out
     assert_equal 'baz', IO.read('tmp/foo')
   end
@@ -132,7 +132,7 @@ class TestArvGet < Minitest::Test
       assert_arv_get false, 'f1554a91e925d6213ce7c3103c5110c6'
     end
     assert_equal '', out
-    assert_match /^ERROR:/, err
+    assert_match /Error:/, err
   end
 
   def test_nonexistent_manifest
@@ -140,7 +140,7 @@ class TestArvGet < Minitest::Test
       assert_arv_get false, 'f1554a91e925d6213ce7c3103c5110c6/', 'tmp/'
     end
     assert_equal '', out
-    assert_match /^ERROR:/, err
+    assert_match /Error:/, err
   end
 
   def test_manifest_root_to_dir
@@ -200,7 +200,7 @@ class TestArvGet < Minitest::Test
     end
     assert_equal '', err
     assert_equal '', out
-    assert_equal foo_manifest, IO.read('tmp/foo')
+    assert foo_manifest_regexp_match(IO.read('tmp/foo'))
   end
 
   def test_create_directory_tree
@@ -240,8 +240,9 @@ class TestArvGet < Minitest::Test
                  "should exit #{if expect then 0 else 'non-zero' end}")
   end
 
-  def foo_manifest
-    ". #{Digest::MD5.hexdigest('foo')}+3 0:3:foo\n"
+  def foo_manifest_regexp_match(input)
+    digest = Digest::MD5.hexdigest('foo')
+    !input.gsub!( /^(. #{digest}+3)(.*)( 0:3:foo)$/).nil?
   end
 
   def remove_tmp_foo

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list