-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix: Validate headless and host options #2627
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
Conversation
Another problem is, what if it is not an http test at all? Maybe this solution is more problematic than I thought... |
Then this is trickier. We could have a list of supported protocols (e.g. |
I updated the PR with one more approach. It uses |
I wouldnt necessarily call it "fine" :) but the current design makes it really hard to fix :-/ I wonder... Perhaps HttpUser could validate its |
This PR was closed because it has been stalled for 10 days with no activity. |
Fixes #2575
Based on the discussion in #2610, validates the
--headless
and--host
options.--headless
is passed, then--host
is required--host
value doesn't include protocol, an error message is printed--headless
without--host
These changes are only for the CLI. I'll make a separate PR for the webui.
If there's a better approach or anything to improve, I'm happy to.