You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ENVIRONMENT=local runn run example.yml --debug
Run "dump" on "example".steps[0]
http://localhost:3000/api
Run "service" on "example".steps[1]
-----START HTTP REQUEST-----
GET %7B%7B%20vars.env.endpoint%20%7D%7D/users/me HTTP/1.1
-----END HTTP REQUEST-----
F
1) example.yml 7d163e60ed7a29276077adb17f2b6c37f8239391
Failure/Error: http request failed on "example".steps[1]: Get "%7B%7B%20vars.env.endpoint%20%7D%7D/users/me": unsupported protocol scheme ""
Failure step (example.yml):
9 - service:
10 /users/me:
11 get:
12 test: current.res.status == 200
1 scenario, 0 skipped, 1 failure
Specifically, using '{{ vars.env.endpoint }}' directly in the endpoint of runners.service doesn't seem to work as expected.
The expected behaviour is that vars.env.endpoint is correctly expanded in service.endpoint and it becomes possible to set the endpoint dynamically based on env.
If there is a solution to this problem, or an alternative way to dynamically set the endpoint using vars, I would appreciate your advice.
The text was updated successfully, but these errors were encountered:
I've run into an issue when trying to use
vars
in theendpoint
ofrunners
in the following script:env/local.json
env/production.json
example.yml
The results obtained from execution:
Specifically, using
'{{ vars.env.endpoint }}'
directly in theendpoint
ofrunners.service
doesn't seem to work as expected.The expected behaviour is that
vars.env.endpoint
is correctly expanded inservice.endpoint
and it becomes possible to set the endpoint dynamically based onenv
.If there is a solution to this problem, or an alternative way to dynamically set the
endpoint
usingvars
, I would appreciate your advice.The text was updated successfully, but these errors were encountered: