Skip to content
Snippets Groups Projects
Commit 825c59c2 authored by felmer's avatar felmer
Browse files

SSDM-4824: fixing (un)archiving DSS system tests

SVN: 37806
parent 875720af
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ import org.testng.annotations.Test; ...@@ -23,7 +23,6 @@ import org.testng.annotations.Test;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.ArchivingStatus; import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.ArchivingStatus;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.archive.DataSetArchiveOptions; import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.archive.DataSetArchiveOptions;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.id.DataSetPermId; import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.id.DataSetPermId;
import ch.systemsx.cisd.common.exceptions.AuthorizationFailureException;
import ch.systemsx.cisd.common.exceptions.UserFailureException; import ch.systemsx.cisd.common.exceptions.UserFailureException;
/** /**
...@@ -42,7 +41,7 @@ public class ArchiveDataSetTest extends AbstractArchiveUnarchiveDataSetTest ...@@ -42,7 +41,7 @@ public class ArchiveDataSetTest extends AbstractArchiveUnarchiveDataSetTest
v3.archiveDataSets(sessionToken, Arrays.asList(dataSetId), options); v3.archiveDataSets(sessionToken, Arrays.asList(dataSetId), options);
} }
@Test(expectedExceptions = AuthorizationFailureException.class, expectedExceptionsMessageRegExp = ".*User 'test_space' does not have enough privileges.*") @Test(expectedExceptions = UserFailureException.class, expectedExceptionsMessageRegExp = ".*test_space does not have enough privileges.*")
public void testArchiveWithUnauthorizedDataSet() throws Exception public void testArchiveWithUnauthorizedDataSet() throws Exception
{ {
registerDataSet(); registerDataSet();
......
...@@ -43,7 +43,7 @@ public class UnarchiveDataSetTest extends AbstractArchiveUnarchiveDataSetTest ...@@ -43,7 +43,7 @@ public class UnarchiveDataSetTest extends AbstractArchiveUnarchiveDataSetTest
v3.unarchiveDataSets(sessionToken, Arrays.asList(dataSetId), options); v3.unarchiveDataSets(sessionToken, Arrays.asList(dataSetId), options);
} }
@Test(expectedExceptions = AuthorizationFailureException.class, expectedExceptionsMessageRegExp = ".*User 'test_space' does not have enough privileges.*") @Test(expectedExceptions = UserFailureException.class, expectedExceptionsMessageRegExp = ".*test_space does not have enough privileges.*")
public void testUnarchiveWithUnauthorizedDataSet() throws Exception public void testUnarchiveWithUnauthorizedDataSet() throws Exception
{ {
registerDataSet(); registerDataSet();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment