示例#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']