refactor: use test_secrets_store() helper in orchestrator api test

Co-authored-by: henrypark133 <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-10 05:35:42 +00:00
co-authored by henrypark133
parent 0d8b26a00f
commit 34ad608a9a
+2 -6
View File
@@ -458,7 +458,7 @@ mod tests {
use crate::orchestrator::auth::TokenStore;
use crate::orchestrator::job_manager::{ContainerJobConfig, ContainerJobManager};
use crate::testing::StubLlm;
use crate::testing::credentials::TEST_CRYPTO_KEY;
use crate::testing::credentials::test_secrets_store;
use super::*;
@@ -663,11 +663,7 @@ mod tests {
#[tokio::test]
async fn credentials_returns_secrets_when_store_configured() {
use secrecy::SecretString;
let crypto = Arc::new(
crate::secrets::SecretsCrypto::new(SecretString::from(TEST_CRYPTO_KEY.to_string()))
.unwrap(),
);
let secrets_store = Arc::new(crate::secrets::InMemorySecretsStore::new(crypto));
let secrets_store = Arc::new(test_secrets_store());
// Create a secret
secrets_store