dzbarsky / rules_itest

Bazel rules for integration testing services
MIT License
18 stars 6 forks source link

Implement service control RPCs #23

Closed pyrocat101 closed 3 months ago

pyrocat101 commented 3 months ago

This PR introduces svcctl to rules_itest. If service_test has allow_svcctl attribute set to True, then SVCCTL_PORT env var is available to the test runner, where the test can send HTTP request to HTTP server listening on IPv4 loopback at the specified port to start / stop / healthcheck / wait the services. See the docstring on the test for example of the supported APIs.