4648
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
using Xunit;
|
||||
using FluentAssertions;
|
||||
|
||||
namespace raven_integration
|
||||
{
|
||||
public class GlobalAll
|
||||
{
|
||||
/// <summary>
|
||||
/// Test Global routes
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GlobalOps()
|
||||
{
|
||||
//excercise the fetch and update routes but no actual changes because making a change of any kind to global will likely break other tests
|
||||
//and we just need to see the routes are active really
|
||||
|
||||
ApiResponse a = await Util.GetAsync("global-biz-setting", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
a.ObjectResponse["data"]["searchCaseSensitiveOnly"].Should().NotBeNull();
|
||||
|
||||
var g = a.ObjectResponse["data"];
|
||||
a = await Util.PutAsync("global-biz-setting", await Util.GetTokenAsync("BizAdminFull"), g.ToString(Newtonsoft.Json.Formatting.None));
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
}
|
||||
|
||||
//==================================================
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
using Xunit;
|
||||
using FluentAssertions;
|
||||
|
||||
namespace raven_integration
|
||||
{
|
||||
public class GlobalAll
|
||||
{
|
||||
/// <summary>
|
||||
/// Test Global routes
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task GlobalOps()
|
||||
{
|
||||
//excercise the fetch and update routes but no actual changes because making a change of any kind to global will likely break other tests
|
||||
//and we just need to see the routes are active really
|
||||
|
||||
ApiResponse a = await Util.GetAsync("global-biz-setting", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
a.ObjectResponse["data"]["searchCaseSensitiveOnly"].Should().NotBeNull();
|
||||
|
||||
var g = a.ObjectResponse["data"];
|
||||
a = await Util.PutAsync("global-biz-setting", await Util.GetTokenAsync("BizAdminFull"), g.ToString(Newtonsoft.Json.Formatting.None));
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
}
|
||||
|
||||
//==================================================
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
|
||||
Reference in New Issue
Block a user