mirror of https://gitee.com/bigwinds/arangodb
Don't use aardvark in foxx-manager.
This commit is contained in:
parent
d0b1136bb5
commit
c682bf9923
|
@ -211,6 +211,24 @@ actions.defineHttp({
|
|||
})
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Run tests for an app
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
actions.defineHttp({
|
||||
url : "_admin/foxx/tests",
|
||||
prefix : false,
|
||||
|
||||
callback: easyPostCallback({
|
||||
body: true,
|
||||
callback: function (body) {
|
||||
var mount = body.mount;
|
||||
var options = body.options;
|
||||
return foxxManager.runTests(mount, options)
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -503,12 +503,6 @@
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief run a Foxx application's tests
|
||||
///
|
||||
/// Input:
|
||||
/// * mount: the mount path starting with a "/"
|
||||
///
|
||||
/// Output:
|
||||
/// -
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var runTests = function (mount, options) {
|
||||
|
@ -517,8 +511,12 @@
|
|||
[ [ "Mount path", "string" ] ],
|
||||
[ mount ]
|
||||
);
|
||||
|
||||
var res = arango.POST("/_admin/aardvark/foxxes/tests?mount=" + encodeURIComponent(mount), JSON.stringify(options));
|
||||
utils.validateMount(mount);
|
||||
var req = {
|
||||
mount: mount,
|
||||
options: options
|
||||
}
|
||||
var res = arango.POST("/_admin/foxx/tests", JSON.stringify(req));
|
||||
arangosh.checkRequestResult(res);
|
||||
return res;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue