[arvados] updated: 2.1.0-2704-ge07a9786f

git repository hosting git at public.arvados.org
Thu Jul 14 14:46:07 UTC 2022


Summary of changes:
 services/api/test/integration/users_test.rb | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

       via  e07a9786ff1fa6e53f4429e301ea866e886eb649 (commit)
      from  70d97b98ddf977505069795ef08236fb439b18e1 (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 e07a9786ff1fa6e53f4429e301ea866e886eb649
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Thu Jul 14 11:45:21 2022 -0300

    19139: Adds test confirming that provided owner_uuid is ignored on create calls
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/services/api/test/integration/users_test.rb b/services/api/test/integration/users_test.rb
index 369e3a2ef..430f0d385 100644
--- a/services/api/test/integration/users_test.rb
+++ b/services/api/test/integration/users_test.rb
@@ -520,4 +520,20 @@ class UsersTest < ActionDispatch::IntegrationTest
     assert_not_nil json_response["uuid"]
     assert_equal users(:system_user).uuid, json_response["owner_uuid"]
   end
+
+  test "create users ignores provided owner_uuid field" do
+    assert_equal false, users(:admin).uuid == users(:system_user).uuid
+    post '/arvados/v1/users',
+      params: {
+        "user" => {
+          "email" => 'foo at example.com',
+          "owner_uuid" => users(:admin).uuid,
+          "username" => "barney"
+        }
+      },
+      headers: auth(:admin)
+    assert_response :success
+    assert_not_nil json_response["uuid"]
+    assert_equal users(:system_user).uuid, json_response["owner_uuid"]
+  end
 end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list