Skip to content

Commit 2e2fd67

Browse files
VijitSingh97claude
andcommitted
test(#33): use a valid-format wallet probe so the tier-4 gate exercises the approval gate
The hardening wallet round-trip used a 96-char probe containing '0' (invalid base58) — monero_address_type is format-only (starts-with-4 + length 95), so an invalid probe is rejected at PREVIEW by config validation, before the approval gate it's meant to test. The determinism fix then asserted the preview STAGED (previewed), which failed. Use a valid-format 95-char probe: the preview now stages (previewed) and the default-deny gate refuses it at COMMIT (rejected), with the .env-untouched assertion catching any gate failure loudly. Test-only. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ee865f9 commit 2e2fd67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ run_hardening() {
13301330
local uuid_bad bad_cfg wallet_before
13311331
uuid_bad="$(_uuid4)"
13321332
wallet_before="$(env_on_box MONERO_WALLET_ADDRESS)"
1333-
bad_cfg="$(printf '%s' "$ctrl_config" | jq -c '.monero.wallet_address="4TIER4TESTWALLETdoNotApplyThisIsAnIntegrationTestRejectionProbe0000000000000000000000000000000000"')"
1333+
bad_cfg="$(printf '%s' "$ctrl_config" | jq -c '.monero.wallet_address="4TESTWALLETdoNotUseHandsffGateRejectSensitiveKeyDefautDenyProbeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"')"
13341334
_spool_write "$cdir/requests/$uuid_bad.json" \
13351335
"$(jq -nc --argjson c "$bad_cfg" --arg id "$uuid_bad" '{id:$id,action:"preview",actor:"itest",config:$c}')"
13361336
st="$(_wait_control_status "$cdir" "$uuid_bad" "" 60 || echo timeout)"

0 commit comments

Comments
 (0)