From c8a2201b1a903635fa7bd1e0e5ad2a316f5062aa Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Wed, 28 Feb 2024 12:32:40 -0500 Subject: [PATCH] fix failing test --- nexus/src/app/background/blueprint_execution.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nexus/src/app/background/blueprint_execution.rs b/nexus/src/app/background/blueprint_execution.rs index 4ba60ab566..0631e0b42e 100644 --- a/nexus/src/app/background/blueprint_execution.rs +++ b/nexus/src/app/background/blueprint_execution.rs @@ -109,6 +109,7 @@ mod test { use nexus_db_model::{ ByteCount, SledBaseboard, SledSystemHardware, SledUpdate, }; + use nexus_db_queries::authn; use nexus_db_queries::context::OpContext; use nexus_test_utils_macros::nexus_test; use nexus_types::deployment::OmicronZonesConfig; @@ -158,8 +159,10 @@ mod test { // Set up the test. let nexus = &cptestctx.server.apictx().nexus; let datastore = nexus.datastore(); - let opctx = OpContext::for_tests( + let opctx = OpContext::for_background( cptestctx.logctx.log.clone(), + nexus.authz.clone(), + authn::Context::internal_api(), datastore.clone(), );