[ARVADOS] updated: a619c2ce3c6d5bc00b9898dd084ac0e2efc2ee76

Git user git at public.curoverse.com
Fri Dec 16 14:39:56 EST 2016


Summary of changes:
 sdk/cwl/tests/test_container.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

       via  a619c2ce3c6d5bc00b9898dd084ac0e2efc2ee76 (commit)
      from  83a4e42fb15030a9108e76dcf01a1a7d6c14cda5 (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 a619c2ce3c6d5bc00b9898dd084ac0e2efc2ee76
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Dec 16 14:39:50 2016 -0500

    Fix CWL tests refs #10576

diff --git a/sdk/cwl/tests/test_container.py b/sdk/cwl/tests/test_container.py
index bb66155..0394988 100644
--- a/sdk/cwl/tests/test_container.py
+++ b/sdk/cwl/tests/test_container.py
@@ -8,7 +8,7 @@ import functools
 import cwltool.process
 from schema_salad.ref_resolver import Loader
 
-from schema_salad.ref_resolver import Loader
+from .matcher import JsonDiffMatcher
 
 if not os.getenv('ARVADOS_DEBUG'):
     logging.getLogger('arvados.cwl-runner').setLevel(logging.WARN)
@@ -48,7 +48,7 @@ class TestContainer(unittest.TestCase):
                                  make_fs_access=make_fs_access, tmpdir="/tmp"):
                 j.run(enable_reuse=enable_reuse)
                 runner.api.container_requests().create.assert_called_with(
-                    body={
+                    body=JsonDiffMatcher({
                         'environment': {
                             'HOME': '/var/spool/cwl',
                             'TMPDIR': '/tmp'
@@ -69,8 +69,9 @@ class TestContainer(unittest.TestCase):
                         'container_image': '99999999999999999999999999999993+99',
                         'command': ['ls', '/var/spool/cwl'],
                         'cwd': '/var/spool/cwl',
-                        'scheduling_parameters': {}
-                    })
+                        'scheduling_parameters': {},
+                        'properties': {},
+                    }))
 
     # The test passes some fields in builder.resources
     # For the remaining fields, the defaults will apply: {'cores': 1, 'ram': 1024, 'outdirSize': 1024, 'tmpdirSize': 1024}
@@ -141,7 +142,8 @@ class TestContainer(unittest.TestCase):
                 'cwd': '/var/spool/cwl',
                 'scheduling_parameters': {
                     'partitions': ['blurb']
-                }
+                },
+                'properties': {}
         }
 
         call_body = call_kwargs.get('body', None)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list