test(19.3-05): Journal site-cache keys: framework keys win, alias keys deprecated

- site_cache_keys_test.go: wireSiteCache on a config without a database
- rename the Docker admin test to TestCategoriesAdminFrameworkKeysWin so the
  unit test owns TestSiteCacheFrameworkKeysWin (one name per test binary)
This commit is contained in:
Jakub Zych
2026-10-15 19:56:16 +02:00
parent d7943fb3f1
commit ebfb710197
2 changed files with 224 additions and 2 deletions

View File

@@ -330,10 +330,10 @@ func TestPostsAdminPurgesSiteCache(t *testing.T) {
})
}
// TestSiteCacheFrameworkKeysWin proves the framework keys site_cache.* take
// TestCategoriesAdminFrameworkKeysWin proves the framework keys site_cache.* take
// precedence over the Journal's deprecated keys: with both set, a category
// save purges through the framework target only.
func TestSiteCacheFrameworkKeysWin(t *testing.T) {
func TestCategoriesAdminFrameworkKeysWin(t *testing.T) {
framework := newPurgeReceiver(t)
alias := newPurgeReceiver(t)
env := newPostsEnv(t, append(alias.env(),