-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Alternate Environments Format #67
Comments
Hi @pfunk1978 The feature request seems like a very logical flow. A couple of questions:
|
Hola @thim81, I should also point out that the collections endpoint for postman API also returns an unusable json struct, which I didn't realize when I first wrote the ticket. Currently I'm running curl as such and piping through jq to get the proper structure:
I have admin over my CI so I can install jq, but not everyone has that luxury. Maybe it would be better to be able to parse the above structs natively. IMHO adding in postman connectivity seems like bloat to me. |
Hola @pfunk1978 Thanks for coming back with your input and based on it, it seems that feature can be scoped to properly parsing the Postman env file in a native manner. As soon as I have some time, I'll review the API response to see how we can transform the Env response or support it natively. Adding Postman API does not bring much added value, since the security and targeting which env to download would only make it more complicated and an additional hurdle. |
Hola @pfunk1978 The PR is in the making. I have made simple detection that will transform API environment & collection structure in a regular structure, by simply removing the wrapping element. |
The PR has landed and the support for Postman API collection & environment files will be part of the upcoming postman-to-k6 release. |
Closing the issue, since the latest postman-to-k6 version (1.8.5) contains this enhancement. |
As a CICD user I wish to pull my environments file from the following url and use it as the environments variables for conversion
https://api.getpostman.com/environment/{UUID}
Issue:
Environments file retrieved from the postman api differs from the environments file from a postman export process. The file retrieved from the API call has the following structure
While the file from a regular export process has the following structure
Currently I'm getting a
environment.values is not iterable
errorThe text was updated successfully, but these errors were encountered: