Create access profiles from HTML5 workspace
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-21 19:35:04 +03:00
parent 2f7db03001
commit 87236606d1
5 changed files with 206 additions and 2 deletions
+23
View File
@@ -1617,9 +1617,32 @@ def test_import_supports_structure_only_indexing(monkeypatch, tmp_path: Path):
"НовыйПрофильHTTP",
"План публикации",
"Dry-run в 1С",
"Новый профиль доступа",
full_page=True,
)
html5_preview = client.post(
f"/html5/projects/{project_id}/access/profile-preview",
data={
"name": "HTML5ПрофильHTTP",
"target_objects": "HTTPСервис.ПубличныйAPI",
"permissions": "read",
"source_user": "ivanov",
},
)
assert_html5_response_contract(html5_preview, "предпросмотр", "Роль.Менеджер", "ПрофильГруппыДоступа.HTML5ПрофильHTTP")
html5_apply = client.post(
f"/html5/projects/{project_id}/access/profiles",
data={
"name": "HTML5ПрофильHTTP",
"target_objects": "HTTPСервис.ПубличныйAPI",
"permissions": "read",
"source_user": "ivanov",
},
)
assert_html5_response_contract(html5_apply, "сохранено", "HTML5ПрофильHTTP", "CREATE_ACCESS_PROFILE")
access_plan = client.get(
f"/html5/projects/{project_id}/access/profiles/{quote('НовыйПрофильHTTP')}/plan"
)