ASF-injectie 5/5: end-to-end test op de master-host, ASF Website:AuthoredBaseUrl, rooktest-uitbreiding, docs
- ASF appsettings: Website:AuthoredBaseUrl=https://andreaslop.nl, PublicBaseUrl leeg (env). - Api.Tests/AsfInjectionPipelineTests: pagina met markers, echte database; een CMS-wijziging is direct zichtbaar (ETag wijzigt), data-blok == publieke API, 304, sitemap-adres. - smoke-site.sh: onverwerkte CMS-markers op / falen; data-blok moet siteUrl van deze host hebben. - docs: asf-host-injection 'as built'. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -133,6 +133,16 @@ public class SiteContractTests
|
||||
config.GetSection("SecurityHeaders:AllowedConnectOrigins").Get<string[]>().Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AndreaSlopFotografie_WritesItsProductionAddressInTheBuild_AndHasNoPublicAddressByDefault()
|
||||
{
|
||||
// The build is the same on test and production: the host swaps the authored address for the instance's own.
|
||||
var config = SiteFiles.Committed(SiteFiles.AndreaSlopFotografie);
|
||||
|
||||
config["Website:AuthoredBaseUrl"].Should().Be("https://andreaslop.nl");
|
||||
config["Website:PublicBaseUrl"].Should().BeNullOrEmpty("the instance's own address is environment configuration");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AndreaSlopFotografie_MailBrandingPointsAtTheAdminAssets()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user