From ac788894b59e9191a1cc5e4620a3a8d67dbc600b Mon Sep 17 00:00:00 2001 From: David Crespo Date: Fri, 9 Feb 2024 12:59:33 -0600 Subject: [PATCH] /lookup/* route for console --- nexus/src/external_api/console_api.rs | 1 + nexus/src/external_api/http_entrypoints.rs | 1 + nexus/tests/integration_tests/console_api.rs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/nexus/src/external_api/console_api.rs b/nexus/src/external_api/console_api.rs index d369f57905..86a808a47b 100644 --- a/nexus/src/external_api/console_api.rs +++ b/nexus/src/external_api/console_api.rs @@ -700,6 +700,7 @@ macro_rules! console_page_wildcard { console_page_wildcard!(console_projects, "/projects/{path:.*}"); console_page_wildcard!(console_settings_page, "/settings/{path:.*}"); console_page_wildcard!(console_system_page, "/system/{path:.*}"); +console_page_wildcard!(console_lookup, "/lookup/{path:.*}"); console_page!(console_root, "/"); console_page!(console_projects_new, "/projects-new"); console_page!(console_silo_images, "/images"); diff --git a/nexus/src/external_api/http_entrypoints.rs b/nexus/src/external_api/http_entrypoints.rs index 3a9e957328..fd18cb2dab 100644 --- a/nexus/src/external_api/http_entrypoints.rs +++ b/nexus/src/external_api/http_entrypoints.rs @@ -332,6 +332,7 @@ pub(crate) fn external_api() -> NexusApiDescription { api.register(console_api::login_saml)?; api.register(console_api::logout)?; + api.register(console_api::console_lookup)?; api.register(console_api::console_projects)?; api.register(console_api::console_projects_new)?; api.register(console_api::console_silo_images)?; diff --git a/nexus/tests/integration_tests/console_api.rs b/nexus/tests/integration_tests/console_api.rs index d7918b01aa..78b5ee21d5 100644 --- a/nexus/tests/integration_tests/console_api.rs +++ b/nexus/tests/integration_tests/console_api.rs @@ -209,6 +209,8 @@ async fn test_console_pages(cptestctx: &ControlPlaneTestContext) { "/images", "/utilization", "/access", + "/lookup/", + "/lookup/abc", ]; for path in console_paths {