Skip to content

IBX-12241: Added Behat coverage for Varnish TTL, stale cache, cache keys and tagging - #85

Merged
alongosz merged 3 commits into
4.6from
IBX-12241-varnish-cache-behat
Oct 8, 2026
Merged

alongosz merged 3 commits into
4.6from
IBX-12241-varnish-cache-behat

Conversation

@vidarl

@vidarl vidarl commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12241

Related PRs:

Description:

The Varnish suites currently assert x-cache: MISS|HIT, purge-on-edit, ESI embedding and
translation-aware purging — in other words, whether something is cached.

Nothing covers how long it stays cached, what happens once it expires, what the cache key
is, or which tags go out on the response, even though the shipped VCL has real logic for all four.

This PR adds scenarios for that

For QA:

Run against a Varnish setup with WEB_HOST pointing at the Varnish container, setup suite first:

vendor/bin/behat --profile=httpCache --suite=setup
# rebuild the container cache, then
vendor/bin/behat --profile=httpCache --suite=varnish6
vendor/bin/behat --profile=httpCache --suite=varnish7

Note that scenarios that assert MISS first need a cold Varnish, the same assumption cache.feature
already makes. Re-running against a warm cache fails them; restart the Varnish container between
runs.

Documentation:

@sonarqubecloud

Copy link
Copy Markdown

@tomaszszopinski
tomaszszopinski force-pushed the IBX-12241-varnish-cache-behat branch from 108fbfd to 177d103 Compare October 5, 2026 08:08
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@alongosz
alongosz merged commit fd03b7c into 4.6 Oct 8, 2026
34 of 36 checks passed
@alongosz
alongosz deleted the IBX-12241-varnish-cache-behat branch October 8, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants