Battle-Tested

2,000+ Test Scenarios

Not marketing claims. Real tests. Running on every commit.

536
E2E Tests
1,507
Unit Tests
44
Test Suites

Every feature in Trident was built with real-world e-commerce scenarios in mind. Flash sales, Black Friday traffic, backend failures — we test for what actually breaks production.

Why This Matters for Your Team

Confidence before deployment. Every caching behavior, every edge case, every failure scenario — tested automatically. Your CI/CD pipeline catches issues before they reach production.

Sleep well on Black Friday. When traffic spikes hit, you know your cache will perform. Because you've already tested those exact scenarios — automatically, on every commit.

Our test suite runs on every commit. No feature ships without passing all 2,000+ scenarios. Average CI run: under 5 minutes.

Built for Operations

Tests that matter when you're on-call

Zero-Downtime Deploys

13 hot reload tests

Config changes apply instantly. No restart required. No dropped connections.

Cache Persistence

15 persistence tests

Cache survives restarts. Snapshots verified. Recovery tested.

Dynamic Backends

15 DNS discovery tests

Backend IPs change? Trident adapts. SRV records supported.

Prometheus Ready

16 observability tests

Metrics endpoint tested. SSE events for real-time debugging.

CLI & Admin API

38 admin tests

Every CLI command tested. JSON responses validated.

Graceful Degradation

13 failure tests

Backend down? Serve stale. Overloaded? Queue requests. Never crash.

Test Categories

Organized by business impact. Critical tests protect revenue.

E-commerce Scenarios

Real-world e-commerce traffic patterns

Critical11 tests
flash_sale_thundering_herdblack_friday_traffic_spikeinventory_update_propagationprice_update_under_loadcart_checkout_bypasshigh_concurrency_failovertag_purge_under_loadsession_handling+3 more

Security

Protection against attacks and vulnerabilities

Critical45 tests
cl_te_smugglingte_cl_basiccrlf_injectionpath_traversal_preventionencoded_path_traversalheader_size_limituri_length_exceeds_limitmalformed_transfer_encoding+4 more

Backend Protection

Protect your origin from overload

Critical12 tests
queue_timeout_serve_stalerequest_coalescing_interactionper_backend_isolationstale_fallback_cold_cachereturn_503_overflowwaiting_page_overflowprotection_stats_apiqueue_length_tracking+2 more

Cache Tags

Precision invalidation for e-commerce

High31 tests
magento_tagsproduct_tag_purgecatalog_tag_purges_allshared_tag_purges_multiplemulti_tag_purge_anymulti_tag_purge_allwildcard_tag_purgeregex_tag_purge+2 more

Load Balancing & Failover

High availability and resilience

High15 tests
round_robin_distributionbackend_failoverbackend_recoveryall_backends_downgrace_mode_serves_stalepartial_backend_failurebackend_flappinghealth_check_detection+1 more

Stress & Performance

Tested under extreme load

High18 tests
high_concurrency_cacheconcurrent_cache_writesinvalidation_under_loadburst_trafficgraceful_degradationthundering_herdrapid_requestsmany_unique_urls+1 more

Grace & Stale Serving

Zero-downtime cache behavior

High21 tests
stale_if_error_connection_failuregrace_serves_stale_when_downstale_while_revalidatesoft_purge_returns_hit_stalegrace_concurrent_requestsuncached_not_served_stalestale_if_error_recovery

HTTP/2 & Protocol

Modern protocol support

Standard18 tests
http2_alpn_negotiationhttp2_multiplexinghttp2_concurrent_streamshttp11_fallbackconditional_requestsetag_storedlast_modified_stored

Status Code Compliance

RFC-compliant caching behavior

Standard25 tests
status_200_cacheablestatus_301_cacheable_by_defaultstatus_302_not_cacheable_without_ccstatus_404_negative_cachingstatus_410_cacheablestatus_500_not_cacheable

Admin API & CLI

Operations and monitoring

Standard38 tests
stats_endpoint_returns_jsonmetrics_endpoint_prometheuscache_clear_endpointpurge_by_urlpurge_by_tagcli_admin_statussse_sends_events

Built for E-commerce Reality

Flash Sale Launch

PASS
test_flash_sale_thundering_herd

100 concurrent users hit the same product page. Request coalescing ensures backend gets 1 request, all 100 users get served.

Black Friday Traffic

PASS
test_black_friday_traffic_spike

Simulates 10x normal traffic. Tests cache efficiency, connection pooling, and graceful degradation under extreme load.

Price Update

PASS
test_price_update_under_load

Admin updates price while 50 users browse. Cache tag purge propagates instantly without dropping requests.

Backend Failure

PASS
test_grace_serves_stale_when_down

Backend goes down during peak traffic. Grace mode serves stale content seamlessly — users never see errors.

Security-First Testing

45 security tests covering OWASP vulnerabilities and HTTP attack vectors

Request Smuggling

cl_te_basic,te_cl_basic,multiple_content_length

Injection Prevention

crlf_injection,header_size_limit,host_header_validation

Path Traversal

path_traversal_prevention,encoded_path_traversal,deep_path_traversal

Protocol Attacks

http09_downgrade,malformed_transfer_encoding,xff_spoofing

For Technical Decision Makers

Reduce risk. Pass audits. Sleep better.

Standards Compliance

  • RFC 7234 (HTTP Caching) — 25 status code tests
  • RFC 9110 (HTTP Semantics) — conditional request handling
  • RFC 7540 (HTTP/2) — 8 protocol tests
  • OWASP Top 10 — 45 security vulnerability tests

Risk Mitigation

  • Cache poisoning prevention — tested
  • Request smuggling attacks — 19 test vectors
  • Backend overload protection — queue + stale serving
  • Graceful degradation under failure — verified

Operational Confidence

  • Every release tested against 2,000+ scenarios
  • No manual QA required — fully automated
  • Regression tests catch breaking changes
  • Performance benchmarks track degradation

Incident Prevention

  • Flash sale scenarios — tested before you need them
  • Backend failure handling — grace mode verified
  • Config validation — errors caught before deploy
  • Hot reload safety — no dropped connections

Performance Benchmarks

Beyond functional tests, we run performance benchmarks comparing Trident vs Varnish under realistic e-commerce workloads.

View Benchmark Results

Trust What's Tested

2,000+ tests. Every commit. Every deployment.
Your e-commerce traffic deserves reliability you can verify.