Skip to content

Commit ca09f13

Browse files
committed
test: authenticate Claude recovery fixtures
1 parent a9e0fb2 commit ca09f13

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/fm-account-directory.test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,13 @@ reset_accounts() {
173173

174174
mark_manual_only() {
175175
local provider=$1 account=$2
176+
mkdir -p "$ACCOUNT_ROOT/$provider/$account"
176177
touch "$ACCOUNT_ROOT/$provider/$account/test-manual-only"
177178
}
178179

179180
mark_last_resort() {
180181
local provider=$1 account=$2
182+
mkdir -p "$ACCOUNT_ROOT/$provider/$account"
181183
touch "$ACCOUNT_ROOT/$provider/$account/test-last-resort"
182184
}
183185

@@ -827,7 +829,7 @@ test_claude_spawn_rejects_mismatched_explicit_model() {
827829
test_direct_claude_recovery_resolves_legacy_default_to_anchor() {
828830
local record id meta meta_tmp launch
829831
reset_accounts
830-
mkdir -p "$ACCOUNT_ROOT/claude/2"
832+
set_claude_authenticated 2
831833
mark_claude_keychain_ready 2
832834
id=claude-recovery-model-anchor-z2
833835
record=$(make_spawn_case claude-recovery-model-anchor claude "$id")
@@ -1464,7 +1466,9 @@ if [ "${FM_TEST_FOCUSED:-}" = credential-preflight ]; then
14641466
test_claude_credential_check_recovers_from_stale_profile_binary_manifest
14651467
test_prepare_installs_and_verifies_per_account_herdr_hooks
14661468
test_prepare_rejects_missing_credentials_before_hook_install
1469+
test_spawn_uses_direct_claude_fallback_and_hook
14671470
test_spawn_refuses_unauthenticated_account_before_endpoint_creation
1471+
test_direct_claude_recovery_resolves_legacy_default_to_anchor
14681472
exit 0
14691473
fi
14701474

0 commit comments

Comments
 (0)