diff options
Diffstat (limited to 'yarns.webapp/040-running-jobs.yarn')
-rw-r--r-- | yarns.webapp/040-running-jobs.yarn | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/yarns.webapp/040-running-jobs.yarn b/yarns.webapp/040-running-jobs.yarn index 1ffe79d..2bbe906 100644 --- a/yarns.webapp/040-running-jobs.yarn +++ b/yarns.webapp/040-running-jobs.yarn @@ -18,7 +18,7 @@ To start with, with an empty run-queue, nothing should be scheduled. We stop the queue first. - WHEN admin makes request POST /1.0/stop-queue with dummy=value + WHEN admin makes request POST /1.0/stop-queue Then make sure we don't get a job when we reuqest one. @@ -33,13 +33,13 @@ shouldn't get a job, since the queue isn't set to run yet. GIVEN Lorry file CONFGIT/foo.lorry with {"foo":{"type":"git","url":"git://foo"}} - WHEN admin makes request POST /1.0/read-configuration with dummy=value + WHEN admin makes request POST /1.0/read-configuration AND admin makes request POST /1.0/give-me-job with host=testhost&pid=123 THEN response has job_id set to null Enable the queue, and off we go. - WHEN admin makes request POST /1.0/start-queue with dummy=value + WHEN admin makes request POST /1.0/start-queue AND admin makes request POST /1.0/give-me-job with host=testhost&pid=123 THEN response has job_id set to 1 AND response has path set to "upstream/foo" @@ -86,7 +86,7 @@ could, in principle, run two jobs at the same time. AND Lorry file CONFGIT/bar.lorry with {"bar":{"type":"git","url":"git://bar"}} AND WEBAPP uses CONFGIT as its configuration directory AND a running WEBAPP - WHEN admin makes request POST /1.0/read-configuration with dummy=value + WHEN admin makes request POST /1.0/read-configuration Check the current set of the `max_jobs` setting. @@ -130,8 +130,8 @@ we did for the successful job scenario. AND WEBAPP uses CONFGIT as its configuration directory AND a running WEBAPP AND Lorry file CONFGIT/foo.lorry with {"foo":{"type":"git","url":"git://foo"}} - WHEN admin makes request POST /1.0/read-configuration with dummy=value - AND admin makes request POST /1.0/start-queue with dummy=value + WHEN admin makes request POST /1.0/read-configuration + AND admin makes request POST /1.0/start-queue AND admin makes request POST /1.0/give-me-job with host=testhost&pid=123 THEN response has job_id set to 1 AND response has path set to "upstream/foo" @@ -183,7 +183,7 @@ to have the test suite fail when running on slow devices. AND Lorry file CONFGIT/foo.lorry with {"foo":{"type":"git","url":"git://foo"}} AND WEBAPP uses CONFGIT as its configuration directory AND a running WEBAPP - WHEN admin makes request POST /1.0/read-configuration with dummy=value + WHEN admin makes request POST /1.0/read-configuration Pretend it is the start of time. @@ -231,7 +231,7 @@ Setup. AND WEBAPP uses CONFGIT as its configuration directory AND a running WEBAPP GIVEN Lorry file CONFGIT/foo.lorry with {"foo":{"type":"git","url":"git://foo"}} - WHEN admin makes request POST /1.0/read-configuration with dummy=value + WHEN admin makes request POST /1.0/read-configuration Start job 1. |