Skip to content

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

Open
vidarl wants to merge 2 commits into
4.6from
IBX-12241-varnish-cache-behat
Open

IBX-12241: Added Behat coverage for Varnish TTL, stale cache, cache keys and tagging#85
vidarl wants to merge 2 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

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:

@vidarl
vidarl force-pushed the IBX-12241-varnish-cache-behat branch from fa2e2ea to 108fbfd Compare August 12, 2026 06:49
@sonarqubecloud

Copy link
Copy Markdown

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.

4 participants