tests/functional/services/compute/v2/test_lock_endpoint.py
raw| 1 | import globus_sdk |
| 2 | from globus_sdk.testing import load_response |
| 3 | |
| 4 | |
| 5 | def test_lock_endpoint(compute_client_v2: globus_sdk.ComputeClientV2): |
| 6 | meta = load_response(compute_client_v2.lock_endpoint).metadata |
| 7 | |
| 8 | res = compute_client_v2.lock_endpoint(endpoint_id=meta["endpoint_id"]) |
| 9 | |
| 10 | assert res.http_status == 200 |
| 11 | assert res.data["endpoint_id"] == meta["endpoint_id"] |