Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Description
When running the smoke test against EAP we get this failure:
--- START FAILED JSON PAYLOAD --- {"method":"GET","resource":"/echo/echo","uri":"/echo/echo","headers":{"x-api-key":"069be1af-309d-44a7-ada1-799230df9491","Connection":"keep-alive","User-Agent":"okhttp/2.4.0","Host":"titmouse:8080","x-custom-header":"custom-value","Accept-Encoding":"gzip"},"bodyLength":null,"bodySha1":null,"counter":31} --- END FAILED JSON PAYLOAD --- 13:26:44,199 INFO >> [ERROR] Expected JSON text field 'X-Custom-Header' with value 'custom-value' but was not found. Exception in thread "main" java.lang.AssertionError: Expected JSON text field 'X-Custom-Header' with value 'custom-value' but was not found. at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertNotNull(Assert.java:621) at io.apiman.test.common.util.TestPlanRunner.assertJson(TestPlanRunner.java:435) at io.apiman.test.common.util.TestPlanRunner.assertJson(TestPlanRunner.java:474) at io.apiman.test.common.util.TestPlanRunner.assertJsonPayload(TestPlanRunner.java:272) at io.apiman.test.common.util.TestPlanRunner.assertResponse(TestPlanRunner.java:232) at io.apiman.test.common.util.TestPlanRunner.runTest(TestPlanRunner.java:161) at io.apiman.test.common.util.TestPlanRunner.runTestPlan(TestPlanRunner.java:107) at io.apiman.test.suite.FullTestSuite.main(FullTestSuite.java:73)
It's because the header we send is X-Custom-Header and EAP reads that as x-custom-header. If we just send it all in lowercase then it can work in both WF and EAP.