[ARVADOS] updated: 1.3.0-10-gcbc55ee5a

Git user git at public.curoverse.com
Fri Dec 7 16:27:11 EST 2018


Summary of changes:
 ...ubmit_test_job.json => submit_test_job_missing.json} |  9 ---------
 sdk/cwl/tests/test_submit.py                            | 17 +++++++++++++++++
 2 files changed, 17 insertions(+), 9 deletions(-)
 copy sdk/cwl/tests/{submit_test_job.json => submit_test_job_missing.json} (56%)

       via  cbc55ee5ac64597cb0856497d3dedeccec79f440 (commit)
      from  fc53ce7d5a7bd7974e8dac163238073e26e8b5d6 (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 cbc55ee5ac64597cb0856497d3dedeccec79f440
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Fri Dec 7 16:26:50 2018 -0500

    14476: Add test that submitting with missing parameters correctly gets error.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/sdk/cwl/tests/submit_test_job_missing.json b/sdk/cwl/tests/submit_test_job_missing.json
new file mode 100644
index 000000000..02d61fa55
--- /dev/null
+++ b/sdk/cwl/tests/submit_test_job_missing.json
@@ -0,0 +1,14 @@
+{
+    "x": {
+        "class": "File",
+        "path": "input/blorp.txt"
+    },
+    "y": {
+        "class": "Directory",
+        "location": "keep:99999999999999999999999999999998+99",
+        "listing": [{
+            "class": "File",
+            "location": "keep:99999999999999999999999999999998+99/file1.txt"
+        }]
+    }
+}
diff --git a/sdk/cwl/tests/test_submit.py b/sdk/cwl/tests/test_submit.py
index 55164446b..90dab0147 100644
--- a/sdk/cwl/tests/test_submit.py
+++ b/sdk/cwl/tests/test_submit.py
@@ -1046,6 +1046,23 @@ class TestSubmit(unittest.TestCase):
 
 
     @stubs
+    def test_submit_missing_input(self, stubs):
+        capture_stdout = cStringIO.StringIO()
+        exited = arvados_cwl.main(
+            ["--submit", "--no-wait", "--api=containers", "--debug",
+             "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, 0)
+
+        capture_stdout = cStringIO.StringIO()
+        exited = arvados_cwl.main(
+            ["--submit", "--no-wait", "--api=containers", "--debug",
+             "tests/wf/submit_wf.cwl", "tests/submit_test_job_missing.json"],
+            capture_stdout, sys.stderr, api_client=stubs.api, keep_client=stubs.keep_client)
+        self.assertEqual(exited, 1)
+
+
+    @stubs
     def test_submit_container_project(self, stubs):
         project_uuid = 'zzzzz-j7d0g-zzzzzzzzzzzzzzz'
         capture_stdout = cStringIO.StringIO()

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list