Skip to content

Commit a2bedbd

Browse files
committed
test: update verify-website-links CLI happy-path fixture for repointed probe
The CLI-level TestRunVerifyWebsiteLinksHappyPath built its fixture site from the old development/ probe pages. Repoint it to reference/index.html -> /reference/cli/ (matching the probe change) and drop the removed index.md-drop page, so the cmd/mdsmith-release suite passes too.
1 parent 888423f commit a2bedbd

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

cmd/mdsmith-release/main_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,14 @@ func TestRunBuildWebsiteEndToEnd(t *testing.T) {
298298
// exercised end-to-end.
299299
func TestRunVerifyWebsiteLinksHappyPath(t *testing.T) {
300300
root := t.TempDir()
301-
mq := filepath.Join(root, "development", "merge-queue", "index.html")
302-
aa := filepath.Join(root, "development", "architecture-audit", "index.html")
301+
ref := filepath.Join(root, "reference", "index.html")
303302
st := filepath.Join(root, "reference", "schema-types", "index.html")
304303
rule := filepath.Join(root, "rules", "mds001", "index.html")
305-
for _, dir := range []string{filepath.Dir(mq), filepath.Dir(aa), filepath.Dir(st), filepath.Dir(rule)} {
304+
for _, dir := range []string{filepath.Dir(ref), filepath.Dir(st), filepath.Dir(rule)} {
306305
require.NoError(t, os.MkdirAll(dir, 0o755))
307306
}
308-
require.NoError(t, os.WriteFile(mq,
309-
[]byte(`<a href="/development/pr-fixup-workflow/">x</a>`), 0o644))
310-
require.NoError(t, os.WriteFile(aa,
311-
[]byte(`<a href="/development/architecture/">x</a>`), 0o644))
307+
require.NoError(t, os.WriteFile(ref,
308+
[]byte(`<a href="/reference/cli/">x</a>`), 0o644))
312309
require.NoError(t, os.WriteFile(st,
313310
[]byte(`<a href="/rules/mds020-required-structure/">x</a>`), 0o644))
314311
require.NoError(t, os.WriteFile(rule,

0 commit comments

Comments
 (0)