Merge branch '12032-project-trash' refs #12032
[arvados.git] / services / api / test / integration / api_client_authorizations_scopes_test.rb
index 17c7516b79cd4247f990d359b854832062d75fce..dba801920c7ed9365857db759dc6b4ac87be60aa 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 # The v1 API uses token scopes to control access to the REST API at the path
 # level.  This is enforced in the base ApplicationController, making it a
 # functional test that we can run against many different controllers.
@@ -29,6 +33,8 @@ class ApiTokensScopeTest < ActionDispatch::IntegrationTest
     assert_response 403
     get(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args)
     assert_response :success
+    head(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args)
+    assert_response :success
     get(v1_url('specimens', specimens(:owned_by_spectator).uuid), *get_args)
     assert_includes(403..404, @response.status)
   end