Return the current controller hostname/IP from any compute

This commit is contained in:
grossmj
2021-10-21 21:38:36 +10:30
parent dddfe7c531
commit bb15b13a9d
18 changed files with 215 additions and 198 deletions

View File

@ -29,7 +29,7 @@ async def test_version_output(app: FastAPI, client: AsyncClient) -> None:
response = await client.get(app.url_path_for("get_version"))
assert response.status_code == status.HTTP_200_OK
assert response.json() == {'local': True, 'version': __version__}
assert response.json() == {'controller_host': None, 'local': True, 'version': __version__}
async def test_version_input(app: FastAPI, client: AsyncClient) -> None: