The implementation of a test api that helps testing task manager api. It provides methods to simulate the operations that can happen on modules and theirs task. Through the api user can: register and unregister the test module and the tasks belonging to the module, and finish the tasks with success or custom error.
23 lines
296 B
C++
23 lines
296 B
C++
/*
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef SCYLLA_BUILD_MODE_RELEASE
|
|
|
|
#pragma once
|
|
|
|
#include "api.hh"
|
|
#include "db/config.hh"
|
|
|
|
namespace api {
|
|
|
|
void set_task_manager_test(http_context& ctx, routes& r, db::config& cfg);
|
|
|
|
}
|
|
|
|
#endif
|