This commit is contained in:
2026-02-24 15:19:15 -08:00
parent 0a2afde1ec
commit a58261a6df
6 changed files with 4442 additions and 4438 deletions

View File

@@ -1,30 +1,30 @@
using Xunit;
using Newtonsoft.Json.Linq;
using FluentAssertions;
// using Xunit;
// using Newtonsoft.Json.Linq;
// using FluentAssertions;
namespace raven_integration
{
// namespace raven_integration
// {
public class DataListRights
{
// public class DataListRights
// {
/// <summary>
///
/// </summary>
[Fact]
public async Task InsufficentRightsShouldNotRetrieve()
{
//Get without rights
/*
"{\"error\":{\"code\":\"2004\",\"message\":\"User not authorized for this resource operation (insufficient rights)\"}}"
*/
//ApiResponse a = await Util.GetAsync("data-list/list?DataListKey=TestWidgetDataList&Offset=0&Limit=3", await Util.GetTokenAsync("CustomerRestricted"));
ApiResponse a = await Util.PostAsync($"data-list", await Util.GetTokenAsync("CustomerRestricted"), Util.BuildDataListRequestEx());
Util.ValidateErrorCodeResponse(a, 2004, 403);
}
// /// <summary>
// ///
// /// </summary>
// [Fact]
// public async Task InsufficentRightsShouldNotRetrieve()
// {
// //Get without rights
// /*
// "{\"error\":{\"code\":\"2004\",\"message\":\"User not authorized for this resource operation (insufficient rights)\"}}"
// */
// //ApiResponse a = await Util.GetAsync("data-list/list?DataListKey=TestWidgetDataList&Offset=0&Limit=3", await Util.GetTokenAsync("CustomerRestricted"));
// ApiResponse a = await Util.PostAsync($"data-list", await Util.GetTokenAsync("CustomerRestricted"), Util.BuildDataListRequestEx());
// Util.ValidateErrorCodeResponse(a, 2004, 403);
// }
//==================================================
// //==================================================
}//eoc
}//eons
// }//eoc
// }//eons