aboutsummaryrefslogtreecommitdiff
path: root/zenserver-test/zenserver-test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add `import-project` and `export-project` (#183)Dan Engelbrecht2022-11-181-9/+12
| | | * Add `import-project` and `export-project` command line parsing
* Add "Accept" field in RPC request to gracefully handle requests from older ↵Dan Engelbrecht2022-10-131-9/+21
| | | | instances (#180)
* Format all rpc package responses using `FormatPackageMessageBuffer` to avoid ↵Dan Engelbrecht2022-09-291-10/+11
| | | | | memory copy (#174) When reading upstream, fall back to old rpc response to handle older instances.
* De/fix crash on non responding upstream (#145)Dan Engelbrecht2022-08-191-2/+278
| | | * Fix ZenStructuredCacheClient lifetime issues
* Use cacherequest::* for zenserver tests (#135)Dan Engelbrecht2022-06-301-401/+162
| | | | | * use cacherequests in zcache.rpc * use cacherequests for zcache.rpc.allpolicies
* cache requests API (#134)Dan Engelbrecht2022-06-271-0/+2
|
* Make cas storage an hidden implementation detail of CidStore (#130)v0.1.4-pre6v0.1.4-pre5Dan Engelbrecht2022-06-171-137/+39
| | | | | | | | | | | | | | | | | | - Bumped ZEN_SCHEMA_VERSION - CasStore no longer a public API, it is hidden behind CidStore - Moved cas.h from public header folder - CidStore no longer maps from Cid -> Cas, we store entries in Cas under RawHash - CasStore now decompresses data to validate content (matching against RawHash) - CasChunkSet renames to HashKeySet and put in separate header/cpp file - Disabled "Chunk" command for now as it relied on CAS being exposed as a service - Changed CAS http service to Cid http server - Moved "Run" command completely inside ZEN_WITH_EXEC_SERVICES define - Removed "cas.basic" test - Uncommented ".exec.basic" test and added return-skip at start of test - Moved ScrubContext to separate header file - Renamed CasGC to GcManager - Cleaned up configuration passing in cas store classes - Removed CAS stuff from GcContext and clarified naming in class - Remove migration code
* trivial: removed some unnecessary WriteToString in unit testsStefan Boberg2022-06-131-20/+15
|
* clang formatDan Engelbrecht2022-06-031-2/+2
|
* merge from mainStefan Boberg2022-06-031-3/+8
|\
| * Add catch2 support (#101)Stefan Boberg2022-05-201-5/+14
| | | | | | | | | | | | | | Added option to use catch2 for unit tests Currently both doctest and catch2 are supported via some compatibility macros. doctest is the default, and ZEN_USE_CATCH2 needs to be defined to switch to catch2. Our goal is to evaluate how well catch2 works and switch to catch2 if everything pans out since UE5 now supports using catch2 for unit tests.
* | Merge branch 'main' into use-catch2Stefan Boberg2022-05-201-14/+28
|\|
| * fix testsDan Engelbrecht2022-05-191-9/+9
| |
| * Keep Namespace out of CacheKey and store it on request levelDan Engelbrecht2022-05-191-21/+28
| | | | | | | | | | RPC requests now has a Namespace field under Params instead of one Namespace per cache key Fall back to legacy upstream HTTP URI format if default namespace is requested
| * parameterize namespace for upstream (first hack)Dan Engelbrecht2022-05-111-16/+23
| |
* | commented out some doctest::skip tests for now (does not compile with catch2)Stefan Boberg2022-05-191-1/+1
| |
* | Merge from mainStefan Boberg2022-04-251-1/+1
|\|
| * skip websocket.basic test as it fails on linux ciDan Engelbrecht2022-04-121-1/+1
| |
* | Added option to use Catch2 framework for testsStefan Boberg2022-04-051-38/+38
|/
* Skip zenserver-test exec.basic test since it tries to access a non-existent ↵Dan Engelbrecht2022-03-231-1/+1
| | | | file path
* Enable Horde compute code on Linux & Mac (#61)Joe Kirchoff2022-03-221-6/+4
|
* zenserver-test zcache.rpc.allpolicies: Fix incorrect ValueId in ↵Matt Peters2022-02-221-1/+1
| | | | GetCacheChunks request.
* zenserver-test zcache.rpc.allpolicies: Fix uninitialized Oid.Matt Peters2022-02-221-1/+1
|
* Add feedback about failing checks in zcache.rpc.allpoliciesMatt Peters2022-02-221-37/+54
|
* Fixed crashing websocket test.Per Larsson2022-02-221-3/+1
|
* Stop I/O context when running websocket tests.Per Larsson2022-02-211-1/+2
|
* Initial support for websockets.Per Larsson2022-02-211-0/+96
|\
| * Added option to enable websockets.Per Larsson2022-02-211-1/+1
| |
| * Refactored websocket message.Per Larsson2022-02-211-33/+21
| |
| * Basic websocket service and test.Per Larsson2022-02-181-8/+24
| |
| * Simple websocket client/server test.Per Larsson2022-02-181-4/+96
| |
* | Value propagation fix - Read/Write ValueAPI as CompressedBinary type when ↵mattpetersepic2022-02-181-7/+9
| | | | | | | | | | | | writing to zen and horde upstreams. Return failure from HandleGetCacheRecord if the requested type does not match the cachetype. (#55) * Fix bug with getting values PUT to Jupiter as CompressedBinary. When getting CompressedBinary records from Jupiter, they are expected to now be a record with a reference to the compact binary. This has to be accounted for when performing upstream GETs. * HandleGetCacheRecord: avoid crashing on invalid type, and avoid sending back data that doesn't match the AcceptType.
* | Fixed GCC non-conformant errors regarding "KeyData* KeyData;"Martin Ridgers2022-02-111-7/+7
| |
* | Fixed "UserData* UserData" non-conformancy errors from GCCMartin Ridgers2022-02-111-12/+12
| |
* | Simplify HandleRpcGetCacheChunks (#53)mattpetersepic2022-02-091-0/+623
|/ | | Refactor HandleRpcGetCacheChunks to reduce complexity. Port CacheStore tests from Unreal.
* Removed old http client test codeStefan Boberg2022-02-041-416/+0
|
* Cache policy support (#47)mattpetersepic2022-02-011-31/+58
| | | | | | | | Add HandleRpc methods for the remaining ICacheStore requests from unreal: PutCacheValues/GetCacheValues. We now have batched versions for PutCacheRecords,GetCacheRecords,PutCacheValues,GetCacheValues,GetCacheChunks. Add support for CachePolicy flags to all of these batched methods. * Add Batched PutCacheValues/GetCacheValues. Rename old GetCacheValues to GetCacheChunks. * HandleRpcGetCacheRecords: Receive a CacheRecordPolicy with each key, and skipdata on attachments we already have. * Changes to CachePolicy copied from Release-5.0 depot. Change serialization to use the key BasePolicy instead of DefaultValuePolicy. * GetChunks: Read CacheRecords from remote if necessary to find ContentId. Implement QueryLocal, StoreLocal, and SkipData.
* Add batched CacheRecord put rpc (#38)mattpetersepic2022-01-271-30/+61
| | | * Add batched CacheRecord put rpc
* Implement SkipData,QueryLocal,StoreLocal for GET-verb CacheGet requests (#39)mattpetersepic2022-01-261-3/+8
| | | * Implement SkipData,QueryLocal,StoreLocal for GET-verb CacheGet requests
* Cachepolicy (#36)mattpetersepic2022-01-251-171/+16
| | | | | | | | | | | | | | | | | * Copy CachePolicy implementation from UE5/Release-5.0. Add backwards compatability for clients and upstreams that are using the old protocol. * Add RefPtr templated move operator and constructor, so that RefPtr<const Foo*> A = std::move(RefPtr<Foo*>()) will do a move. * Fix broken CachePolicy tests and add tests for new Save/Load. * Remove TODO comments * CachePolicy Save/Load Fixes from codereview * Fix comment to match code change. * Remove backwards compatibility for CachePolicy change. Convert policy string tokens to PascalCase. Fix tests for new policy text. Change ParseCachePolicy to assert string is non-empty and always succeed. * Fix release build: use ZEN_WITH_TESTS define
* Format fix.Per Larsson2022-01-221-17/+18
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-73/+69
|
* Fixed error in if-statement comparisonMartin Ridgers2022-01-071-1/+1
|
* Deleted unused local variableMartin Ridgers2022-01-071-1/+0
|
* Merged main.Per Larsson2021-12-141-56/+77
|\
| * Renamed ZEN_PLATFORM_MACOS to ZEN_PLATFORM_MACMartin Ridgers2021-12-021-1/+1
| | | | | | | | | | None of the other platform defines have an "OS" suffix so removing this one keeps things consistent and lowers the chance of error.
| * std::fs::path is a wide character string under the hoodMartin Ridgers2021-11-291-1/+1
| |
| * Wait for upstream test server to start before spawning a downstream oneMartin Ridgers2021-11-291-4/+2
| |
| * Use more correct paths for the project.basic testMartin Ridgers2021-11-291-6/+8
| |
| * Allow end-of-file errors to pass unraisedMartin Ridgers2021-11-261-0/+6
| |