Revert "Tweak check API path" (#2718)

This reverts commit e30171746bb6170fa0a8897b73c54baf4844c740.
This commit is contained in:
Pascal Vizeli 2021-03-15 10:16:32 +01:00 committed by GitHub
parent 75ab6eec43
commit 55382d000b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -228,7 +228,9 @@ class RestAPI(CoreSysAttributes):
self.webapp.add_routes(
[
web.get("/resolution/info", api_resolution.info),
web.post("/resolution/check/{check}", api_resolution.options_check),
web.post(
"/resolution/check/{check}/options", api_resolution.options_check
),
web.post(
"/resolution/suggestion/{suggestion}",
api_resolution.apply_suggestion,

View File

@ -109,11 +109,11 @@ async def test_api_resolution_check_options(coresys: CoreSys, api_client):
assert free_space.enabled
await api_client.post(
f"/resolution/check/{free_space.slug}", json={"enabled": False}
f"/resolution/check/{free_space.slug}/options", json={"enabled": False}
)
assert not free_space.enabled
await api_client.post(
f"/resolution/check/{free_space.slug}", json={"enabled": True}
f"/resolution/check/{free_space.slug}/options", json={"enabled": True}
)
assert free_space.enabled