This commit is contained in:
2020-01-23 20:34:35 +00:00
parent 65de42a4dc
commit 406698ab54
2 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using Xunit;
using Newtonsoft.Json.Linq;
using FluentAssertions;
namespace raven_integration
{
public class DataListRights
{
/// <summary>
///
/// </summary>
[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("DataList/list?DataListKey=TestWidgetDataList&Offset=0&Limit=3", await Util.GetTokenAsync("CustomerLimited"));
Util.ValidateErrorCodeResponse(a, 2004, 403);
}
//==================================================
}//eoc
}//eons