randomicu-archive / randomicu

Different text utilities for you. Randomicu exposes free API and could be helpful for QA engineers or everyone who needs fake data.
https://random.icu
The Unlicense
0 stars 0 forks source link

Clean details map in HealthCheck #219

Closed pythoninja closed 3 years ago

pythoninja commented 3 years ago

Sometimes details map can contain an error message when the fakedata-backend is healthy.

How to reproduce:

  1. Shutdown fakedata-backend with command docker stop fakedata-backend
  2. Go to /_/health
  3. Up fakedata-backend
  4. Go to /_/health

Actual result: Error message is present in details section.

Expected result: No error messages.

Code: https://github.com/randomicu/randomicu/blob/a556cf281217fbb395197b04d5d02cc965f0bfc9/src/main/java/icu/random/util/healthcheck/FakedataHealthIndicator.java#L56