I am facing an issue during deployment on production instance in AEMaaCS.
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.93 s <<< FAILURE! - in com.ranosys.website.it.tests.PublishPageValidationIT
[ERROR] validateHomepage(com.ranosys.website.it.tests.PublishPageValidationIT) Time elapsed: 8.335 s <<< FAILURE!
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at com.ranosys.website.it.tests.PublishPageValidationIT.verifyLinkedResources(PublishPageValidationIT.java:117)
at com.ranosys.website.it.tests.PublishPageValidationIT.validateHomepage(PublishPageValidationIT.java:91)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.apache.sling.testing.junit.rules.TestStickyCookieRule$1.evaluate(TestStickyCookieRule.java:34)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.apache.sling.testing.junit.rules.instance.ExistingInstanceStatement.evaluate(ExistingInstanceStatement.java:62)
at org.apache.sling.testing.junit.rules.instance.ExistingInstanceStatement.evaluate(ExistingInstanceStatement.java:62)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
[INFO] Running com.ranosys.website.it.tests.CreatePageIT
[main] INFO com.adobe.cq.testing.junit.rules.ConfigurableInstance - Using LoginToken Auth as default. Index lane detection: false
[main] INFO org.apache.sling.testing.junit.rules.instance.util.ConfigurationPool - Reading initial configurations from the system properties
[main] INFO org.apache.sling.testing.junit.rules.instance.util.ConfigurationPool - Found 2 instance configuration(s) from the system properties
[main] INFO org.apache.sling.testing.junit.rules.instance.ExistingInstanceStatement - InstanceConfiguration (URL: https://author-p51279-e307288.adobeaemcloud.net, runmode: author) found for test com.ranosys.website.it.tests.CreatePageIT 2021/12/21 11:52:16:018 GMT [DEBUG] MainClientExec - Executing request POST /content/j_security_check HTTP/1.1
2021/12/21 11:52:16:018 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:16:018 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:16:246 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:16:708 GMT [DEBUG] MainClientExec - Executing request GET /content/test-site.json HTTP/1.1
2021/12/21 11:52:16:709 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:16:709 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:16:940 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:16:947 GMT [DEBUG] MainClientExec - Executing request POST /bin/wcmcommand HTTP/1.1
2021/12/21 11:52:16:947 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:16:947 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:17:234 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:17:238 GMT [DEBUG] MainClientExec - Executing request GET /content/test-site/testpage_a807c07f-4934-4b95-95e7-4904f2b057a0.2.json HTTP/1.1
2021/12/21 11:52:17:238 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:17:238 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:17:467 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:17:900 GMT [DEBUG] MainClientExec - Executing request POST /bin/wcmcommand HTTP/1.1
2021/12/21 11:52:17:900 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:17:900 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:18:498 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.888 s - in com.ranosys.website.it.tests.CreatePageIT
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[INFO]
[ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
Also attaching screenshot of build failure.