Skip to content

Missing functional tests for cache #810

@intelfx

Description

@intelfx

We need more functional tests for correct handling of various cache Tempesta config options:

  1. Options
    • cache_purge_acl
      • include CIDR masks and single IP specifications
      • ensure overlapping entries are handled properly
      • include some dummy entries, ensure they don't influence real ones
    • location sections
      • include location sections that contradict rules inside them; ensure they have no effect
    • nonidempotent
  2. Improvements
    • extend multiple-methods test with multiple URLs
    • run all cache tests (incl. elaborate ones) in all cache modes
  3. Cache eviction (TDBv0.2: Cache background revalidation and eviction #515)
    • test workload significantly larger than available RAM The test case is invalid since Tempesta DB is an in-memory dtatabase
    • send responses with Cache-Control: max-age=1 and check that 1 second later the response is fetched from the cache only if a request and our settings allow stale responses (check RFC 7234 chapter 5 and our Wiki)
  4. Operation
    • Check that https://mysite/pic.jpg?myparam=test and https://mysite/pic.jpg?myparam2=test2 are cached separately
    • Permanent redirects (e.g. 301 and 308) are cached, while temporal aren't

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions