Files
raven/test/raven-integration/LogFiles/LogFiles.cs
2018-06-28 23:41:48 +00:00

32 lines
773 B
C#

using System;
using Xunit;
using Newtonsoft.Json.Linq;
using FluentAssertions;
using System.Collections.Generic;
using System.Collections.Concurrent;
namespace raven_integration
{
public class LogFiles
{
/// <summary>
///
/// </summary>
[Fact]
public async void MostRecentLogShouldFetch()
{
ApiTextResponse t = await Util.GetTextResultAsync("LogFiles/log-ayanova.txt", await Util.GetTokenAsync("OpsAdminFull"));
Util.ValidateHTTPStatusCode(t, 200);
t.TextResponse.Should().Contain("|INFO|");//assumes any log will have at least one INFO log item in it
}
//==================================================
}//eoc
}//eons