[ARVADOS] updated: 1.1.0-133-g3ff7fc1

Git user git at public.curoverse.com
Thu Nov 9 15:42:02 EST 2017


Summary of changes:
 sdk/python/arvados/commands/get.py | 2 +-
 sdk/python/tests/test_arv_get.py   | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

       via  3ff7fc1df61836d08b9862b0872d3ec8f12ae444 (commit)
      from  fc128bc6497aa266f925e2aa4821bde6fce9aade (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 3ff7fc1df61836d08b9862b0872d3ec8f12ae444
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Thu Nov 9 15:40:45 2017 -0500

    Add missing module name.
    
    refs #11220
    fixes #12590
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/sdk/python/arvados/commands/get.py b/sdk/python/arvados/commands/get.py
index b866bf7..881fdd6 100755
--- a/sdk/python/arvados/commands/get.py
+++ b/sdk/python/arvados/commands/get.py
@@ -301,7 +301,7 @@ def files_in_collection(c):
 def write_block_or_manifest(dest, src, api_client, args):
     if '+A' in src:
         # block locator
-        kc = KeepClient(api_client=api_client)
+        kc = arvados.keep.KeepClient(api_client=api_client)
         dest.write(kc.get(src, num_retries=args.retries))
     else:
         # collection UUID or portable data hash
diff --git a/sdk/python/tests/test_arv_get.py b/sdk/python/tests/test_arv_get.py
index fc6b846..5aa223a 100644
--- a/sdk/python/tests/test_arv_get.py
+++ b/sdk/python/tests/test_arv_get.py
@@ -73,6 +73,13 @@ class ArvadosGetTestCase(run_test_server.TestCaseWithServers,
         self.assertEqual(0, r)
         self.assertEqual(b'baz', self.stdout.getvalue())
 
+    def test_get_block(self):
+        # Get raw data using a block locator
+        blk = re.search(' (acbd18\S+\+A\S+) ', self.col_manifest).group(1)
+        r = self.run_get([blk, '-'])
+        self.assertEqual(0, r)
+        self.assertEqual(b'foo', self.stdout.getvalue())
+
     def test_get_multiple_files(self):
         # Download the entire collection to the temp directory
         r = self.run_get(["{}/".format(self.col_loc), self.tempdir])

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list