1
0
Fork 0

Don't use aardvark in foxx-manager.

This commit is contained in:
Alan Plum 2015-05-06 16:54:50 +02:00
parent d0b1136bb5
commit c682bf9923
2 changed files with 24 additions and 8 deletions

View File

@ -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
// -----------------------------------------------------------------------------

View 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;
};