uber / kraken

P2P Docker registry capable of distributing TBs of data in seconds
Apache License 2.0
6.13k stars 421 forks source link

Refactor readiness tests not to use regex #383

Closed Anton-Kalpakchiev closed 2 days ago

Anton-Kalpakchiev commented 4 days ago

The refactored tests assert that when a service's readiness endpoint fails, it returns an error including the URL used to call the endpoint. Currently, the URL is matched against a regex, which is not ideal. This PR replaces the regex with a normal string, which is much easier to read.