Add HTML5 access profile workspace
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-21 19:29:35 +03:00
parent 29bbe1dca6
commit 2f7db03001
6 changed files with 420 additions and 0 deletions
+20
View File
@@ -1610,6 +1610,26 @@ def test_import_supports_structure_only_indexing(monkeypatch, tmp_path: Path):
assert captured_extension_call["request"].dry_run is True
assert captured_extension_call["request"].payload["profile"]["roles"] == ["Роль.Менеджер"]
access_page = client.get(f"/html5/projects/{project_id}/access", params={"profile": "НовыйПрофильHTTP"})
assert_html5_response_contract(
access_page,
'data-html5-page="access"',
"НовыйПрофильHTTP",
"План публикации",
"Dry-run в 1С",
full_page=True,
)
access_plan = client.get(
f"/html5/projects/{project_id}/access/profiles/{quote('НовыйПрофильHTTP')}/plan"
)
assert_html5_response_contract(access_plan, "CREATE_ACCESS_PROFILE", "ADD_ROLE_TO_PROFILE")
access_dry_run = client.post(
f"/html5/projects/{project_id}/access/profiles/{quote('НовыйПрофильHTTP')}/publish-dry-run"
)
assert_html5_response_contract(access_dry_run, "Ответ расширения", "READY", "access.profile.apply")
tree = client.get(f"/projects/{project_id}/metadata/tree")
assert tree.status_code == 200
root = tree.json()["root"]