From e7ecf1bd61766c473f68492fa60c6c83fb81e110 Mon Sep 17 00:00:00 2001 From: GCHQDev404 Date: Thu, 21 Apr 2022 09:33:34 +0100 Subject: [PATCH] gh-2630 FederatedStore scripts added. --- .../curl_addGraphForBasicEdges.sh | 2 +- .../operation_addGraphAccumuloBasicEdges.json | 26 +++++++++++++++++++ ...n => operation_addGraphMapBasicEdges.json} | 0 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphAccumuloBasicEdges.json rename example/real-federated-store/have-a-go-at-operations/json-operation-examples/{operation_addGraphForBasicEdges.json => operation_addGraphMapBasicEdges.json} (100%) diff --git a/example/real-federated-store/have-a-go-at-operations/curl-operation-examples/curl_addGraphForBasicEdges.sh b/example/real-federated-store/have-a-go-at-operations/curl-operation-examples/curl_addGraphForBasicEdges.sh index 4d5f3181575..773cad2d80b 100755 --- a/example/real-federated-store/have-a-go-at-operations/curl-operation-examples/curl_addGraphForBasicEdges.sh +++ b/example/real-federated-store/have-a-go-at-operations/curl-operation-examples/curl_addGraphForBasicEdges.sh @@ -1 +1 @@ -curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d @../json-operation-examples/operation_addGraphForBasicEdges.json 'http://localhost:8080/rest/graph/operations/execute' +curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d @../json-operation-examples/operation_addGraphMapBasicEdges.json 'http://localhost:8080/rest/graph/operations/execute' diff --git a/example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphAccumuloBasicEdges.json b/example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphAccumuloBasicEdges.json new file mode 100755 index 00000000000..7620eeae4bf --- /dev/null +++ b/example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphAccumuloBasicEdges.json @@ -0,0 +1,26 @@ +{ + "class" : "uk.gov.gchq.gaffer.federatedstore.operation.AddGraph", + "graphId" : "ToAccumulo", + "isPublic" : true, + "schema" : { + "edges" : { + "simple" : { + "source" : "String", + "destination" : "String" + } + }, + "types" : { + "String" : { + "class" : "java.lang.String" + } + } + }, + "storeProperties" : { + "gaffer.store.class" : "uk.gov.gchq.gaffer.accumulostore.AccumuloStore", + "accumulo.user" : "root", + "accumulo.instance" : "accumulo", + "gaffer.store.properties.class" : "uk.gov.gchq.gaffer.accumulostore.AccumuloProperties", + "accumulo.zookeepers" : "localhost:2181", + "accumulo.password" : "secret" + } +} diff --git a/example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphForBasicEdges.json b/example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphMapBasicEdges.json similarity index 100% rename from example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphForBasicEdges.json rename to example/real-federated-store/have-a-go-at-operations/json-operation-examples/operation_addGraphMapBasicEdges.json