From e71584ec63fa079c7c74fcf6806e407a89cffde9 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 26 Feb 2026 11:27:47 -0800 Subject: [PATCH] 4648 --- Authentication/AuthRights.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Authentication/AuthRights.cs b/Authentication/AuthRights.cs index 31cba89..c59ff69 100644 --- a/Authentication/AuthRights.cs +++ b/Authentication/AuthRights.cs @@ -1,9 +1,5 @@ -using System; using Xunit; using Newtonsoft.Json.Linq; -using FluentAssertions; -using System.Collections.Generic; -using System.Collections.Concurrent; namespace raven_integration { @@ -18,7 +14,7 @@ namespace raven_integration [Fact] public async Task ServerShouldNotAllowUnauthenticatedAccess() { - ApiResponse a = await Util.GetAsync("widget/list"); + ApiResponse a = await Util.GetAsync("project/list"); Util.ValidateHTTPStatusCode(a, 401); } @@ -28,7 +24,7 @@ namespace raven_integration [Fact] public async Task ServerShouldNotAllowReadUnauthorizedAccess() { - ApiResponse a = await Util.GetAsync("widget/listwidgets", await Util.GetTokenAsync( "OpsAdmin")); + ApiResponse a = await Util.GetAsync("project/listprojects", await Util.GetTokenAsync( "OpsAdmin")); //2004 unauthorized Util.ValidateErrorCodeResponse(a, 2004, 403); } @@ -43,14 +39,14 @@ namespace raven_integration { //CREATE dynamic d = new JObject(); - d.name = Util.Uniquify("ServerShouldNotAllowCreateUnauthorizedAccess TEST WIDGET"); + d.name = Util.Uniquify("ServerShouldNotAllowCreateUnauthorizedAccess TEST PROJECT"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; d.usertype = 1; - //BizAdminRestricted user should not be able to create a widget, only read them - ApiResponse a = await Util.PostAsync("widget", await Util.GetTokenAsync( "BizAdminRestricted"), d.ToString()); + //BizAdminRestricted user should not be able to create a project, only read them + ApiResponse a = await Util.PostAsync("project", await Util.GetTokenAsync( "BizAdminRestricted"), d.ToString()); //2004 unauthorized Util.ValidateErrorCodeResponse(a, 2004, 403);