Search in sources :

Example 6 with FunctionAuthoriser

use of uk.gov.gchq.gaffer.graph.hook.FunctionAuthoriser in project Gaffer by gchq.

the class MapStorePropertiesGraphSerialisableTest method setUp.

@BeforeEach
public void setUp() throws Exception {
    config = new GraphConfig.Builder().graphId("testGraphId").addHook(new NamedViewResolver()).addHook(new FunctionAuthoriser(FunctionAuthoriserUtil.DEFAULT_UNAUTHORISED_FUNCTIONS)).view(new View.Builder().entity("e1").build()).build();
    schema = new Schema.Builder().entity("e1", new SchemaEntityDefinition.Builder().vertex("string").build()).type("string", String.class).build();
    final MapStoreProperties storeProperties = new MapStoreProperties();
    storeProperties.setStorePropertiesClass(MapStoreProperties.class);
    properties = storeProperties.getProperties();
    expected = getGraphSerialisable();
}
Also used : NamedViewResolver(uk.gov.gchq.gaffer.graph.hook.NamedViewResolver) View(uk.gov.gchq.gaffer.data.elementdefinition.view.View) FunctionAuthoriser(uk.gov.gchq.gaffer.graph.hook.FunctionAuthoriser) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

FunctionAuthoriser (uk.gov.gchq.gaffer.graph.hook.FunctionAuthoriser)6 StoreProperties (uk.gov.gchq.gaffer.store.StoreProperties)5 Test (org.junit.jupiter.api.Test)4 NamedViewResolver (uk.gov.gchq.gaffer.graph.hook.NamedViewResolver)4 TestStore (uk.gov.gchq.gaffer.integration.store.TestStore)4 Store (uk.gov.gchq.gaffer.store.Store)4 IOException (java.io.IOException)2 URISyntaxException (java.net.URISyntaxException)2 Assertions.assertThatIllegalArgumentException (org.assertj.core.api.Assertions.assertThatIllegalArgumentException)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 SchemaException (uk.gov.gchq.gaffer.data.elementdefinition.exception.SchemaException)2 View (uk.gov.gchq.gaffer.data.elementdefinition.view.View)2 NamedOperationResolver (uk.gov.gchq.gaffer.graph.hook.NamedOperationResolver)2 OperationException (uk.gov.gchq.gaffer.operation.OperationException)2 Schema (uk.gov.gchq.gaffer.store.schema.Schema)2 Builder (uk.gov.gchq.gaffer.graph.GraphSerialisable.Builder)1 Identity (uk.gov.gchq.koryphe.impl.function.Identity)1