test: trim secrets runtime snapshot setup

This commit is contained in:
Shakker
2026-04-03 11:22:40 +01:00
committed by Peter Steinberger
parent 38f76a1f8f
commit d75fa152b9
3 changed files with 10 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import {
asConfig,
createOpenAIFileRuntimeConfig,
createOpenAIFileRuntimeFixture,
EMPTY_LOADABLE_PLUGIN_ORIGINS,
expectResolvedOpenAIRuntime,
loadAuthStoreWithProfiles,
OPENAI_ENV_KEY_REF,
@@ -73,6 +74,7 @@ describe("secrets runtime snapshot auth integration", () => {
}),
env: { OPENAI_API_KEY: "sk-runtime" },
agentDirs: ["/tmp/openclaw-agent-main"],
loadablePluginOrigins: EMPTY_LOADABLE_PLUGIN_ORIGINS,
loadAuthStore: () =>
loadAuthStoreWithProfiles({
"openai:default": {
@@ -106,6 +108,7 @@ describe("secrets runtime snapshot auth integration", () => {
const prepared = await prepareSecretsRuntimeSnapshot({
config: createOpenAIFileRuntimeConfig(secretFile),
agentDirs: [agentDir],
loadablePluginOrigins: EMPTY_LOADABLE_PLUGIN_ORIGINS,
});
activateSecretsRuntimeSnapshot(prepared);
@@ -147,6 +150,7 @@ describe("secrets runtime snapshot auth integration", () => {
const prepared = await prepareSecretsRuntimeSnapshot({
config: createOpenAIFileRuntimeConfig(secretFile),
agentDirs: [agentDir],
loadablePluginOrigins: EMPTY_LOADABLE_PLUGIN_ORIGINS,
loadAuthStore,
});
@@ -220,6 +224,7 @@ describe("secrets runtime snapshot auth integration", () => {
OPENAI_API_KEY: "sk-main-runtime",
ANTHROPIC_API_KEY: "sk-ops-runtime",
},
loadablePluginOrigins: EMPTY_LOADABLE_PLUGIN_ORIGINS,
});
activateSecretsRuntimeSnapshot(prepared);