I'm tring to make a poc of karate, I tried put method and it works correctly, but I have an error when tring the post method.
The error that I have is :
13:40:44.929 [main] ERROR com.intuit.karate -
org.apache.http.client.CircularRedirectException: Circular redirect to 'http://l3vpn-api-x-
dev-achraf.afn-prv.opc-blue.tb.rns.equant.com/l3vpn/ppp-access/dry-run/', http call failed
after 731 milliseconds for url: https://l3vpn-api-x-dev-achraf.afn-prv.opc-
blue.tb.rns.equant.com/l3vpn/ppp-access/dry-run
13:40:44.945 [main] ERROR com.intuit.karate -
src/test/java/bvpn/happypath/happypath.feature:11
When method post
http call failed after 731 milliseconds for url: https://l3vpn-api-x-dev-achraf.afn-prv.opc-
blue.tb.rns.equant.com/l3vpn/ppp-access/dry-run
org.apache.http.client.CircularRedirectException: Circular redirect to 'http://l3vpn-api-x-
dev-achraf.afn-prv.opc-blue.tb.rns.equant.com/l3vpn/ppp-access/dry-run/'
src/test/java/bvpn/happypath/happypath.feature:11
http call failed after 731 milliseconds for url: https://l3vpn-api-x-dev-achraf.afn-prv.opc-
blue.tb.rns.equant.com/l3vpn/ppp-access/dry-run
org.apache.http.client.CircularRedirectException: Circular redirect to 'http://l3vpn-api-x-
dev-achraf.afn-prv.opc-blue.tb.rns.equant.com/l3vpn/ppp-access/dry-run/'
src/test/java/bvpn/happypath/happypath.feature:11
---------------------------------------------------------
feature: src/test/java/bvpn/happypath/happypath.feature
scenarios: 1 | passed: 0 | failed: 1 | time: 0,7723
---------------------------------------------------------
This is my karate test :
Feature: Happy path
Background:
Given url bvpn.url
* def body = read("classpath:bvpn/data/toto-payload.json")
Scenario: Test dry run post BVPN
Given path bvpn.path.post.dryRun
And request body
And headers headersJson
When method post
Then status 200
And print response
I'm confusing and don't know why I have this error.
Thanks for your help.