[ARVADOS] updated: 1.2.0-423-g8352a6863
Git user
git at public.curoverse.com
Wed Nov 21 14:02:56 EST 2018
Summary of changes:
sdk/cwl/tests/test_submit.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
via 8352a6863cdcc2794108a71fd5b64e7b75f9dd20 (commit)
from d353e9be958d39a1aaf6ca83f269d077c74c8848 (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 8352a6863cdcc2794108a71fd5b64e7b75f9dd20
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Wed Nov 21 14:00:04 2018 -0500
Fix --submit-runner-cluster tests refs #14198
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/sdk/cwl/tests/test_submit.py b/sdk/cwl/tests/test_submit.py
index 92ea553ea..1b892a983 100644
--- a/sdk/cwl/tests/test_submit.py
+++ b/sdk/cwl/tests/test_submit.py
@@ -1452,6 +1452,7 @@ class TestSubmit(unittest.TestCase):
@stubs
def test_submit_container_cluster_id(self, stubs):
capture_stdout = cStringIO.StringIO()
+ stubs.api._rootDesc["remoteHosts"]["zbbbb"] = "123"
try:
exited = arvados_cwl.main(
["--submit", "--no-wait", "--api=containers", "--debug", "--submit-runner-cluster=zbbbb",
@@ -1469,6 +1470,17 @@ class TestSubmit(unittest.TestCase):
stubs.expect_container_request_uuid + '\n')
+ @stubs
+ def test_submit_validate_cluster_id(self, stubs):
+ capture_stdout = cStringIO.StringIO()
+ stubs.api._rootDesc["remoteHosts"]["zbbbb"] = "123"
+ exited = arvados_cwl.main(
+ ["--submit", "--no-wait", "--api=containers", "--debug", "--submit-runner-cluster=zcccc",
+ "tests/wf/submit_wf.cwl", "tests/submit_test_job.json"],
+ capture_stdout, sys.stderr, api_client=stubs.api, keep_client=stubs.keep_client)
+ self.assertEqual(exited, 1)
+
+
class TestCreateTemplate(unittest.TestCase):
existing_template_uuid = "zzzzz-d1hrv-validworkfloyml"
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list