Mercurial > hg > orthanc
changeset 4992:d05626038846
fix unit tests (new metadata)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Sun, 01 May 2022 12:45:27 +0200 |
parents | 3cdda1cec537 |
children | 8feb00fea93d |
files | OrthancServer/UnitTestsSources/ServerIndexTests.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/UnitTestsSources/ServerIndexTests.cpp Sun May 01 12:38:52 2022 +0200 +++ b/OrthancServer/UnitTestsSources/ServerIndexTests.cpp Sun May 01 12:45:27 2022 +0200 @@ -740,15 +740,16 @@ ASSERT_EQ(StoreStatus_Success, index.Store( instanceMetadata, summary, attachments, toStore->GetMetadata(), toStore->GetOrigin(), false /* don't overwrite */, - hasTransferSyntax, transferSyntax, true /* pixel data offset */, 42)); + hasTransferSyntax, transferSyntax, true /* pixel data offset */, 42, false)); } - ASSERT_EQ(6u, instanceMetadata.size()); + ASSERT_EQ(7u, instanceMetadata.size()); ASSERT_TRUE(instanceMetadata.find(MetadataType_RemoteAet) != instanceMetadata.end()); ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end()); ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_TransferSyntax) != instanceMetadata.end()); ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_SopClassUid) != instanceMetadata.end()); ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_PixelDataOffset) != instanceMetadata.end()); + ASSERT_TRUE(instanceMetadata.find(MetadataType_MainDicomTagsSignature) != instanceMetadata.end()); ASSERT_EQ("42", instanceMetadata[MetadataType_Instance_PixelDataOffset]);