Add server interop tests

This commit is contained in:
Lucio Franco
2019-09-06 21:40:59 -04:00
parent 0c682536b8
commit f74bba6858
5 changed files with 86 additions and 10 deletions
+17
View File
@@ -29,3 +29,20 @@ trap 'echo ":; killing test server"; kill ${SERVER_PID};' EXIT
--test_case=empty_unary,large_unary,client_streaming,server_streaming,ping_pong,\
empty_stream,status_code_and_message,special_status_message,unimplemented_method,\
unimplemented_service,custom_metadata $ARG
echo ":; killing test server"; kill ${SERVER_PID};
# run the test server
./target/debug/server & #$ARG --tls_cert_file $TLS_CRT --tls_key_file $TLS_KEY &
SERVER_PID=$!
echo ":; started tonic test server."
# trap exits to make sure we kill the server process when the script exits,
# regardless of why (errors, SIGTERM, etc).
trap 'echo ":; killing test server"; kill ${SERVER_PID};' EXIT
cargo run -p tonic-interop --bin client -- \
--test_case=empty_unary,large_unary,client_streaming,server_streaming,ping_pong,\
empty_stream
# status_code_and_message,special_status_message,unimplemented_method,\
# unimplemented_service,custom_metadata $ARG