mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 13:31:38 +00:00
fix(e2e): apply default service identity per flow (#116265)
This commit is contained in:
committed by
GitHub
parent
e4e7f37d24
commit
3e67671d92
@@ -4390,13 +4390,13 @@ heartbeat_elapsed="\${BASH_REMATCH[1]}"
|
||||
|
||||
expectTextToIncludeAll(scenario, [
|
||||
'command_timeout="${OPENCLAW_DOCKER_DOCTOR_SWITCH_COMMAND_TIMEOUT:-900s}"',
|
||||
[
|
||||
'openclaw_test_state_create "$account_home" empty',
|
||||
' export HOME="$account_home"',
|
||||
' export USERPROFILE="$account_home"',
|
||||
" unset OPENCLAW_HOME OPENCLAW_STATE_DIR OPENCLAW_CONFIG_PATH",
|
||||
].join("\n"),
|
||||
"create_default_service_state",
|
||||
"use_default_service_identity() {",
|
||||
"local account_home",
|
||||
'account_home="$(node -p \'require("node:os").userInfo().homedir\')"',
|
||||
'export HOME="$account_home"',
|
||||
'export USERPROFILE="$account_home"',
|
||||
"unset OPENCLAW_HOME OPENCLAW_STATE_DIR OPENCLAW_CONFIG_PATH",
|
||||
'openclaw_test_state_create "switch-${name}" empty\n use_default_service_identity',
|
||||
'openclaw_e2e_maybe_timeout "$command_timeout" bash -c "$install_cmd"',
|
||||
'openclaw_e2e_maybe_timeout "$command_timeout" bash -c "$doctor_cmd"',
|
||||
'openclaw_e2e_maybe_timeout "$command_timeout" "$npm_bin" gateway install --wrapper "$wrapper" --force',
|
||||
@@ -4407,6 +4407,7 @@ heartbeat_elapsed="\${BASH_REMATCH[1]}"
|
||||
scenario.match(/unset OPENCLAW_HOME OPENCLAW_STATE_DIR OPENCLAW_CONFIG_PATH/gu),
|
||||
).toHaveLength(1);
|
||||
expect(scenario.match(/export USERPROFILE="\$account_home"/gu)).toHaveLength(1);
|
||||
expect(scenario.match(/^ use_default_service_identity$/gmu)).toHaveLength(3);
|
||||
expect(scenario).not.toMatch(/^\s*if ! timeout "\$command_timeout"/mu);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user