bagofix
Test & Deploy to Snapdeploy / build-test-deploy (push) Failing after 24m46s

This commit is contained in:
2026-06-05 23:20:03 +03:00
parent 2497fe951b
commit 17b2e617d7
41 changed files with 365 additions and 194 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, OwnerToken,
#{title => <<"Event to book">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
test_create_booking(ParticipantToken, EventId),
@@ -81,7 +81,7 @@ test_confirm_booking(OwnerToken, EventId) ->
%% @doc Отмена бронирования участником: 200 OK.
-spec test_cancel_booking(binary(), binary()) -> ok.
test_cancel_booking(OwnerToken, EventId) ->
test_cancel_booking(_OwnerToken, EventId) ->
ct:pal(" TEST: Cancel booking as participant"),
% Создаём нового участника, у которого нет бронирований
CancelUserEmail = api_test_runner:unique_email(<<"canceluser">>),
+1 -1
View File
@@ -36,7 +36,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, Token,
#{title => <<"Test Event">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
test_get_event(Token, EventId),
+2 -2
View File
@@ -30,7 +30,7 @@ test_create_single_event(Token, CalId) ->
Path = <<"/v1/calendars/", CalId/binary, "/events">>,
Body = jsx:encode(#{
title => <<"Single Event">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60
}),
Resp = api_test_runner:client_request(post, Path, Token, Body),
@@ -58,7 +58,7 @@ test_create_recurring_event(Token, CalId) ->
Path = <<"/v1/calendars/", CalId/binary, "/events">>,
Body = jsx:encode(#{
title => <<"Weekly Meeting">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60,
recurrence => #{
freq => <<"WEEKLY">>,
+1 -1
View File
@@ -31,7 +31,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, OwnerToken,
#{title => <<"Event for my booking">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
% Бронируем событие от имени участника и подтверждаем
+1 -1
View File
@@ -31,7 +31,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, OwnerToken,
#{title => <<"Event for my review">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
% Бронируем, подтверждаем, оставляем отзыв
@@ -32,7 +32,7 @@ test() ->
#{<<"id">> := RecurringId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, OwnerToken,
#{title => <<"Weekly Standup">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 30,
recurrence => #{freq => <<"WEEKLY">>, interval => 1}}),
@@ -73,7 +73,7 @@ test_cancel_occurrence_on_single_event(Token, CalId) ->
#{<<"id">> := SingleId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, Token,
#{title => <<"Single">>,
start_time => <<"2026-06-02T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 30}),
Path = <<"/v1/events/", SingleId/binary, "/occurrences/2026-06-02T10:00:00Z">>,
Resp = api_test_runner:client_request(delete, Path, Token),
+1 -1
View File
@@ -31,7 +31,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, UserToken,
#{title => <<"Event to report">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
test_create_report(UserToken, EventId),
+1 -1
View File
@@ -38,7 +38,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, OwnerToken,
#{title => <<"Event for review">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
#{<<"id">> := BookingId} = api_test_runner:client_post(
<<"/v1/events/", EventId/binary, "/bookings">>, ParticipantToken, #{}),
+1 -1
View File
@@ -35,7 +35,7 @@ test() ->
#{<<"id">> := EventId} = api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, OwnerToken,
#{title => <<"Event for review">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60}),
% Бронируем и подтверждаем участие
+2 -2
View File
@@ -33,13 +33,13 @@ test() ->
api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, Token,
#{title => <<"Python Workshop">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60,
tags => [<<"python">>, <<"workshop">>]}),
api_test_runner:client_post(
<<"/v1/calendars/", CalId/binary, "/events">>, Token,
#{title => <<"JavaScript Meetup">>,
start_time => <<"2026-06-15T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60,
tags => [<<"javascript">>]}),
+1 -1
View File
@@ -27,7 +27,7 @@ test() ->
CalId = api_test_runner:create_calendar(UserToken, #{title => <<"WS Test Calendar">>, type => <<"commercial">>}),
_EventId = api_test_runner:create_event(UserToken, CalId, #{
title => <<"WS Test Event">>,
start_time => <<"2026-06-01T10:00:00Z">>,
start_time => api_test_runner:future_date_iso8601(),
duration => 60
}),