adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
547 stars 426 forks source link

Add exclusion for test-site in Dispatcher configurations #590

Open ireasor opened 3 years ago

ireasor commented 3 years ago

Many customers end up hitting a Cloud Manager pipeline failure when they attempt to deploy dispatcher configurations that contain a URL rewrite. This is because we have a replication test that creates a page under /content/test-site, replicates the page, checks for it on the publish instance, and then deletes it. Since the path is rewritten, the page is not found, and the test fails.

To help protect customers from this issue, we should add an exclusion rule of some sort to the dispatcher configurations generated by the project archetype, with a comment that informs them that they should not remove it for the reason specified above.

Expected Behaviour

The dispatcher configurations generated by the archetype include a rewrite condition excluding content under /content/test-site.

Actual Behaviour

No such condition is included.

Platform and Version

AEM as a Cloud Service

joerghoh commented 3 years ago

See also https://github.com/adobe/aem-test-samples/issues/27 to improve better reporting in case the ReplicationIT test fails.