[ARVADOS] updated: 1.3.0-1989-g1c4a2d386

Git user git at public.arvados.org
Thu Dec 12 20:52:03 UTC 2019


Summary of changes:
 lib/controller/router/router_test.go | 6 ++++++
 1 file changed, 6 insertions(+)

       via  1c4a2d386dc0d2a85c86171801c6681d76fb12fe (commit)
      from  44f0586f6d2feb1325e1b5f2014195506c03f48a (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 1c4a2d386dc0d2a85c86171801c6681d76fb12fe
Author: Tom Clegg <tom at tomclegg.ca>
Date:   Thu Dec 12 15:46:51 2019 -0500

    15922: Test for writable_by in response.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at tomclegg.ca>

diff --git a/lib/controller/router/router_test.go b/lib/controller/router/router_test.go
index 5700f01e2..4cabe70f1 100644
--- a/lib/controller/router/router_test.go
+++ b/lib/controller/router/router_test.go
@@ -286,6 +286,12 @@ func (s *RouterIntegrationSuite) TestContainerLock(c *check.C) {
 	c.Check(jresp["uuid"], check.IsNil)
 }
 
+func (s *RouterIntegrationSuite) TestWritableBy(c *check.C) {
+	_, rr, jresp := doRequest(c, s.rtr, arvadostest.ActiveTokenV2, "GET", `/arvados/v1/users/`+arvadostest.ActiveUserUUID, nil, nil)
+	c.Check(rr.Code, check.Equals, http.StatusOK)
+	c.Check(jresp["writable_by"], check.DeepEquals, []interface{}{"zzzzz-tpzed-000000000000000", "zzzzz-tpzed-xurymjxw79nv3jz", "zzzzz-j7d0g-48foin4vonvc2at"})
+}
+
 func (s *RouterIntegrationSuite) TestFullTimestampsInResponse(c *check.C) {
 	uuid := arvadostest.CollectionReplicationDesired2Confirmed2UUID
 	token := arvadostest.ActiveTokenV2

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list