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

Need to call grpc service with custom header as Metadata #35

Closed
sujitkirve opened this issue Sep 19, 2022 · 6 comments · Fixed by mainframeindustries/karate-grpc#1 or #40
Closed

Comments

@sujitkirve
Copy link

sujitkirve commented Sep 19, 2022

Hi Team,

Need to call grpc service with custom header (JWT token) as metadata along with request, so anyone know how can i pass it through karate?

@sujitkirve sujitkirve changed the title Need to call grpc service with customer header as Metadata Need to call grpc service with custom header as Metadata Sep 19, 2022
@sujitkirve
Copy link
Author

@thinkerou @ericdriggs Can you please help here.

@kenil-fadia
Copy link

Hi @thinkerou any update on this one?

@thinkerou
Copy link
Member

thanks everyone!
I have no time, sorry!
welcome commit pr, thanks!

@ericdriggs
Copy link
Contributor

Recommend: https://github.com/fullstorydev/grpcurl

@kenil-fadia
Copy link

@sujitkirve @thinkerou I have found a solution, i will create a PR for this soon

pazaan added a commit to mainframeindustries/karate-grpc that referenced this issue Aug 17, 2023
Passes header configuration from Karate's ScenarioBridge to the gRPC
client calls (when the 3rd argument to call() is supplied).
The test server also looks for a specific header called
`karate-test-header` and puts the value in a response header called
`karate-test-server-header` in order to provide a test scenario in
`helloworld-raw.feature`.

* Fixes pecker-io#35
@pazaan
Copy link
Contributor

pazaan commented Aug 17, 2023

Opened #40 to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants