Class SecurityServiceTest
java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.core.util.test.BaseIntegrationTest5
ubic.gemma.core.util.test.BaseSpringContextTest5
ubic.gemma.core.security.authorization.SecurityServiceTest
Tests the SecurityService: making objects public or private and testing the permissions.
- Author:
- keshav
-
Field Summary
Fields inherited from class BaseSpringContextTest5
arrayDesignPersister, externalDatabaseService, log, persisterHelper, taxonService, testHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe date a dataset FIRST became public has to come from somewhere, and until now nothing recorded it: only two REST endpoints emittedMakePublicEvent, so anything made public by the CLI or a bulk job left no trace.voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class BaseSpringContextTest5
addTestAnalyses, countRowsInTable, deleteFromTables, getJdbcTemplate, getNewTestPersistentCompleteExpressionExperiment, getTaxon, getTestNonPersistentBioSequence, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentBasicExpressionExperiment, getTestPersistentBasicExpressionExperiment, getTestPersistentBibliographicReference, getTestPersistentBioAssay, getTestPersistentBioAssay, getTestPersistentBioMaterial, getTestPersistentBioMaterial, getTestPersistentBioSequence, getTestPersistentBioSequence, getTestPersistentBioSequence2GeneProducts, getTestPersistentBlatResult, getTestPersistentBlatResult, getTestPersistentCompleteExpressionExperiment, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentContact, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentExpressionExperiment, getTestPersistentExpressionExperiment, getTestPersistentGene, getTestPersistentGene, getTestPersistentGeneProduct, getTestPersistentQuantitationType, randomName, resetTestCollectionSize, runAsAdmin, runAsAgent, runAsAnonymous, runAsUser, runAsUser, setTestCollectionSizeMethods inherited from class BaseIntegrationTest5
setUpAuthentication, tearDownSecurityContext
-
Constructor Details
-
SecurityServiceTest
public SecurityServiceTest()
-
-
Method Details
-
setUp
-
testDuplicateAcesNotAddedOnPrivateExpressionExperiment
@Test public void testDuplicateAcesNotAddedOnPrivateExpressionExperiment() -
testMakeEEGroupReadWrite
@Test public void testMakeEEGroupReadWrite() -
testMakeExpressionExperimentPrivate
@Test public void testMakeExpressionExperimentPrivate() -
testMakePrivateWithoutPermission
@Test public void testMakePrivateWithoutPermission() -
testRemoveMultipleAcesFromPrivateExpressionExperiment
@Test public void testRemoveMultipleAcesFromPrivateExpressionExperiment() -
testSetOwner
@Test public void testSetOwner() -
testSetPrincipalSID
@Test public void testSetPrincipalSID() -
testUserCanEdit
@Test public void testUserCanEdit() -
testUserCanRead
@Test public void testUserCanRead() -
makePublicRecordsTheTransitionOnceAndNotAgain
@Test public void makePublicRecordsTheTransitionOnceAndNotAgain()The date a dataset FIRST became public has to come from somewhere, and until now nothing recorded it: only two REST endpoints emittedMakePublicEvent, so anything made public by the CLI or a bulk job left no trace. Production carried 0 occurrences across a 200-dataset sample.Emitting from
SecurityServiceImpl.makePubliccovers every path. This pins the two properties that make "first" answerable: the event is written on the transition, and a repeat call — which returns early because the object is already public — writes nothing. Without the second property the earliest event would still be right, but the trail would gain a row per redundant call.
-