147f04c9a2
Persist aggregates and server security groups in domain tables, add Cinder quota show from DB-backed defaults, align unit tests with OpenStack series, auto-pick Keystone :5000/:15000 for smoke, and document test locations plus 6514/6514 results.
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
"""Web asset loading tests."""
|
|
|
|
from app.web.assets import console_html
|
|
|
|
|
|
def test_console_html_is_read_from_disk() -> None:
|
|
html = console_html()
|
|
assert "OpenStack API Emulator" in html
|
|
assert "workspace-brand-stack" in html
|
|
assert "#ED1C24" in html or "ED1C24" in html
|
|
assert 'id="catalog-drawer"' in html
|
|
assert "catalog-drawer" in html
|
|
assert 'id="catalog-coverage"' in html
|
|
assert "Implementation coverage" in html
|
|
for required_id in (
|
|
"method-desc",
|
|
"catalog-meta",
|
|
"stat-runtime",
|
|
"stat-catalog",
|
|
"stat-cluster-name",
|
|
"stat-nodes",
|
|
"stat-qemu",
|
|
"stat-lxc",
|
|
"implemented-only",
|
|
"btn-contract-apply",
|
|
"btn-catalog-refresh",
|
|
):
|
|
assert f'id="{required_id}"' in html, required_id
|
|
assert "Apply as runtime" in html
|
|
assert "yoga" in html and "dalmatian" in html
|
|
assert 'id="help-drawer"' in html
|
|
assert 'id="help-badge"' in html
|
|
assert 'id="data-badge"' in html
|
|
assert 'id="data-drawer"' in html
|
|
assert 'id="data-panel"' in html
|
|
assert 'id="ui-modal"' in html
|