Files
raven-test-integration/DataList/DataListRights.cs
2026-02-24 15:19:15 -08:00

31 lines
1016 B
C#

// using Xunit;
// using Newtonsoft.Json.Linq;
// using FluentAssertions;
// namespace raven_integration
// {
// 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);
// }
// //==================================================
// }//eoc
// }//eons