X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..55aafbb07904ca24390dd47ea960eae7cb2b909a:/services/api/test/integration/users_test.rb diff --git a/services/api/test/integration/users_test.rb b/services/api/test/integration/users_test.rb index 38ac12267a..0288e887f9 100644 --- a/services/api/test/integration/users_test.rb +++ b/services/api/test/integration/users_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' require 'helpers/users_test_helper' @@ -57,8 +61,15 @@ class UsersTest < ActionDispatch::IntegrationTest email: "foo@example.com" } }, auth(:admin) + assert_response 422 # cannot create another user with same UUID - assert_response :success + # invoke setup on the same user + post "/arvados/v1/users/setup", { + repo_name: repo_name, + vm_uuid: virtual_machines(:testvm).uuid, + openid_prefix: 'https://www.google.com/accounts/o8/id', + uuid: 'zzzzz-tpzed-abcdefghijklmno', + }, auth(:admin) response_items = json_response['items']