Commit Graph

26 Commits

Author SHA1 Message Date
lorry li
f7ee29e5fe Resubmit after: //Fortnite/Main/... changelist 29101420
Make retry system don't rely on Tick from game thread;
Make http tests can run with retry system enabled/disabled.

#jira UE-163631
[REVIEW] [at]michael.atchison [at]michael.kirzinger
#rb [at]michael.atchison, [at]michael.kirzinger
#tests Passed WebTests, also tried on Windows to reach main menu

[CL 29180201 by lorry li in ue5-main branch]
2023-10-27 08:42:11 -04:00
bob tellez
549b6f8bc8 [Backout] - CL29087771
[FYI] lorry.li
Original CL Desc
-----------------------------------------------------------------
Make retry system don't rely on Tick from game thread;
Make http tests can run with retry system enabled/disabled.

#jira UE-163631
[REVIEW] [at]michael.atchison [at]michael.kirzinger
#rb [at]michael.atchison, [at]michael.kirzinger
#tests Passed WebTests, also tried on Windows to reach main menu

[CL 29101454 by bob tellez in ue5-main branch]
2023-10-25 16:43:47 -04:00
lorry li
c6aee9025c Make retry system don't rely on Tick from game thread;
Make http tests can run with retry system enabled/disabled.

#jira UE-163631
[REVIEW] [at]michael.atchison [at]michael.kirzinger
#rb [at]michael.atchison, [at]michael.kirzinger
#tests Passed WebTests, also tried on Windows to reach main menu

[CL 29087807 by lorry li in ue5-main branch]
2023-10-25 10:01:09 -04:00
lorry li
70a86ba061 Remove dependency of http request from http response;
Make http requests use GET by default if verb is not set.

[REVIEW] [at]michael.kirzinger [at]rafa.lecina [at]justin.marcus
#jira UE-196108
#rb [at]michael.kirzinger [at]justin.marcus

[CL 28469520 by lorry li in ue5-main branch]
2023-10-04 15:14:01 -04:00
lorry li
8d63b6815b Enable more platforms for WebTests, fix corresponding warning or errors.
[REVIEW] [at]stephen.ma [at]david.harvey [at]michael.kirzinger [at]chris.constantinescu
#jira UE-194887
#rb [at]stephen.ma [at]david.harvey [at]chris.constantinescu

[CL 27973497 by lorry li in ue5-main branch]
2023-09-18 16:36:57 -04:00
lorry li
e73e52ce3a Enable PS5 for WebTests;
Fix WebTests warnings on PS5.

[REVIEW] [at]stephen.ma [at]michael.kirzinger

[CL 27634961 by lorry li in ue5-main branch]
2023-09-06 10:45:24 -04:00
lorry li
a73b702986 Fix the warning in new test case when validate retry manager thread safety;
Fix the warning when the request didn't get removed from http manager when test.

#jira UE-182678
[REVIEW] [at]stephen.ma [at]michael.kirzinger
#rb [at]stephen.ma

[CL 27554811 by lorry li in ue5-main branch]
2023-09-01 10:24:00 -04:00
lorry li
8dfb049f4c Fix the warnings in WebTests project:
- Set http log level to error if the warning logs are expected for specified tests;
- There is a warning about failing to delete file downloaded, because the file is still in use, close the file reader which verifies the file;
- There is a warning about failing to delete file uploaded, because the file is still in use. Now http upload request closes the file reader when complete.

#jira UE-182678
[REVIEW] [at]michael.kirzinger [at]stephen.ma [at]rafa.lecina
#rb [at]rafa.lecina

[CL 27510921 by lorry li in ue5-main branch]
2023-08-30 21:20:37 -04:00
lorry li
3fc1d2becf Make sure progress callback can be called on http thread;
Make sure HttpManagerRequestAdded and HttpManagerRequestCompleted callback can be called on http thread.

From now on the delegates bind to http manager through SetRequestAddedDelegate and SetRequestCompletedDelegate have to be changed to be thread-safe.

#jira UE-182677
[REVIEW] [at]michael.atchison [at]michael.kirzinger [at]rafa.lecina [at]justin.marcus

[CL 27506980 by lorry li in ue5-main branch]
2023-08-30 18:56:04 -04:00
lorry li
b756c03676 Make http retry system thread safe.
[REVIEW] [at]michael.kirzinger [at]michael.atchison

[CL 27501211 by lorry li in ue5-main branch]
2023-08-30 17:27:56 -04:00
bob tellez
1a40c0b330 [Backout] - CL27428302
[FYI] lorry.li
Original CL Desc
-----------------------------------------------------------------
Make http retry system thread safe.

[REVIEW] [at]michael.kirzinger [at]michael.atchison
#rb [at]michael.kirzinger

[CL 27434718 by bob tellez in ue5-main branch]
2023-08-28 22:51:29 -04:00
lorry li
af8229bdb6 Make http retry system thread safe.
[REVIEW] [at]michael.kirzinger [at]michael.atchison
#rb [at]michael.kirzinger

