checkly / public-roadmap

Checkly public roadmap. All planned features, updates and tweaks.
https://checklyhq.com
37 stars 7 forks source link

Environment variable support in assertion targets #315

Open kgapos opened 1 year ago

kgapos commented 1 year ago

Is your feature request related to a problem? Please describe. This is not a problem or bug. I would characterize it as a feature gap. Environment variables should be accessible in the target of an assertion as illustrated below. image

Describe the solution you'd like I should be able to use environment variables in assertions. This is especially powerful considering that I can set environment variables through code snippets in setup & teardown. For example, that would allow someone to assert that the value of a timestamp in a json response, is within a calculated timespan.

Describe alternatives you've considered There are no alternatives to that as far as I know. You have to compromise with less robust assertions. Please correct me if I'm wrong.

tnolet commented 1 year ago

hey @kgapos we don't support this now in the UI. However, you could add a teardown script with an expect function that actually does this. Have a look here https://www.checklyhq.com/docs/api-checks/teardown-script-examples#perform-additional-assertions

Also, we just moved our public roadmap to https://feedback.checklyhq.com/ and are archiving this repo. If you want, you can resubmit it over at https://feedback.checklyhq.com/