Files
ess-helm/tests/integration/test_element_web.py
T

20 lines
798 B
Python

# Copyright 2024 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
import pytest
from .fixtures import ESSData
from .lib.utils import aiottp_get_json, value_file_has
@pytest.mark.skipif(value_file_has("elementWeb.enabled", False), reason="ElementWeb not deployed")
@pytest.mark.asyncio_cooperative
async def test_element_web_can_access_config_json(ingress_ready, generated_data: ESSData, ssl_context):
await ingress_ready("element-web")
json_content = await aiottp_get_json(f"https://element.{generated_data.server_name}/config.json", ssl_context)
assert "element_call" in json_content
assert json_content["element_call"]["url"] == f"https://call.{generated_data.server_name}"
assert json_content["element_call"]["use_exclusively"]