AEM - Web Tier pipeline execution failing during TestCacheInvalidation

In Adobe Experience Manager as a Cloud Service, if the Web Tier pipeline execution fails with an error during TestCacheInvalidation, it’s important to check if the dispatcher configuration includes a vhost for dispatcher cache invalidation. You can follow the steps provided in this article to resolve the issue.

Description description

Environment

Adobe Experience Manager as a Cloud Service

Issue/Symptoms

The Web Tier pipeline execution fails with an error in log file:

=== RUN TestCacheInvalidation
main_test.go:237: Test fails. Expected header 'X-Vhost' to be existing and not: 'catch-all', got: 'catch-all'
--- FAIL: TestCacheInvalidation (0.00s)
FAIL
exit status 1

Resolution resolution

Steps to Resolve

Note:

At least one enabled vhost must declare a ServerAlias value that includes either * OR 127.0.0.1 localhost. Including just 127.0.0.1 or just localhost in the ServerAlias is not guaranteed to handle cache invalidation requests in all versions of the dispatcher validator.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f