1
0
Fork 0

fix handling of VST urls in test (#10240)

This commit is contained in:
Wilfried Goesgens 2019-10-14 11:11:22 +02:00 committed by Jan
parent 7a40fcef89
commit 9fdc3ece20
2 changed files with 4 additions and 4 deletions

View File

@ -44,11 +44,11 @@ function DownloadSuite () {
var tempName;
var buildUrl = function (append) {
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:') + "/_admin/echo" + append;
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:').replace(/^vst:/, 'http:') + "/_admin/echo" + append;
};
var buildUrlBroken = function (append) {
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:') + "/_not-there" + append;
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:').replace(/^vst:/, 'http:') + "/_not-there" + append;
};
return {

View File

@ -45,11 +45,11 @@ function RequestSuite () {
var buildUrl = function (append, base) {
base = base === false ? '' : '/_admin/echo';
append = append || '';
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:') + base + append;
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:').replace(/^vst:/, 'http:') + base + append;
};
var buildUrlBroken = function (append) {
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:') + '/_not-there' + append;
return arango.getEndpoint().replace(/^tcp:/, 'http:').replace(/^ssl:/, 'https:').replace(/^vst:/, 'http:') + '/_not-there' + append;
};
return {