docs(release): pin first Portainer candidate
This commit is contained in:
@@ -26,3 +26,21 @@ def test_preflight_migrates_before_web_and_cannot_default_to_formal_storage() ->
|
||||
assert "condition: service_completed_successfully" in compose
|
||||
assert '"${APP_PUBLISH_PORT:-8876}:8765"' in compose
|
||||
assert "8765:8765" not in compose
|
||||
|
||||
|
||||
def test_portainer_preflight_is_pinned_to_the_release_candidate() -> None:
|
||||
guide = ROOT.joinpath("docs", "portainer-preflight.md").read_text(encoding="utf-8")
|
||||
manifest = ROOT.joinpath("docs", "final", "release-candidate.md").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
|
||||
git_tag = "xiaobai-next-rc-20260730-1"
|
||||
image_tag = "xiaobai-review-next:rc-20260730-1"
|
||||
assert f"refs/tags/{git_tag}" in guide
|
||||
assert f"refs/tags/{git_tag}" in manifest
|
||||
assert image_tag in guide
|
||||
assert image_tag in manifest
|
||||
assert "| Repository reference | `refs/heads/main` |" not in guide
|
||||
assert "546c5af1a3010bbf0cf37e5d8b1a440fe6dfbfe80b471cddf430d4363a7b1a4a" in manifest
|
||||
for expected in ("用户 | 3", "自选 | 6", "选股归档 | 107", "策略跟踪 | 16"):
|
||||
assert expected in manifest
|
||||
|
||||
Reference in New Issue
Block a user