(self, command_args)
| 104 | |
| 105 | @contextmanager |
| 106 | def fail_point(self, command_args): |
| 107 | cmd_on = dict(configureFailPoint="failCommand", appName="auth_oidc") |
| 108 | cmd_on.update(command_args) |
| 109 | client = MongoClient(self.uri_admin) |
| 110 | client.admin.command(cmd_on) |
| 111 | try: |
| 112 | yield |
| 113 | finally: |
| 114 | client.admin.command( |
| 115 | "configureFailPoint", cmd_on["configureFailPoint"], mode="off", appName="auth_oidc" |
| 116 | ) |
| 117 | client.close() |
| 118 | |
| 119 | |
| 120 | class TestAuthOIDCHuman(OIDCTestBase): |
no test coverage detected