[ARVADOS] updated: 1.1.4-524-g8f0815985

Git user git at public.curoverse.com
Mon Jul 2 14:11:13 EDT 2018


Summary of changes:
 sdk/cwl/tests/test_container.py | 36 +++---------------------------------
 1 file changed, 3 insertions(+), 33 deletions(-)

       via  8f0815985dfb74fc1c7468426359ac3fbbd8c12d (commit)
      from  1f9519fba9a34f2a596c683ed6395b2e291935b7 (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 8f0815985dfb74fc1c7468426359ac3fbbd8c12d
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Mon Jul 2 15:10:27 2018 -0300

    13219: Simplifies test
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/sdk/cwl/tests/test_container.py b/sdk/cwl/tests/test_container.py
index dad631377..dd484690c 100644
--- a/sdk/cwl/tests/test_container.py
+++ b/sdk/cwl/tests/test_container.py
@@ -688,36 +688,6 @@ class TestContainer(unittest.TestCase):
 
         for j in arvtool.job({}, mock.MagicMock(), runtimeContext):
             j.run(runtimeContext)
-            runner.api.container_requests().create.assert_called_with(
-                body=JsonDiffMatcher({
-                    'environment': {
-                        'HOME': '/var/spool/cwl',
-                        'TMPDIR': '/tmp'
-                    },
-                    'name': 'test_timelimit',
-                    'runtime_constraints': {
-                        'vcpus': 1,
-                        'ram': 1073741824
-                    },
-                    'use_existing': True,
-                    'priority': 500,
-                    'mounts': {
-                        '/tmp': {'kind': 'tmp',
-                                    "capacity": 1073741824
-                                },
-                        '/var/spool/cwl': {'kind': 'tmp',
-                                            "capacity": 1073741824 }
-                    },
-                    'state': 'Committed',
-                    'owner_uuid': 'zzzzz-8i9sb-zzzzzzzzzzzzzzz',
-                    'output_path': '/var/spool/cwl',
-                    'output_ttl': 0,
-                    'container_image': 'arvados/jobs',
-                    'command': ['ls', '/var/spool/cwl'],
-                    'cwd': '/var/spool/cwl',
-                    'scheduling_parameters': {
-                        "max_run_time": 42
-                    },
-                    'properties': {},
-                    'secret_mounts': {}
-                }))
+
+        _, kwargs = runner.api.container_requests().create.call_args
+        self.assertEqual(42, kwargs['body']['scheduling_parameters'].get('max_run_time'))

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list