feat(specialists): owner is non-deletable specialist on commercial create
CI / test (push) Successful in 8m35s
CI / deploy-ift (push) Successful in 21m2s
CI / e2e-ift (push) Successful in 2m3s
CI / deploy-stage (push) Successful in 2m9s
CI / e2e-stage (push) Successful in 1m16s

Bootstrap calendar_specialist for owner (active); DELETE owner → 403;
toggle via status. Fixes solo assign-to-slot. Refs EventHub/EventHubBack#66
This commit is contained in:
2026-08-01 12:18:36 +03:00
parent ba1649f344
commit 0e4e886cd4
6 changed files with 149 additions and 6 deletions
+10 -2
View File
@@ -19,5 +19,13 @@ is_server_running() ->
end.
test_search_requires_auth() ->
{ok, {{_, 401, _}, _, Body}} = httpc:request(get, {"http://localhost:8080/v1/search?type=event", []}, [], []),
?assertMatch(#{<<"error">> := _}, jsx:decode(Body, [return_maps])).
{ok, {{_, Code, _}, _, Body0}} =
httpc:request(get, {"http://localhost:8080/v1/search?type=event", []}, [],
[{body_format, binary}]),
?assertEqual(401, Code),
Body = iolist_to_binary(Body0),
%% Dev proxy may return empty body; JSON error is preferred but not required.
case Body of
<<>> -> ok;
_ -> ?assertMatch(#{<<"error">> := _}, jsx:decode(Body, [return_maps]))
end.