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: grpc sample application #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mastersans
Copy link

Added a Sample Grpc Application as part of test pipeline issue: keploy/keploy#1870

cc @Swpn0neel @Sonichigo @shivamsouravjha

@Swpn0neel
Copy link

Kindly add the README with well-documented instructions about how to run and test your app. And, also generate the testcases with Keploy!

Copy link
Member

@Sonichigo Sonichigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mastersans please add the readme file

@mastersans
Copy link
Author

@Sonichigo @Swpn0neel Apologies for the delay. I'll get it done by tomorrow.

@mastersans
Copy link
Author

Hi @Sonichigo @Swpn0neel I need a little guidence regarding the keploy recording I am doing following steps:

  • generating a server binary from main.go
  • running keploy record -c "./grpc" which runs keploy and starts listening on port 50051
  • but when i run the client code the client and server are able to talk but no message is recorded

I hope I'm not missing anything, i also tried with containerizing the server and running keploy still the same result

@Sonichigo
Copy link
Member

Sonichigo commented Jul 31, 2024 via email

@mastersans
Copy link
Author

mastersans commented Jul 31, 2024

Does the app works fine without keploy? Can you provide the steps to run
the application?

On Wed, 31 Jul, 2024, 12:28 am Sanskar Sharma, @.***>
wrote:

Hi @Sonichigo https://github.com/Sonichigo @Swpn0neel
https://github.com/Swpn0neel I need a little guidence regarding the
keploy recording I am doing following steps:

  • generating a server binary from main.go
  • running keploy record -c "./grpc" which runs keploy and starts
    listening on port 50051
  • but when i run the client code the client and server are able to
    talk but no message is recorded

I hope I'm not missing anything, i also tried with containerizing the
server and running keploy still the same result


Reply to this email directly, view it on GitHub
#109 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMVGLXVQU56RCBZPILATY4DZO7O43AVCNFSM6AAAAABLLESSNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJZGAYDQNZSGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Sonichigo @Swpn0neel we can use go run main.go to start the server, and use the StartClient() function inside client.go to start the client,
The client will send 1 as request and get John as response.
edit: the application is working with keploy too but no testcase are recorded for the exchange between the client and server , i also tried for https://github.com/grpc/grpc-go/tree/master/examples/helloworld same result here as well

@mastersans
Copy link
Author

@Sonichigo @Swpn0neel anything that you think should help me out with this one.?

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.

3 participants