eykrehbein / strest

⚡️ CI-ready tests for REST APIs configured in YAML
MIT License
1.74k stars 59 forks source link

Define Environment #66

Closed jgroom33 closed 6 years ago

jgroom33 commented 6 years ago

This would allow the defined env vars to be stored in an initial test file.

version: 1
environment:
  STREST_URL: https://jsonplaceholder.typicode.com
requests:
  environment:
    url: Env(STREST_URL)/todos/1
    method: GET
eykrehbein commented 6 years ago

Would they be defined as a real Env variable or are they just a "placeholder" for a non-existing Env var?

jgroom33 commented 6 years ago

placeholder is probably fine. I don't see a need to write them down to the host

eykrehbein commented 6 years ago

Currently working on this 👍