From 3601525a9e643076bff589ddd15f83d276b4ea10 Mon Sep 17 00:00:00 2001 From: pkupczyk <pkupczyk> Date: Sun, 17 Dec 2017 20:00:55 +0000 Subject: [PATCH] SSDM-6019 : Project Authorization - modify @RolesAllowed annotations at non-entity related methods - fix openbis tests SVN: 39048 --- .../server/ServiceForDataStoreServerTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ServiceForDataStoreServerTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ServiceForDataStoreServerTest.java index 68909be495c..fa02730c510 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ServiceForDataStoreServerTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ServiceForDataStoreServerTest.java @@ -117,11 +117,22 @@ public class ServiceForDataStoreServerTest extends SystemTestCase etlService.updatePhysicalDataSetsSize(sessionToken, sizeMap); + int unknownSizeCount = 0; + List<SimpleDataSetInformationDTO> physicalDataSets = etlService.listPhysicalDataSets(sessionToken, "STANDARD"); + + for (SimpleDataSetInformationDTO physicalDataSet : physicalDataSets) + { + if (physicalDataSet.getDataSetSize() == null) + { + unknownSizeCount++; + } + } + List<SimpleDataSetInformationDTO> dataSetsWithUnknownSize = etlService.listPhysicalDataSetsWithUnknownSize(sessionToken, "STANDARD", 100, null); List<AbstractExternalData> updatedDataSets = etlService.listDataSetsByCode(sessionToken, Arrays.asList("20081105092159188-3")); - Assert.assertEquals(23, dataSetsWithUnknownSize.size()); + Assert.assertEquals(unknownSizeCount, dataSetsWithUnknownSize.size()); Assert.assertEquals("20081105092159222-2", dataSetsWithUnknownSize.get(0).getDataSetCode()); Assert.assertEquals("VALIDATIONS_PARENT-28", dataSetsWithUnknownSize.get(dataSetsWithUnknownSize.size() - 1).getDataSetCode()); -- GitLab