| 1 |
from responses.matchers import query_param_matcher |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
API_VERSION = "1.23.0" |
| 6 |
ALL_RESPONSE_DOC = { |
| 7 |
"api": API_VERSION, |
| 8 |
"min_sdk_version": "1.0.0a6", |
| 9 |
"min_endpoint_version": "1.0.0a0", |
| 10 |
"git_sha": "80b2ef87bc546b3b386cf2e1d372f4be50f10bc4", |
| 11 |
} |
| 12 |
|
| 13 |
RESPONSES = ResponseSet( |
| 14 |
metadata={"api_version": API_VERSION}, |
| 15 |
default=RegisteredResponse( |
| 16 |
service="compute", |
| 17 |
path="/v2/version", |
| 18 |
method="GET", |
| 19 |
json=API_VERSION, # type: ignore[arg-type] |
| 20 |
), |
| 21 |
all=RegisteredResponse( |
| 22 |
service="compute", |
| 23 |
path="/v2/version", |
| 24 |
method="GET", |
| 25 |
json=ALL_RESPONSE_DOC, |
| 26 |
match=[query_param_matcher(params={"service": "all"})], |
| 27 |
), |
| 28 |
) |