forked from heavy-duty/box
test: the mint drive mints 'claude-box', the name the template has now
The rebase onto main was textually clean and semantically wrong. #123 renamed the tenant templates (claude -> claude-box, following rig#76) while this branch was open; the mint-stamp drive was written against the old name and git had no reason to say so — the two changes never touch the same line. `box new --template claude` now dies at the template lookup, so all 18 mint assertions failed on a shimmed mint that never reached a launch line. Renamed at the two mint invocations and the two stamp assertions that read the new name back (user.box.template, user.box.role). Deliberately NOT renamed: - `user.box.user=claude` — the seed user did not move. #123 split the two namespaces on purpose: the template and the rig role are `claude-box`, the user the role converges stays `claude`. The assertion pins that split. - the canned `$STAMPED`/`$PRERENAME` info fixtures — they stand for boxes minted BEFORE the rename, which is exactly the case box promises to keep reading (cmd_new matches both spellings of user.box.template for the login hint). Renaming them would delete the coverage.
This commit is contained in:
parent
aed2f5bf1f
commit
c3823e9a3f
1 changed files with 4 additions and 4 deletions
|
|
@ -1137,7 +1137,7 @@ restamp_has() { grep -F 'config set' "$1" | grep -qE "$2"; }
|
||||||
# --- the write half: a fresh mint ------------------------------------------
|
# --- the write half: a fresh mint ------------------------------------------
|
||||||
MLOG="$MWORK/mint.log"
|
MLOG="$MWORK/mint.log"
|
||||||
check "mint: a shimmed 'box new' runs to completion" 0 "ready" \
|
check "mint: a shimmed 'box new' runs to completion" 0 "ready" \
|
||||||
mintbox "$MLOG" new --name w1 --template claude --container
|
mintbox "$MLOG" new --name w1 --template claude-box --container
|
||||||
# Each key on its own check: a single grep for the whole block would go green
|
# Each key on its own check: a single grep for the whole block would go green
|
||||||
# on a partial stamp, and "which fact was dropped" is the useful failure.
|
# on a partial stamp, and "which fact was dropped" is the useful failure.
|
||||||
check "mint: stamps the schema — the stamp's SHAPE, not the box version (#103)" \
|
check "mint: stamps the schema — the stamp's SHAPE, not the box version (#103)" \
|
||||||
|
|
@ -1153,7 +1153,7 @@ check "mint: stamps the mode it minted as (#103)" \
|
||||||
check "mint: stamps the mode that was ASKED, not only the outcome (#103)" \
|
check "mint: stamps the mode that was ASKED, not only the outcome (#103)" \
|
||||||
0 "user.box.mode.asked=container" launchline "$MLOG"
|
0 "user.box.mode.asked=container" launchline "$MLOG"
|
||||||
check "mint: stamps the rig role box will auto-run (#103)" \
|
check "mint: stamps the rig role box will auto-run (#103)" \
|
||||||
0 "user.box.role=claude" launchline "$MLOG"
|
0 "user.box.role=claude-box" launchline "$MLOG"
|
||||||
check "mint: stamps which rig converged it — repo (#103)" \
|
check "mint: stamps which rig converged it — repo (#103)" \
|
||||||
0 "user.box.rig.repo=heavy-duty/rig" launchline "$MLOG"
|
0 "user.box.rig.repo=heavy-duty/rig" launchline "$MLOG"
|
||||||
check "mint: stamps which rig converged it — ref (#103)" \
|
check "mint: stamps which rig converged it — ref (#103)" \
|
||||||
|
|
@ -1168,7 +1168,7 @@ check "mint: stamps the mint time as UTC ISO 8601 (#103)" 0 "" \
|
||||||
check "mint: the pre-existing boundary tag still rides the same line" \
|
check "mint: the pre-existing boundary tag still rides the same line" \
|
||||||
0 "user.box=1" launchline "$MLOG"
|
0 "user.box=1" launchline "$MLOG"
|
||||||
check "mint: the pre-existing template stamp is untouched" \
|
check "mint: the pre-existing template stamp is untouched" \
|
||||||
0 "user.box.template=claude" launchline "$MLOG"
|
0 "user.box.template=claude-box" launchline "$MLOG"
|
||||||
check "mint: the pre-existing user stamp is untouched" \
|
check "mint: the pre-existing user stamp is untouched" \
|
||||||
0 "user.box.user=claude" launchline "$MLOG"
|
0 "user.box.user=claude" launchline "$MLOG"
|
||||||
# Deliberately NOT stamped. limits.* already hold cpu/memory and a duplicate
|
# Deliberately NOT stamped. limits.* already hold cpu/memory and a duplicate
|
||||||
|
|
@ -1217,7 +1217,7 @@ check "mint: ...and no role either — blank names none (#103)" 1 "" \
|
||||||
# override, so the two are compared on a value neither can have hardcoded.
|
# override, so the two are compared on a value neither can have hardcoded.
|
||||||
RIGLOG="$MWORK/rig.log"
|
RIGLOG="$MWORK/rig.log"
|
||||||
export RIG_REPO=someone/rig RIG_REF=probe-ref
|
export RIG_REPO=someone/rig RIG_REF=probe-ref
|
||||||
mintbox "$RIGLOG" new --name w5 --template claude --container >/dev/null 2>&1
|
mintbox "$RIGLOG" new --name w5 --template claude-box --container >/dev/null 2>&1
|
||||||
unset RIG_REPO RIG_REF
|
unset RIG_REPO RIG_REF
|
||||||
check "mint: the rig pin override reaches the STAMP (#103)" 0 "" \
|
check "mint: the rig pin override reaches the STAMP (#103)" 0 "" \
|
||||||
launch_has "$RIGLOG" 'user\.box\.rig\.repo=someone/rig'
|
launch_has "$RIGLOG" 'user\.box\.rig\.repo=someone/rig'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue