Skip to content

Commit

Permalink
fix issue with the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omer9564 committed Oct 29, 2024
1 parent f8eb9d9 commit 013a2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions horizon/tests/test_enforcer_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,3 +554,5 @@ def post_endpoint():
response = post_endpoint()
assert response.status_code == 504
assert "Data Manager request timed out" in response.text

sidecar_config.ENABLE_EXTERNAL_DATA_MANAGER = False
3 changes: 2 additions & 1 deletion horizon/tests/test_local_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def test_list_role_assignments_external_data_store() -> None:
with aioresponses() as m:
# The policy store client of the data manager has base url configured, this means that the url
# we need to mock is '/v1/facts/role_assignments' - without the base url server
data_manager_url = f"/v1/facts/role_assignments?page=1"
data_manager_url = f"/v1/facts/role_assignments?page=1&per_page=30"
logger.info("mocking data manager url: {}", data_manager_url)
# Test valid response from OPA
m.get(
Expand Down Expand Up @@ -164,3 +164,4 @@ async def test_list_role_assignments_external_data_store() -> None:
"tenant": "tenant1",
"resource_instance": "resource_instance1",
}
sidecar_config.ENABLE_EXTERNAL_DATA_MANAGER = False

0 comments on commit 013a2cb

Please sign in to comment.