[CL 27428621 by lorry li in ue5-main branch]
2023-08-28 18:19:21 -04:00
lorry li
2186b4d4d5 Add tests for websockets in WebTests;
Move WebTests web server from Engine/Source/Programs/WebTests/WebServer to Engine/Source/Programs/WebTestsServer, so to make sure not include all files underneath into VS project.

[REVIEW] [at]michael.kirzinger [at]stephen.ma [at]chuck.zhu [at]michael.atchison [at]rafa.lecina
#jira UE-191978
#rb stephen.ma [at]rafa.lecina [at]michael.atchison

[CL 27189120 by lorry li in ue5-main branch]
2023-08-17 18:35:29 -04:00
chuck zhu
e4305a914b Undo changelist 27109652
[CL 27119186 by chuck zhu in ue5-main branch]
2023-08-15 16:35:29 -04:00
chuck zhu
58fcbd6210 Adding https tests in webtests
[REVIEW] [at]lorry.li [at]stephen.ma

[CL 27109686 by chuck zhu in ue5-main branch]
2023-08-15 13:25:59 -04:00
lorry li
c2c48c3fd1 Add automation flow for WebTests.
#jira UE-182678
[REVIEW] [at]stephen.ma [at]chad.garyet [at]ryan.hummer [at]rafa.lecina [at]michael.kirzinger
#rb [at]chris.constantinescu

[CL 26739672 by lorry li in ue5-main branch]
2023-08-01 11:06:27 -04:00
lorry li
170bfe8179 Block main thread in the test when verifying http non-game thread support.
[REVIEW] [at]michael.kirzinger [at]michael.atchison [at]rafa.lecina
#jira UE-182677
#rb [at]michael.atchison [at]rafa.lecina [at]michael.kirzinger

[CL 26718522 by lorry li in ue5-main branch]
2023-07-31 15:56:48 -04:00
lorry li
f13d8a5418 Add 64 bit support in http request.
[REVIEW] [at]michael.kirzinger [at]rob.cannaday [at]michael.atchison [at]rafa.lecina
#jira UE-182679
#rb [at]michael.atchison [at]rafa.lecina

[CL 26052147 by lorry li in ue5-main branch]
2023-06-16 10:53:42 -04:00
lorry li
ca896f747b Add test case to test file upload through file name;
Add test case to test redirect;
Minor refactor for test code: Extract UrlStreamDownload function; Remove ESPMode::ThreadSafe when define TSharedRef.

[REVIEW] [at]michael.kirzinger [at]michael.atchison [at]rafa.lecina
#rb [at]michael.atchison [at]rafa.lecina

[CL 26011874 by lorry li in ue5-main branch]
2023-06-15 09:11:36 -04:00
Rafa Lecina
e14412d4a4 Make AppleHTTPNSUrlSession threaded
#review @Bertrand.Carre, @Michael.Kirzinger, @Lorry.Li
#jira FORT-619813

[CL 25973027 by Rafa Lecina in ue5-main branch]
2023-06-14 04:02:22 -04:00
lorry li
9821857cfb Add a test case to verify http request can be reused;
Add a test case to verify http request can run in parallel.

[REVIEW] [at]rob.cannaday [at]michael.kirzinger [at]michael.atchison [at]rafa.lecina
#rb [at]michael.atchison

[CL 25952120 by lorry li in ue5-main branch]
2023-06-13 11:00:18 -04:00
lorry li
b07bd4ae81 Add non-game thread support for http request.
[REVIEW] [at]michael.kirzinger [at]rob.cannaday [at]michael.atchison [at]rafa.lecina
#jira UE-182677
#rb [at]michael.atchison [at]justin.marcus

[CL 25878248 by lorry li in ue5-main branch]
2023-06-08 14:54:12 -04:00
lorry li
8cf99a3ba9 Refactor: extract some common functions into a new base class HttpRequestCommon, where code can be shared between different platforms, but not different http impls like adaptor/mock/null impl.
[REVIEW] [at]rafa.lecina [at]michael.kirzinger [at]michael.atchison
#preflight 647a58c24678712034c743da
#rb [at]michael.atchison

[CL 25778049 by lorry li in ue5-main branch]
2023-06-02 20:28:07 -04:00
lorry li
ae0b262b81 Updated the WebTests doc since UE5 integrated with new tests param;
Use sections for http methods tests.

[REVIEW] [at]michael.atchison [at]michael.kirzinger [at]stephen.ma [at]rafa.lecina
#rb [at]michael.atchison

[CL 25773734 by lorry li in ue5-main branch]
2023-06-02 16:59:56 -04:00
lorry li
f8966a696c Add streaming download interface.
#jira UE-182675
[REVIEW] [at]michael.kirzinger [at]michael.atchison [at]per.larsson [at]pj.kack [at]rafa.lecina
#rb [at]rafa.lecina [at]michael.atchison
#preflight 6479ffcb4678712034adcc5f

[CL 25764045 by lorry li in ue5-main branch]
2023-06-02 12:09:58 -04:00