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

feat: network test debugger #57

Merged
merged 1 commit into from Jul 18, 2019

Conversation

@FauxFaux
Copy link
Collaborator

commented Jul 18, 2019

What this does

Makes the jar executable, so we can add debugging commands like network-test, which fetches some data from an arbitrary url:

% java -jar build/libs/snyk-java-runtime-agent.jar network-test https://hello.fau.xxx/
2019-07-18T07:26:47.490Z: Connection test
2019-07-18T07:26:47.491Z: Testing connection to: https://hello.fau.xxx/
2019-07-18T07:26:47.491Z: Protocol: https
2019-07-18T07:26:47.566Z: Connection ready.
2019-07-18T07:26:47.669Z: Connection initiated.
2019-07-18T07:26:47.682Z: Response code: 200
2019-07-18T07:26:47.682Z: Attempting to read.
2019-07-18T07:26:47.683Z: Response prefix: Hello, world!
2019-07-18T07:26:47.684Z: Complete.

@FauxFaux FauxFaux merged commit b6ca4f0 into master Jul 18, 2019

3 checks passed

Travis CI - Pull Request Build Passed
Details
security/snyk - tools/simplest-test/build.gradle (shaninja) [dev] No manifest changes detected
security/snyk - tools/simplest-test/build.gradle (test) No manifest changes detected

@FauxFaux FauxFaux deleted the feat/network-test branch Jul 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.