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