changeset 99:a52e634e4372

unit tests
author Alain Mazy <am@osimis.io>
date Mon, 22 May 2023 09:09:52 +0200
parents c82f0c7d2c6a
children 760fd9ad7007
files UnitTestsSources/UnitTestsMain.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp	Mon May 22 09:06:34 2023 +0200
+++ b/UnitTestsSources/UnitTestsMain.cpp	Mon May 22 09:09:52 2023 +0200
@@ -135,6 +135,13 @@
   ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Patient, patientOrthancId));
 
   accesses.clear();
+  parser.Parse(accesses, "/instances/44444444-44444444-44444444-44444444-44444444/preview", noGetArguments.GetMap());
+  ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Instance, instanceOrthancId));
+  ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Series, seriesOrthancId));
+  ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Study, studyOrthancId));
+  ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Patient, patientOrthancId));
+
+  accesses.clear();
   parser.Parse(accesses, "/web-viewer/instances/jpeg95-44444444-44444444-44444444-44444444-44444444_0", noGetArguments.GetMap());
   ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Instance, instanceOrthancId));
   ASSERT_TRUE(IsAccessing(accesses, AccessLevel_Series, seriesOrthancId));