module documentation
Remote API test utilities.
| Class | |
Fake cURL object. |
| Class | |
Test version of RAPI client. |
| Exception | |
Dedicated error class for test utilities. |
| Function | |
Verifies opcode parameters according to their definition. |
| Function | |
Verifies opcode results used in tests (e.g. in a mock). |
| Class | _ |
Records all called LUXI client methods. |
| Class | _ |
Mocking out the RAPI server parts. |
| Class | _ |
Mocked LUXI transport. |
| Function | _ |
Formats HTTP headers. |
| Function | _ |
Tries to get an opcode class based on its OP_ID. |
| Function | _ |
Gets the path and query from a URI. |
| Function | _ |
Hides Ganeti-internal exceptions, see VerificationError. |
| Function | _ |
Wrapper for ignoring errors.RapiTestResult. |
| Constant | _URI |
Undocumented |
Verifies opcode parameters according to their definition.
| Parameters | |
| op | Opcode ID (OP_ID attribute), e.g. OP_CLUSTER_VERIFY |
| data:dict | Opcode parameter values |
| Raises | |
VerificationError | Parameter verification failed |
Verifies opcode results used in tests (e.g. in a mock).
| Parameters | |
| op | Opcode ID (OP_ID attribute), e.g. OP_CLUSTER_VERIFY |
| result | Mocked opcode result |
| Raises | |
VerificationError | Return value verification failed |