Skip to content

fix: validate start command port flag#277

Open
mugiwaraluffy56 wants to merge 1 commit intomicrocks:masterfrom
mugiwaraluffy56:fix/validate-start-port
Open

fix: validate start command port flag#277
mugiwaraluffy56 wants to merge 1 commit intomicrocks:masterfrom
mugiwaraluffy56:fix/validate-start-port

Conversation

@mugiwaraluffy56
Copy link
Copy Markdown
Contributor

microcks start now validates --port before it reads config or calls the container driver. Invalid values such as abc, 0, negative numbers, and values above 65535 return a clear command error instead of being passed into Docker or Podman.

Added unit coverage for valid boundary ports and invalid inputs. Tested with go test ./... and make build-binaries.

Signed-off-by: puneeth_aditya_5656 <myakampuneeth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant