Exemple #1
0
 def unset_failures(node, module, probe):
     requests.delete(Admin._url(node, f'failure-probes/{module}/{probe}'))
Exemple #2
0
 def set_exception(node, module, probe):
     requests.post(
         Admin._url(node, f'failure-probes/{module}/{probe}/exception'))
Exemple #3
0
 def set_terminate(node, module, probe):
     requests.post(
         Admin._url(node, f'failure-probes/{module}/{probe}/terminate'))
Exemple #4
0
 def set_delay(node, module, probe):
     requests.post(
         Admin._url(node, f'failure-probes/{module}/{probe}/delay'))
Exemple #5
0
 def list_failure_probes(node):
     return requests.get(Admin._url(node, 'failure-probes')).json()
Exemple #6
0
 def is_enabled(node):
     return requests.get(Admin._url(node,
                                    'failure-probes')).json()['enabled']