test: add authenticated staging smoke helper

This commit is contained in:
a.tolmachev
2026-04-07 13:08:32 +03:00
parent e3cd02aa7e
commit 09e6260e32
9 changed files with 136 additions and 12 deletions
+7
View File
@@ -44,6 +44,9 @@ function mapRoute(urlPath) {
if (urlPath === '/api-keys') {
return path.join(ROOT_DIR, 'html', 'api-keys.html');
}
if (urlPath === '/secrets') {
return path.join(ROOT_DIR, 'html', 'secrets.html');
}
if (urlPath === '/logs') {
return path.join(ROOT_DIR, 'html', 'logs.html');
}
@@ -156,6 +159,10 @@ const server = http.createServer((request, response) => {
redirect(response, '/api-keys');
return;
}
if (urlPath === '/html/secrets.html') {
redirect(response, '/secrets');
return;
}
if (urlPath === '/html/logs.html') {
redirect(response, '/logs');
return;