3 class KeepServiceTest < ActiveSupport::TestCase
4 test "non-admins cannot create services" do
5 set_user_from_auth :active
12 test "non-admins cannot update services" do
13 set_user_from_auth :active
14 ks = keep_services(:proxy)
15 ks.service_port = 64434
21 test "admins can create services" do
22 set_user_from_auth :admin
24 assert(ks.save, "saving new service failed")
27 test "admins can update services" do
28 set_user_from_auth :admin
29 ks = keep_services(:proxy)
30 ks.service_port = 64434
31 assert(ks.save, "saving updated service failed")