Compare commits

...
Author SHA1 Message Date
copilot-swe-agent[bot]andhenrypark133 34ad608a9a refactor: use test_secrets_store() helper in orchestrator api test
Co-authored-by: henrypark133 <[email protected]>
2026-03-10 05:35:42 +00:00
copilot-swe-agent[bot] 0d8b26a00f Initial plan 2026-03-10 05:25:16 +00:00
+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