Files
raven-test-integration/LogFiles/LogFiles.cs
2018-12-18 16:33:35 +00:00

33 lines
858 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);
string[] ExpectedLogItems = {"|INFO|","|ERROR|", "|WARN|"};//assumes any log will have at least one of these items in it
t.TextResponse.Should().ContainAny(ExpectedLogItems);
}
//==================================================
}//eoc
}//eons