Class WebACRecipesIT
java.lang.Object
org.fcrepo.integration.http.api.AbstractResourceIT
org.fcrepo.integration.auth.webac.WebACRecipesIT
@TestExecutionListeners(listeners=org.fcrepo.integration.http.api.TestIsolationExecutionListener.class,
mergeMode=MERGE_WITH_DEFAULTS)
public class WebACRecipesIT
extends org.fcrepo.integration.http.api.AbstractResourceIT
- Since:
- September 4, 2015
- Author:
- Peter Eichman, whikloj
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.junit.contrib.java.lang.system.RestoreSystemPropertiesFields inherited from class org.fcrepo.integration.http.api.AbstractResourceIT
authPropsConfig, BASIC_CONTAINER_LINK_HEADER, client, containerWrapper, DCTITLE, DIRECT_CONTAINER_LINK_HEADER, NON_RDF_SOURCE_LINK_HEADER, propsConfig, serverAddress -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidTest cases to verify authorization with only acl:Append mode configured in the acl authorization of an resource.voidTest cases to verify authorization with acl:Read and acl:Append modes configured in the acl authorization of an resource.voidTest cases to verify authorization with acl:Read, acl:Append and acl:Write modes configured in the acl authorization of an resource.voidvoidvoidvoidvoidvoidvoidvoidsetup()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.fcrepo.integration.http.api.AbstractResourceIT
addTxTo, assertConstrainedByPresent, assertDeleted, assertNoLinkHeader, assertNotDeleted, assertNotFound, checkForLinkHeader, confirmResponseBodyNTriplesAreEqual, createClient, createClient, createDatastream, createDatastream, createObject, createObject, createObjectAndClose, createObjectAndClose, createObjectWithLinkHeader, createTransaction, decodeDigestHeader, deleteObjMethod, execute, executeAndClose, executeWithBasicAuth, getBean, getBean, getContentLocation, getContentType, getContentType, getDataset, getDataset, getDSDescMethod, getDSMethod, getDSMethod, getEtag, getEtag, getEtag, getExternalContentLinkHeader, getHeader, getLinkHeaders, getLinkHeaders, getLocation, getLocation, getModel, getModel, getModel, getModel, getObjMethod, getOriginalResourceUri, getRandomUniqueId, getStatus, getStatus, getTTLThatUpdatesServerManagedTriples, headerValues, headObjMethod, patchObjMethod, postObjMethod, postObjMethod, preferLink, putDSMethod, putDSMethod, putObjMethod, putObjMethod, restartContainer, setDescriptionProperty, setLogger, setProperty, setProperty, streamModel
-
Field Details
-
restoreSystemProperties
-
-
Constructor Details
-
WebACRecipesIT
public WebACRecipesIT()
-
-
Method Details
-
setup
-
txScenarioCommit
- Throws:
IOException
-
txScenarioRollback
- Throws:
Exception
-
txScenarioUnauthenticated
- Throws:
Exception
-
invalidResourceIdentifier
- Throws:
IOException
-
invalidMementoPath
- Throws:
IOException
-
scenario1
- Throws:
IOException
-
scenario2
- Throws:
IOException
-
scenario3
- Throws:
IOException
-
scenario4
- Throws:
IOException
-
scenario5
- Throws:
IOException
-
scenario9
- Throws:
IOException
-
scenario18Test1
Test cases to verify authorization with only acl:Append mode configured in the acl authorization of an resource. Tests: 1. Deny(403) on GET. 2. Allow(204) on PATCH. 3. Deny(403) on DELETE. 4. Deny(403) on PATCH with SPARQL DELETE statements. 5. Allow(400) on PATCH with empty SPARQL content. 6. Deny(403) on PATCH with non-SPARQL content.- Throws:
IOException- thrown from ingestObj() or *ObjMethod() calls
-
scenario18Test2
Test cases to verify authorization with acl:Read and acl:Append modes configured in the acl authorization of an resource. Tests: 1. Allow(200) on GET. 2. Allow(204) on PATCH. 3. Deny(403) on DELETE.- Throws:
IOException- thrown from called functions within this function
-
scenario18Test3
Test cases to verify authorization with acl:Read, acl:Append and acl:Write modes configured in the acl authorization of an resource. Tests: 1. Allow(200) on GET. 2. Allow(204) on PATCH. 3. Allow(204) on DELETE.- Throws:
IOException- from functions called from this function
-
testAccessToRoot
- Throws:
IOException
-
scenario21TestACLNotForInheritance
- Throws:
IOException
-
scenario22TestACLAuthorizationNotForInheritance
- Throws:
IOException
-
testAccessToBinary
- Throws:
IOException
-
testAccessToVersionedResources
- Throws:
IOException
-
testDelegatedUserAccess
- Throws:
IOException
-
testAccessByUriToVersionedResources
- Throws:
IOException
-
testAgentAsUri
- Throws:
IOException
-
testRegisterNamespace
- Throws:
IOException
-
testRegisterNodeType
- Throws:
IOException
-
testDeletePropertyAsUser
- Throws:
IOException
-
testHeadWithReadOnlyUser
- Throws:
IOException
-
testOptionsWithReadOnlyUser
- Throws:
IOException
-
testControl
- Throws:
IOException
-
testAppendOnlyToContainer
- Throws:
IOException
-
testAppendOnlyToBinary
- Throws:
IOException
-
testFoafAgent
- Throws:
IOException
-
testAuthenticatedAgent
- Throws:
IOException
-
testAgentGroupWithHashUris
- Throws:
Exception
-
testAgentGroupWithMembersAsURIs
- Throws:
Exception
-
testAgentGroup
- Throws:
Exception
-
testAclAppendPermissions
- Throws:
Exception
-
testCreateAclWithAccessToClassForBinary
- Throws:
Exception
-
testIndirectRelationshipForbidden
- Throws:
IOException
-
testIndirectRelationshipOK
- Throws:
IOException
-
testDirectRelationshipForbidden
- Throws:
IOException
-
testDirectRelationshipsOk
- Throws:
IOException
-
testSameInTransaction
- Throws:
Exception
-
testBinaryAndDescriptionAllowed
- Throws:
Exception
-
testRequestWithEmptyPath
- Throws:
Exception
-
testGetWithEmbeddedResourcesOk
- Throws:
Exception
-
testGetWithEmbeddedResourceDenied
- Throws:
Exception
-
testDeepDeleteAllowed
- Throws:
Exception
-
testDeepDeleteFailed
- Throws:
Exception
-
testTransactionExceptions
- Throws:
Exception
-
testAlterAclWithPatch
- Throws:
IOException
-
testAlterAclWithPut
- Throws:
IOException
-
testDeleteTombstone
- Throws:
IOException
-