Add HTML5 access profile workspace
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user