31 lines
1016 B
C#
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
|