I have this:
Background:
* url 'http://localhost:15672/api/exchanges/%2F/my_exchange'
Scenario:
Given path 'publish'
Problem here is that the url is being resolved as:
http://localhost:15672/api/exchanges///my_exchange/publish
instead of:
http://localhost:15672/api/exchanges/%2F/my_exchange/publish
Thanks
EDITED:
I will improve the question.
I uploaded a very simple project here: https://github.com/italktothewind/karate-encoding
It has a wiremock listening to /bar/%2F/foo
This feature is working:
Feature: Working example
Scenario:
Given url 'http://localhost:1081/bar/%2F/foo'
When method get
Then status 200
But this feature is not working (I put an @ignore flag in the project so it can be built successfully):
Feature: Non working example
Background:
* url 'http://localhost:1081/bar/%2F'
Scenario:
Given path 'foo'
When get
Then status 200
The difference between the two features is the use of url
and path
.