@@ -90,15 +90,6 @@ function shellReplication (options) {
9090// //////////////////////////////////////////////////////////////////////////////
9191
9292function shellClientReplicationApi ( options ) {
93- if ( options . skipServerJS ) {
94- return {
95- shellClientReplicationApi : {
96- status : true ,
97- message : 'server javascript not enabled. please recompile with -DUSE_V8=on'
98- } ,
99- status : true
100- } ;
101- }
10293 let testCases = tu . scanTestPaths ( testPaths . http_replication , options ) ;
10394
10495 var opts = {
@@ -171,15 +162,6 @@ class replicationRunner extends trs.runLocalInArangoshRunner {
171162// //////////////////////////////////////////////////////////////////////////////
172163
173164function replicationFuzz ( options ) {
174- if ( options . skipServerJS ) {
175- return {
176- replicationFuzz : {
177- status : true ,
178- message : 'server javascript not enabled. please recompile with -DUSE_V8=on'
179- } ,
180- status : true
181- } ;
182- }
183165 let testCases = tu . scanTestPaths ( testPaths . replication_fuzz , options ) ;
184166 return new replicationRunner ( options , 'replication_fuzz' , { "rocksdb.wal-file-timeout-initial" : "7200" } ) . run ( testCases ) ;
185167}
@@ -189,15 +171,6 @@ function replicationFuzz (options) {
189171// //////////////////////////////////////////////////////////////////////////////
190172
191173function replicationRandom ( options ) {
192- if ( options . skipServerJS ) {
193- return {
194- replicationRandom : {
195- status : true ,
196- message : 'server javascript not enabled. please recompile with -DUSE_V8=on'
197- } ,
198- status : true
199- } ;
200- }
201174 let testCases = tu . scanTestPaths ( testPaths . replication_random , options ) ;
202175 return new replicationRunner ( options , 'replication_random' ) . run ( testCases ) ;
203176}
@@ -217,15 +190,6 @@ function replicationAql (options) {
217190
218191var _replicationOngoing = function ( path ) {
219192 this . func = function replicationOngoing ( options ) {
220- if ( options . skipServerJS ) {
221- return {
222- shell_replication_ongoing : {
223- status : true ,
224- message : 'server javascript not enabled. please recompile with -DUSE_V8=on'
225- } ,
226- status : true
227- } ;
228- }
229193 let testCases = tu . scanTestPaths ( testPaths [ path ] , options ) ;
230194 return new replicationRunner ( options , path ) . run ( testCases ) ;
231195 } ;
@@ -241,40 +205,24 @@ const replicationOngoingFrompresent = (new _replicationOngoing('replication_ongo
241205// //////////////////////////////////////////////////////////////////////////////
242206
243207function replicationStatic ( options ) {
244- if ( options . skipServerJS ) {
245- return {
246- replicationStatic : {
247- status : true ,
248- message : 'server javascript not enabled. please recompile with -DUSE_V8=on'
249- } ,
250- status : true
251- } ;
252- }
253208 let testCases = tu . scanTestPaths ( testPaths . replication_static , options ) ;
254209 testCases = tu . splitBuckets ( options , testCases ) ;
255-
256- return new replicationRunner (
257- options ,
210+ let localOptions = Object . assign ( { extraArgs : { 'vector-index' : true } } , options , tu . testServerAuthInfo ) ;
211+ let ret = new replicationRunner (
212+ localOptions ,
258213 'leader_static' ,
259214 {
260215 'server.authentication' : 'true'
261216 } , true ) . run ( testCases ) ;
217+ options . cleanup = options . cleanup && localOptions . cleanup ;
218+ return ret ;
262219}
263220
264221// //////////////////////////////////////////////////////////////////////////////
265222// / @brief TEST: replication_sync
266223// //////////////////////////////////////////////////////////////////////////////
267224
268225function replicationSync ( options ) {
269- if ( options . skipServerJS ) {
270- return {
271- replicationSync : {
272- status : true ,
273- message : 'server javascript not enabled. please recompile with -DUSE_V8=on'
274- } ,
275- status : true
276- } ;
277- }
278226 let testCases = tu . scanTestPaths ( testPaths . replication_sync , options ) ;
279227 testCases = tu . splitBuckets ( options , testCases ) ;
280228
0 commit comments