This commit is contained in:
2020-05-13 23:35:52 +00:00
parent e08f352b7a
commit b509fc08ce
13 changed files with 337 additions and 337 deletions

View File

@@ -18,7 +18,7 @@ namespace raven_integration
[Fact]
public async void ServerShouldNotAllowUnauthenticatedAccess()
{
ApiResponse a = await Util.GetAsync("Widget/list");
ApiResponse a = await Util.GetAsync("widget/list");
Util.ValidateHTTPStatusCode(a, 401);
}
@@ -28,7 +28,7 @@ namespace raven_integration
[Fact]
public async void ServerShouldNotAllowReadUnauthorizedAccess()
{
ApiResponse a = await Util.GetAsync("Widget/listwidgets", await Util.GetTokenAsync( "OpsAdminFull"));
ApiResponse a = await Util.GetAsync("widget/listwidgets", await Util.GetTokenAsync( "OpsAdminFull"));
//2004 unauthorized
Util.ValidateErrorCodeResponse(a, 2004, 403);
}
@@ -50,7 +50,7 @@ namespace raven_integration
d.usertype = 1;
//BizAdminLimited user should not be able to create a widget, only read them
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync( "BizAdminLimited"), d.ToString());
ApiResponse a = await Util.PostAsync("widget", await Util.GetTokenAsync( "BizAdminLimited"), d.ToString());
//2004 unauthorized
Util.ValidateErrorCodeResponse(a, 2004, 403);