using System; using Xunit; using Newtonsoft.Json.Linq; using FluentAssertions; using System.Collections.Generic; using System.Collections.Concurrent; namespace raven_integration { public class LogFiles { /// /// /// [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|","|FATAL|", "|WARN|"};//assumes any log will have at least one of these items in it t.TextResponse.Should().ContainAny(ExpectedLogItems); } //================================================== }//eoc }//eons