4648
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user