Check for baseline manifest as well

This commit is contained in:
Forgind 2023-08-10 09:19:55 -07:00
parent e0acb5805e
commit d78a0b7912

View file

@ -31,7 +31,12 @@ namespace EndToEnd.Tests
string manifestFile = manifestDir.GetFile("WorkloadManifest.json").FullName;
File.Exists(manifestFile).Should().BeTrue();
var baselineFile = manifestDir.GetFile("Baseline.WorkloadSet.json").FullName;
if (!(new FileInfo(baselineFile).Exists))
{
new FileInfo(manifestFile).Exists.Should().BeTrue();
}
using var fileStream = new FileStream(manifestFile, FileMode.Open, FileAccess.Read);
Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream, manifestFile);
readManifest.ShouldNotThrow("manifestId:" + manifestId + " manifestFile:" + manifestFile + "is invalid");