Skip to content

Commit

Permalink
chronos: Support cron variables in test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
pschlan committed Aug 3, 2024
1 parent dc70faa commit 0471fe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chronos/NodeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ class ChronosNodeHandler : virtual public ChronosNodeIf
}

std::unique_ptr<Chronos::HTTPRequest> req(Chronos::HTTPRequest::fromURL(
job.data.url,
Chronos::Utils::replaceVariables(job.data.url),
job.identifier.userId,
maxSize,
requestTimeout
Expand Down Expand Up @@ -764,10 +764,10 @@ class ChronosNodeHandler : virtual public ChronosNodeIf
{
for(const auto &item : job.extendedData.headers)
{
req->requestHeaders.push_back({ item.first, item.second });
req->requestHeaders.push_back({ item.first, Chronos::Utils::replaceVariables(item.second) });
}

req->requestBody = job.extendedData.body;
req->requestBody = Chronos::Utils::replaceVariables(job.extendedData.body);
}

//! @todo X-Forwarded-For, User-Agent for test run
Expand Down

0 comments on commit 0471fe1

Please sign in to comment.