(client, command_args, off=False)
| 902 | |
| 903 | @staticmethod |
| 904 | def configure_fail_point(client, command_args, off=False): |
| 905 | cmd = {"configureFailPoint": "failCommand"} |
| 906 | cmd.update(command_args) |
| 907 | if off: |
| 908 | cmd["mode"] = "off" |
| 909 | cmd.pop("data", None) |
| 910 | client.admin.command(cmd) |
| 911 | |
| 912 | @contextmanager |
| 913 | def fail_point(self, command_args): |