Small fixes to test cases
This commit is contained in:
@@ -39,7 +39,7 @@ TEST_CASE("rest_endpoint", "[server_basic]")
|
||||
SECTION("Task Missing Cores should Fail")
|
||||
{
|
||||
std::string taskSpec =
|
||||
R"({ "job": { "command": [ "/usr/bin/touch", "dagrun_{{FILE}}" ]}, "memoryMB": 100 })";
|
||||
R"({ "job": { "command": [ "/bin/touch", "dagrun_{{FILE}}" ]}, "memoryMB": 100 })";
|
||||
|
||||
auto response =
|
||||
HTTP_REQUEST(baseURL + "/v1/task/0/sample_task", taskSpec, "POST");
|
||||
@@ -49,7 +49,7 @@ TEST_CASE("rest_endpoint", "[server_basic]")
|
||||
SECTION("Task Missing MemoryMB should Fail")
|
||||
{
|
||||
std::string taskSpec =
|
||||
R"({ "job": { "command": [ "/usr/bin/touch", "dagrun_{{FILE}}" ]}, "cores": 100 })";
|
||||
R"({ "job": { "command": [ "/bin/touch", "dagrun_{{FILE}}" ]}, "cores": 100 })";
|
||||
|
||||
auto response =
|
||||
HTTP_REQUEST(baseURL + "/v1/task/0/sample_task", taskSpec, "POST");
|
||||
@@ -59,7 +59,7 @@ TEST_CASE("rest_endpoint", "[server_basic]")
|
||||
SECTION("Task submission and get result")
|
||||
{
|
||||
std::string taskSpec =
|
||||
R"({ "job": { "command": [ "/usr/bin/echo", "hello", "world" ], "cores": "1", "memoryMB": "100" } })";
|
||||
R"({ "job": { "command": [ "/bin/echo", "hello", "world" ], "cores": "1", "memoryMB": "100" } })";
|
||||
|
||||
// Submit
|
||||
{
|
||||
@@ -93,7 +93,7 @@ TEST_CASE("rest_endpoint", "[server_basic]")
|
||||
SECTION("Task capacity changes")
|
||||
{
|
||||
std::string taskSpec =
|
||||
R"({ "job": { "command": [ "/usr/bin/sleep", "5" ], "cores": "1", "memoryMB": "100" } })";
|
||||
R"({ "job": { "command": [ "/bin/sleep", "5" ], "cores": "1", "memoryMB": "100" } })";
|
||||
|
||||
auto getCapacity = [&]() -> daggy::executors::task::daggy_runner::Capacity {
|
||||
daggy::executors::task::daggy_runner::Capacity cap;
|
||||
|
||||
Reference in New Issue
Block a user