aviaviavi / curl-runnings

A declarative test framework for quickly and easily writing integration tests against JSON APIs.
MIT License
158 stars 13 forks source link

concatinating urls with anchors #47

Closed ghost closed 4 years ago

ghost commented 4 years ago

https://github.com/aviaviavi/curl-runnings/blob/9f08b25232c28c437454614c989659602cbfa18e/examples/interpolation-spec.yaml#L31

Hi, i am wondering if there is a way to get around using anchors in urls right now this doesn't work:

aviaviavi commented 4 years ago

Hi @Rashadse, unfortunately the functionality you're describing is not available in curl-runnings. Anchors are at the yaml level, which doesn't support anchor concatenation. Currently, by the time curl-runnings loads your yaml spec, the anchor information is gone.

If you want to have a bit more flexibility for general programming inside of your curl-runnings spec, I can think of two immediate options:

I'll think about ways we could support this behavior, there are a few options to get this implemented in curl-runnings.

ghost commented 4 years ago

Big thanks, please let me know if you implement this in curl-runnings.