mirror of https://gitee.com/bigwinds/arangodb
fix handling of VST urls in test (#10240)
This commit is contained in:
parent
7a40fcef89
commit
9fdc3ece20
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue