1
0
Fork 0

increase test timeouts

This commit is contained in:
jsteemann 2019-01-11 14:21:02 +01:00
parent 457e14b970
commit 79257310c0
2 changed files with 22 additions and 11 deletions

View File

@ -88,7 +88,8 @@ function getClusterEndpoints() {
url: baseUrl() + "/_api/cluster/endpoints",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
@ -105,7 +106,8 @@ function getLoggerState(endpoint) {
url: getUrl(endpoint) + "/_db/_system/_api/replication/logger-state",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'));
@ -119,7 +121,8 @@ function getApplierState(endpoint) {
url: getUrl(endpoint) + "/_db/_system/_api/replication/applier-state?global=true",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'));
@ -162,7 +165,8 @@ function checkData(server) {
url: getUrl(server) + "/_api/collection/" + cname + "/count",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
@ -180,7 +184,8 @@ function readAgencyValue(path) {
auth: {
bearer: jwtSuperuser,
},
body: JSON.stringify([[path]])
body: JSON.stringify([[path]]),
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));

View File

@ -90,7 +90,8 @@ function getClusterEndpoints() {
url: baseUrl() + "/_api/cluster/endpoints",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
@ -107,7 +108,8 @@ function getLoggerState(endpoint) {
url: getUrl(endpoint) + "/_db/_system/_api/replication/logger-state",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'));
@ -121,7 +123,8 @@ function getApplierState(endpoint) {
url: getUrl(endpoint) + "/_db/_system/_api/replication/applier-state?global=true",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'));
@ -164,7 +167,8 @@ function checkData(server) {
url: getUrl(server) + "/_api/collection/" + cname + "/count",
auth: {
bearer: jwtRoot,
}
},
timeout: 120
});
assertTrue(res instanceof request.Response);
@ -182,7 +186,8 @@ function readAgencyValue(path) {
auth: {
bearer: jwtSuperuser,
},
body: JSON.stringify([[path]])
body: JSON.stringify([[path]]),
timeout: 120
});
assertTrue(res instanceof request.Response);
assertTrue(res.hasOwnProperty('statusCode'), JSON.stringify(res));
@ -253,7 +258,8 @@ function setReadOnly(endpoint, ro) {
bearer: jwtRoot,
},
body: {"mode" : str},
json: true
json: true,
timeout: 120
});
print(JSON.stringify(res));