mirror of https://gitee.com/bigwinds/arangodb
increase test timeouts
This commit is contained in:
parent
457e14b970
commit
79257310c0
|
@ -88,7 +88,8 @@ function getClusterEndpoints() {
|
||||||
url: baseUrl() + "/_api/cluster/endpoints",
|
url: baseUrl() + "/_api/cluster/endpoints",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
||||||
|
@ -105,7 +106,8 @@ function getLoggerState(endpoint) {
|
||||||
url: getUrl(endpoint) + "/_db/_system/_api/replication/logger-state",
|
url: getUrl(endpoint) + "/_db/_system/_api/replication/logger-state",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'));
|
assertTrue(res.hasOwnProperty('statusCode'));
|
||||||
|
@ -119,7 +121,8 @@ function getApplierState(endpoint) {
|
||||||
url: getUrl(endpoint) + "/_db/_system/_api/replication/applier-state?global=true",
|
url: getUrl(endpoint) + "/_db/_system/_api/replication/applier-state?global=true",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'));
|
assertTrue(res.hasOwnProperty('statusCode'));
|
||||||
|
@ -162,7 +165,8 @@ function checkData(server) {
|
||||||
url: getUrl(server) + "/_api/collection/" + cname + "/count",
|
url: getUrl(server) + "/_api/collection/" + cname + "/count",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
|
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
|
@ -180,7 +184,8 @@ function readAgencyValue(path) {
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtSuperuser,
|
bearer: jwtSuperuser,
|
||||||
},
|
},
|
||||||
body: JSON.stringify([[path]])
|
body: JSON.stringify([[path]]),
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
||||||
|
|
|
@ -90,7 +90,8 @@ function getClusterEndpoints() {
|
||||||
url: baseUrl() + "/_api/cluster/endpoints",
|
url: baseUrl() + "/_api/cluster/endpoints",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
||||||
|
@ -107,7 +108,8 @@ function getLoggerState(endpoint) {
|
||||||
url: getUrl(endpoint) + "/_db/_system/_api/replication/logger-state",
|
url: getUrl(endpoint) + "/_db/_system/_api/replication/logger-state",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'));
|
assertTrue(res.hasOwnProperty('statusCode'));
|
||||||
|
@ -121,7 +123,8 @@ function getApplierState(endpoint) {
|
||||||
url: getUrl(endpoint) + "/_db/_system/_api/replication/applier-state?global=true",
|
url: getUrl(endpoint) + "/_db/_system/_api/replication/applier-state?global=true",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'));
|
assertTrue(res.hasOwnProperty('statusCode'));
|
||||||
|
@ -164,7 +167,8 @@ function checkData(server) {
|
||||||
url: getUrl(server) + "/_api/collection/" + cname + "/count",
|
url: getUrl(server) + "/_api/collection/" + cname + "/count",
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
}
|
},
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
|
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
|
@ -182,7 +186,8 @@ function readAgencyValue(path) {
|
||||||
auth: {
|
auth: {
|
||||||
bearer: jwtSuperuser,
|
bearer: jwtSuperuser,
|
||||||
},
|
},
|
||||||
body: JSON.stringify([[path]])
|
body: JSON.stringify([[path]]),
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
assertTrue(res instanceof request.Response);
|
assertTrue(res instanceof request.Response);
|
||||||
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
|
||||||
|
@ -253,7 +258,8 @@ function setReadOnly(endpoint, ro) {
|
||||||
bearer: jwtRoot,
|
bearer: jwtRoot,
|
||||||
},
|
},
|
||||||
body: {"mode" : str},
|
body: {"mode" : str},
|
||||||
json: true
|
json: true,
|
||||||
|
timeout: 120
|
||||||
});
|
});
|
||||||
print(JSON.stringify(res));
|
print(JSON.stringify(res));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue