Create access profiles from HTML5 workspace
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user