(collection_name, transaction_id)
| 153 | |
| 154 | |
| 155 | def commit_transaction(collection_name, transaction_id): |
| 156 | url = ( |
| 157 | f"{base_url}/collections/{collection_name}/transactions/{transaction_id}/commit" |
| 158 | ) |
| 159 | response = requests.post(url, headers=generate_headers(), verify=False) |
| 160 | if response.status_code not in [200, 204]: |
| 161 | print(f"Error response: {response.text}") |
| 162 | raise Exception(f"Failed to commit transaction: {response.status_code}") |
| 163 | return None |
| 164 | |
| 165 | |
| 166 | def abort_transaction(collection_name, transaction_id): |
no test coverage detected