Skip to content

This is an example of how to use httpyac for the gRPC bidirectional stream testing.

Notifications You must be signed in to change notification settings

geekbrother/httpyac-grpc-bidi-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gRPC bidirectional stream testing using httpyac tool

What the purpose of this

The examples above demonstrate how the httpyac can be used in the automated CI testing using the httpyac CLI and exit codes check.

Test examples

This is an example of how to use httpyac for the gRPC bidirectional stream testing.

To run the tests you need to clone the repository, install httpyac, and execute the following command:

httpyac *.grpc --all

This will run testbidiFail.grpc and testbidiSuccess.grpc test files.

testbidiSuccess.grpc

Demonstrates an success example of equality test for the gRPC bidirectional stream messages send and recieved. Those tests will pass in case of grpcb.in hello.proto test endpoint is alive.

The command will exit with 0 code in case of success.

testbidiFail.grpc

Demonstares how the test fail when one of the recievied messages is not equal to the expected one.

This test will exit with code greater than 0.

Check the exit code

To check the exit code you can run the echo $? command which shows the last command exit code.

About

This is an example of how to use httpyac for the gRPC bidirectional stream testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published