Hi,
I am new to Zapier and try to make a Zapier CLI integration work.
I have created an integration with Zapier UI, converted it with zapier convert, and I can successfully “zappier push” it back.
However I have issues when doing “zapier test”:
- I receive a 401 error from my server when each unit test is run
- In fact, it is normal, because the unit test passes “Authorization: Bearer {{bundle.authData.access_token}}” litterally, without replacing the access_token with its actual value
- And the session authentication (which should return an access_token from the email/password) is not even called from the tests.
So I have 2 questions:
- how to manage the tests so that it uses a valid access_token?
- how to make sure that {{bundle.authData.access_token}} is replaced with its value?
These are probably dummy questions, but I could not find any answer in the documentation.
Many thanks!