Skip to content
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

k6 REST API enhancement #3239

Open
Tracked by #3497
deeboh opened this issue Jul 28, 2023 · 1 comment
Open
Tracked by #3497

k6 REST API enhancement #3239

deeboh opened this issue Jul 28, 2023 · 1 comment
Labels

Comments

@deeboh
Copy link

deeboh commented Jul 28, 2023

Feature Description

Hello. Currently the REST API supports the /v1/status uri it returns data json object with runtime parameters for/from the script under execution. the attributes returns contain among other items, vus and vus-max are returned.

I'm looking for a simple way to view other script options such as thresholds, exec, executor, tags, env etc... ultimately my goal will be to provide a poor man's runtime verifications (lint, unit test etc) to enforce use of certain attributes. It would be nice to use the rest api rather than standing up a framework like JEST or others of this type.

for reference here are a couple of community posts - rest api use question, k6 Unit Testing

best

Suggested Solution (optional)

No response

Already existing or connected issues / PRs (optional)

No response

@olegbespalov
Copy link
Contributor

Hi @deeboh !

Sorry for the late response 😢

Honestly, we have no plans to extend the existing Rest API v1. and there are some plans for its deprecation #995. Moreover, we see some task on our plate (like distributed execution #3218) that also requires API changes, and that will probably be the best time to do that.

However, if you want to contribute and open a PR that won't be big enough, we could consider it. The other possible way is to create the xk6 extension that could start another HTTP server and provide the details you need.

Hope that somehow answers and maybe even helps 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants