awsS3 getObject expect specific error message

Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
This commit is contained in:
Manuel Stein
2022-07-24 19:12:39 +03:00
parent 6c118dd093
commit f28ad77d11
@@ -478,7 +478,7 @@ describe('AwsS3Publish', () => {
await expect(fails).rejects.toMatchObject({
message: expect.stringMatching(
/TechDocs metadata fetch failed; caused by Error: .*/i,
/TechDocs metadata fetch failed; caused by Error: Unable to read stream; caused by Error: The file invalid\/triplet\/path\/techdocs_metadata.json does not exist/i,
),
});
});