1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class KeepServiceTest < ActiveSupport::TestCase
8 test "non-admins cannot create services" do
9 set_user_from_auth :active
16 test "non-admins cannot update services" do
17 set_user_from_auth :active
18 ks = keep_services(:proxy)
19 ks.service_port = 64434
25 test "admins can create services" do
26 set_user_from_auth :admin
28 assert(ks.save, "saving new service failed")
31 test "admins can update services" do
32 set_user_from_auth :admin
33 ks = keep_services(:proxy)
34 ks.service_port = 64434
35 assert(ks.save, "saving updated service failed")