using Xunit; using Newtonsoft.Json.Linq; using FluentAssertions; namespace raven_integration { public class DataListRights { /// /// /// [Fact] public async void 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("CustomerLimited")); ApiResponse a = await Util.PostAsync($"data-list", await Util.GetTokenAsync("CustomerLimited"), Util.BuildDataListRequestEx()); Util.ValidateErrorCodeResponse(a, 2004, 403); } //================================================== }//eoc }//eons