Grpc tests headers definition in yaml #118
-
Hi everyone, version: "1.0"
name: gRPC service template
env:
host: localhost:9090
tenant: tenant1
tests:
example:
name: Employees tests
continueOnFail: true
steps:
- name: Get Employee by last name
grpc:
proto:
- public/EmployeeService.proto
host: ${{env.host}}
service: com.atoss.template.servicetemplate.adapter.handler.grpc.employee.v1.EmployeeService
method: getEmployeesByLastName
metadata:
- X-Tenant-ID: tenant1
data:
lastName: Babanu
headers:
X-Tenant-ID: {{env.tenant}}
check:
jsonpath:
$.firstName: "Fane" But the header is not sent with the request. I was just wondering if stepci support defining headers for gRPC calls or maybe there is something wrong on my definition. Thank you in advance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Have you tried this? version: "1.0"
name: gRPC service template
env:
host: localhost:9090
tenant: tenant1
tests:
example:
name: Employees tests
continueOnFail: true
steps:
- name: Get Employee by last name
grpc:
proto:
- public/EmployeeService.proto
host: ${{env.host}}
service: com.atoss.template.servicetemplate.adapter.handler.grpc.employee.v1.EmployeeService
method: getEmployeesByLastName
metadata:
X-Tenant-ID: tenant1
data:
lastName: Babanu
check:
jsonpath:
$.firstName: "Fane" |
Beta Was this translation helpful? Give feedback.
-
Hi @mishushakov, Did you find some time to look at this? We would like to use StepCI and this is the only point that preventing us from doing that. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem |
Beta Was this translation helpful? Give feedback.
-
Fixed in the latest release of cool-grpc 1.1.6 Please update your dependencies 😉 |
Beta Was this translation helpful? Give feedback.
-
Hey Amr @EGYG33K and @boozilla |
Beta Was this translation helpful? Give feedback.
Fixed in the latest release of cool-grpc 1.1.6
Please update your dependencies 😉