30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
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
|