test: add authenticated staging smoke helper
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user