[ARVADOS] updated: 1.2.0-97-g4edb33f16
Git user
git at public.curoverse.com
Mon Sep 24 16:54:58 EDT 2018
Summary of changes:
lib/controller/federation_test.go | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
via 4edb33f16f8f111fa478dda908c37ea2a5723dd9 (commit)
from 1dd4997ebfe9e1bce4073aed9abb37f89ae90845 (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 4edb33f16f8f111fa478dda908c37ea2a5723dd9
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Mon Sep 24 16:53:40 2018 -0400
14197: Federated container request test tweaks
* Check uuid on created container request.
* Add test for bogus cluster id
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/lib/controller/federation_test.go b/lib/controller/federation_test.go
index 7e7cbf648..d1128b3d3 100644
--- a/lib/controller/federation_test.go
+++ b/lib/controller/federation_test.go
@@ -578,6 +578,28 @@ func (s *FederationSuite) TestCreateRemoteContainerRequest2(c *check.C) {
var cr arvados.ContainerRequest
c.Check(json.NewDecoder(resp.Body).Decode(&cr), check.IsNil)
c.Check(cr.Name, check.Equals, "hello world")
+ c.Check(strings.HasPrefix(cr.UUID, "zzzzz-"), check.Equals, true)
+}
+
+func (s *FederationSuite) TestCreateRemoteContainerRequestError(c *check.C) {
+ defer s.localServiceReturns404(c).Close()
+ // pass cluster_id via query parameter, this allows arvados-controller
+ // to avoid parsing the body
+ req := httptest.NewRequest("POST", "/arvados/v1/container_requests?cluster_id=zz404",
+ strings.NewReader(`{
+ "container_request": {
+ "name": "hello world",
+ "state": "Uncommitted",
+ "output_path": "/",
+ "container_image": "123",
+ "command": ["abc"]
+ }
+}
+`))
+ req.Header.Set("Authorization", "Bearer "+arvadostest.ActiveToken)
+ req.Header.Set("Content-type", "application/json")
+ resp := s.testRequest(req)
+ c.Check(resp.StatusCode, check.Equals, http.StatusNotFound)
}
func (s *FederationSuite) TestGetRemoteContainer(c *check.C) {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list