Check for baseline manifest as well
This commit is contained in:
parent
e0acb5805e
commit
d78a0b7912
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue