Mercurial > hg > orthanc-authorization
diff UnitTestsSources/UnitTestsMain.cpp @ 110:aa56dcf599b9
fix unit tests
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 22 Aug 2023 17:50:01 +0200 |
parents | 4c659d5cac9b |
children | 2b1a95c7d263 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Fri Aug 18 12:08:49 2023 +0200 +++ b/UnitTestsSources/UnitTestsMain.cpp Tue Aug 22 17:50:01 2023 +0200 @@ -74,6 +74,11 @@ cache->AddParentLink(Orthanc::ResourceType_Series, seriesOrthancId, studyOrthancId); cache->AddParentLink(Orthanc::ResourceType_Study, studyOrthancId, patientOrthancId); + cache->AddLabels(Orthanc::ResourceType_Series, seriesOrthancId, "series-label"); + cache->AddLabels(Orthanc::ResourceType_Study, studyOrthancId, "study-label"); + cache->AddLabels(Orthanc::ResourceType_Instance, instanceOrthancId, "instance-label"); + cache->AddLabels(Orthanc::ResourceType_Patient, patientOrthancId, "patient-label"); + IAuthorizationParser::AccessedResources accesses; AssociativeArray noGetArguments(0, NULL, NULL, false);