docs(flare,kiosk,lagoon): compile README Go examples via src= (quick-261118-qsd)

- flare: send region run by TestDocsNotifyReply against a loopback TLS push
  service; blogSubscriptions and the publish-source region run by
  TestDocsSubscriptionSource on a Postgres container (skips under -short)
- kiosk: write, newest and client regions run by TestDocsWriteManifest (a
  copy of the literal fixture), ExampleVersionsResponse and
  TestDocsBlogReleases (httptest registry); the CheckT fence reuses
  TestPluginManifest
- lagoon: new open region run by TestDocsOpenFromApp (DocsDSN added to
  export_docs_test.go); the model, create-post, on-database, publish and
  migrations fences reuse the Database pages' targets
This commit is contained in:
Jakub Zych
2026-11-18 19:53:27 +01:00
parent d04454c57b
commit c517db564c
7 changed files with 535 additions and 63 deletions

View File

@@ -19,3 +19,12 @@ func DocsDB(t *testing.T, name string) *gorm.DB {
}
return gdb
}
// DocsDSN returns the DSN of a fresh database named name in this package's
// Postgres harness, for the docs example that opens the pool from config.
// It skips under -short like DocsDB.
func DocsDSN(t *testing.T, name string) string {
t.Helper()
_, dsn := dedicatedDB(t, name)
return dsn
}