# HG changeset patch # User Alain Mazy # Date 1684739392 -7200 # Node ID a52e634e4372999596f26d5845d637d03e9d2065 # Parent c82f0c7d2c6a46a0709be399a474cfa2acb5e441 unit tests diff -r c82f0c7d2c6a -r a52e634e4372 UnitTestsSources/UnitTestsMain.cpp --- 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));