Skip to content

Commit

Permalink
fix test (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan authored Dec 14, 2021
1 parent 902a7ae commit bdd2f6f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/integration/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,14 @@ async def test_get_capacity_forbidden(
) as resp:
assert resp.status == HTTPForbidden.status_code, await resp.text()
result = await resp.json()
assert result == {
"missing": [
{"uri": f"cluster://{cluster_name}/access", "action": "read"},
{"uri": f"job://{cluster_name}/{user.name}", "action": "read"},
]
}
assert {
"uri": f"job://{cluster_name}/{user.name}",
"action": "read",
} in result["missing"]
assert {
"uri": f"cluster://{cluster_name}/access",
"action": "read",
} in result["missing"]


class TestTopApi:
Expand Down

0 comments on commit bdd2f6f

Please sign in to comment.