test(api): CT на портах 18080/18445 вне docker-dev [skip ci]

This commit is contained in:
2026-07-15 17:10:19 +03:00
parent 6441be61b1
commit f7f0038556
6 changed files with 87 additions and 24 deletions
+3 -2
View File
@@ -63,7 +63,8 @@ init_per_suite(Config) ->
ct:pal("Local mode: application already running"),
[{started_by_us, false} | Config];
false ->
ct:pal("Local mode: starting application..."),
ct:pal("Local mode: starting application on CT ports (18080/18445)..."),
ok = api_test_runner:ensure_local_app_ports(),
{ok, _} = application:ensure_all_started(eventhub),
timer:sleep(1000),
[{started_by_us, true} | Config]
@@ -142,7 +143,7 @@ ct_mode() ->
%% @private Ожидание доступности удалённого API.
-spec wait_for_remote() -> ok.
wait_for_remote() ->
URL = os:getenv("ADMIN_API_HOST", "http://localhost:8445") ++ "/admin/health",
URL = api_test_runner:get_admin_url() ++ "/admin/health",
ct:pal("Waiting for remote API: ~s", [URL]),
wait_for_health(URL, 30).