This commit is contained in:
2018-12-18 16:33:35 +00:00
parent 077ee889eb
commit 27b77c5273
36 changed files with 10640 additions and 0 deletions

32
LogFiles/LogFiles.cs Normal file
View File

@@ -0,0 +1,32 @@
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