How to set BearerAuth token for test #913
-
Im trying to pass a fixed token for testing in CI. According to docs https://specmatic.in/documentation/authentication.html#bearer-real it should be possible by setting the In the API docs I have:
I've tried it multiple ways:
But, none of these worked. When I run Specmatic test (the
Thanks! Update: Im using some old version of the Specmatic junit support in my project
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've updated to version But, only one way with the environment variable set in the terminal. However I would expect it also works with either set the property from the test |
Beta Was this translation helpful? Give feedback.
@tkrisztian95 Apologies for the delay in response. Adding link to latest documentation here - https://specmatic.in/documentation/authentication.html#bearer. Thanks.