I am trying to use rstring option for http-check to validate if service is 100% operational.
What I am trying to do:
http-check expect rstring ^{"status":"UP","components"
Response from endpoint:
{"status":"UP","components":{"db":{"status":"UP","details":{"database":"Microsoft SQL Server","validationQuery":"isValid()"}},"diskSpace":{"status":"UP","details":{"total":57470816256,"free":16902025216,"threshold":10485760,"exists":true}},"hikariConnectionPool":{"status":"UP","details":{"activeConnections":0,"maxPoolSize":40}},"indexStatus":{"status":"GREEN"},"ping":{"status":"UP"}}
regex ^{“status”:“UP”,“components” should be ok, but I guess I am missing something.
1 post - 1 participant