feat(workflow): living-server supervises the locust UI, locust load test and coverage gate
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ int main() {
|
||||
// The template escapes '&' in hrefs.
|
||||
for (std::size_t a; (a = href.find("&")) != std::string::npos;)
|
||||
href.replace(a, 5, "&");
|
||||
if (href.rfind("http", 0) == 0) continue; // external (locust UI), not a route
|
||||
auto res = f.client->get(href);
|
||||
// /auth/me demands credentials by design; every other row must be 2xx/3xx.
|
||||
bool ok = res.status < 400 || (href == "/auth/me" && res.status == 401);
|
||||
|
||||
Reference in New Issue
Block a user