Skip to content
Snippets Groups Projects
Commit 668fb3aa authored by jurgenhaas's avatar jurgenhaas
Browse files

bitegra/infrastructure#13 Add support for json response check on heartbeat

parent 058f09c8
No related branches found
No related tags found
No related merge requests found
Pipeline #29752 passed
......@@ -39,7 +39,13 @@
{% endfor %}
{% endif %}
check.response.status: 200
{% if site.regex is defined %}
check.response.body: '{{ site.regex }}'
{% endif %}
{% if site.check_response is defined %}
check.response:
{{ site.check_response|to_nice_yaml|indent(4, false) }}
{% endif %}
schedule: '@every 90s'
{% endif %}
{% endfor %}
......@@ -119,7 +125,11 @@
headers:
Authorization: Basic {{ (site.ocs.username + ':' + site.ocs.password) | b64encode }}
check.response.status: 200
check.response.body: '"status":"ok"'
check.response:
json:
- condition:
equals:
ocs.meta.status: ok
{% endif %}
{% endfor %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment