fix: Replace UTF-8 em-dash with ASCII hyphen in CLI output and tests
Replace em-dash (—) with ASCII hyphen (-) in: - bin/disinto: 'Dry run complete' message - bin/disinto: import skip message - lib/init/nomad/cluster-up.sh: 'Dry run complete' message - tests/disinto-init-nomad.bats: test assertions This fixes CI failures caused by bats test runner not handling UTF-8 em-dash characters correctly.
This commit is contained in:
parent
f9f044c6ed
commit
15c6cc7e16
3 changed files with 7 additions and 7 deletions
|
|
@ -723,7 +723,7 @@ _disinto_init_nomad() {
|
||||||
echo "[auth] [dry-run] ${vault_auth_sh}"
|
echo "[auth] [dry-run] ${vault_auth_sh}"
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
echo "[import] no --import-env/--import-sops — skipping; set them or seed kv/disinto/* manually before deploying secret-dependent services"
|
echo "[import] no --import-env/--import-sops - skipping; set them or seed kv/disinto/* manually before deploying secret-dependent services"
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -818,7 +818,7 @@ _disinto_init_nomad() {
|
||||||
sudo -n -- "${import_cmd[@]}" || exit $?
|
sudo -n -- "${import_cmd[@]}" || exit $?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "[import] no --import-env/--import-sops — skipping; set them or seed kv/disinto/* manually before deploying secret-dependent services"
|
echo "[import] no --import-env/--import-sops - skipping; set them or seed kv/disinto/* manually before deploying secret-dependent services"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Deploy services if requested
|
# Deploy services if requested
|
||||||
|
|
@ -1134,7 +1134,7 @@ p.write_text(text)
|
||||||
echo "[ensure] CLAUDE_CONFIG_DIR"
|
echo "[ensure] CLAUDE_CONFIG_DIR"
|
||||||
echo "[ensure] state files (.dev-active, .reviewer-active, .gardener-active)"
|
echo "[ensure] state files (.dev-active, .reviewer-active, .gardener-active)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Dry run complete — no changes made."
|
echo "Dry run complete - no changes made."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ EOF
|
||||||
→ export VAULT_ADDR=${VAULT_ADDR_DEFAULT}
|
→ export VAULT_ADDR=${VAULT_ADDR_DEFAULT}
|
||||||
→ export NOMAD_ADDR=${NOMAD_ADDR_DEFAULT}
|
→ export NOMAD_ADDR=${NOMAD_ADDR_DEFAULT}
|
||||||
|
|
||||||
Dry run complete — no changes made.
|
Dry run complete - no changes made.
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ setup_file() {
|
||||||
[[ "$output" == *"[dry-run] Step 8/9: systemctl start nomad + poll until ≥1 node ready"* ]]
|
[[ "$output" == *"[dry-run] Step 8/9: systemctl start nomad + poll until ≥1 node ready"* ]]
|
||||||
[[ "$output" == *"[dry-run] Step 9/9: write /etc/profile.d/disinto-nomad.sh"* ]]
|
[[ "$output" == *"[dry-run] Step 9/9: write /etc/profile.d/disinto-nomad.sh"* ]]
|
||||||
|
|
||||||
[[ "$output" == *"Dry run complete — no changes made."* ]]
|
[[ "$output" == *"Dry run complete - no changes made."* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
# ── --backend=nomad --empty --dry-run ────────────────────────────────────────
|
# ── --backend=nomad --empty --dry-run ────────────────────────────────────────
|
||||||
|
|
@ -58,7 +58,7 @@ setup_file() {
|
||||||
# both modes invoke the same cluster-up dry-run.
|
# both modes invoke the same cluster-up dry-run.
|
||||||
[[ "$output" == *"nomad backend: --empty (cluster-up only, no jobs)"* ]]
|
[[ "$output" == *"nomad backend: --empty (cluster-up only, no jobs)"* ]]
|
||||||
[[ "$output" == *"[dry-run] Step 1/9: install nomad + vault binaries + docker daemon"* ]]
|
[[ "$output" == *"[dry-run] Step 1/9: install nomad + vault binaries + docker daemon"* ]]
|
||||||
[[ "$output" == *"Dry run complete — no changes made."* ]]
|
[[ "$output" == *"Dry run complete - no changes made."* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
# ── --backend=docker (regression guard) ──────────────────────────────────────
|
# ── --backend=docker (regression guard) ──────────────────────────────────────
|
||||||
|
|
@ -238,7 +238,7 @@ setup_file() {
|
||||||
@test "disinto init --backend=nomad without import flags shows skip message" {
|
@test "disinto init --backend=nomad without import flags shows skip message" {
|
||||||
run "$DISINTO_BIN" init placeholder/repo --backend=nomad --dry-run
|
run "$DISINTO_BIN" init placeholder/repo --backend=nomad --dry-run
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
[[ "$output" == *"no --import-env/--import-sops — skipping"* ]]
|
[[ "$output" == *"no --import-env/--import-sops - skipping"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "disinto init --backend=nomad --import-env --import-sops --age-key --with forgejo --dry-run shows all plans" {
|
@test "disinto init --backend=nomad --import-env --import-sops --age-key --with forgejo --dry-run shows all plans" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue