File tree Expand file tree Collapse file tree
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,16 +119,13 @@ public Settings overrideSettings(final Settings settings) {
119119 settings .channelizer = HttpChannelizer .class .getName ();
120120 break ;
121121 case "shouldAliasTraversalSourceVariables" :
122- try {
123- final String p = Storage .toPath (TestHelper .generateTempFileFromResource (
124- GremlinDriverIntegrateTest .class ,
125- "generate-shouldRebindTraversalSourceVariables.groovy" , "" ));
126- final Map <String ,Object > m = new HashMap <>();
127- m .put ("files" , Collections .singletonList (p ));
128- settings .scriptEngines .get ("gremlin-groovy" ).plugins .put (ScriptFileGremlinPlugin .class .getName (), m );
129- } catch (Exception ex ) {
130- throw new RuntimeException (ex );
131- }
122+ final Settings .TraversalSourceSettings readOnlyG = new Settings .TraversalSourceSettings ();
123+ readOnlyG .graph = "graph" ;
124+ readOnlyG .query = "g.withStrategies(ReadOnlyStrategy)" ;
125+ settings .traversalSources .put ("g" , readOnlyG );
126+ final Settings .TraversalSourceSettings writableG1 = new Settings .TraversalSourceSettings ();
127+ writableG1 .graph = "graph" ;
128+ settings .traversalSources .put ("g1" , writableG1 );
132129 break ;
133130 case "shouldFailWithBadClientSideSerialization" :
134131 // add custom gryo config for Color
You can’t perform that action at this time.
0 commit comments