Repository navigation
fix: honor the configured Keploy port - #130
Open
Pranav-Bobde wants to merge 1 commit into
Open
Pranav-Bobde wants to merge 1 commit into
Pranav-Bobde wants to merge 1 commit into
Conversation
Signed-off-by: Pranav-Bobde <bobdep31@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The README documents
RunOptions.portas the port Keploy runs on, but the legacyTestrunner inkeployCli.tsignored it. It always startedkeploybin testwith--port 6789and sent every GraphQL request to port 6789, even when the caller set another port.Change
Resolve the port once per run: an unset port or
0keeps the default, 6789, as before. An explicit port must be an integer from 1 to 65535, since it goes into the shell command, and anything else fails before Keploy starts. The resolved port is passed to the CLI and to every GraphQL request, including shutdown.Checked
test/legacy-cli.test.mjsstub the process launch and GraphQL calls, and check the command and request URLs without starting Keploy.port: 7211, the run used--port 6789before this change and uses 7211 after it.0both still use 6789.-1,65536,1.5,NaN,'',false,nulland a string with shell characters are rejected before launch.bun run buildpasses, andnode --test test/*.test.mjspasses all 54 tests.