Commit Graph

137 Commits

Author SHA1 Message Date
Kelvin Mwinuka
f867bca8e4 Implemented test for SWAPDB command. 2024-07-01 06:05:44 +08:00
Kelvin Mwinuka
325157ab71 Disabled adjustMemory memory until a multi-database implementation is done. Updated function signatures in handler params for built-in commands and for modules. Disabled snapshots and snapshot restoration until a multi-database implementation is done. 2024-07-01 06:05:05 +08:00
Sahil
26959200ed added test for RENAME command 2024-06-25 18:56:00 +05:30
Kelvin Mwinuka
70a1536482 Removed duplicate test for INCRBY command 2024-06-25 14:31:28 +08:00
Kelvin Mwinuka
591cc7ef99 Merge branch 'main' into issue-64 2024-06-25 14:30:14 +08:00
Sahil
51100a1700 added coverage report 2024-06-25 14:19:32 +08:00
Sahil
73d84ea439 added tests 2024-06-25 14:09:42 +08:00
Kelvin Mwinuka
e126dc52c7 Deleted coverage report 2024-06-25 12:36:49 +08:00
Sahil
b509e3359a added coverage report 2024-06-25 02:15:40 +05:30
Sahil
587782b128 added tests 2024-06-25 00:13:19 +05:30
Sahil
cebc72b2f5 fixed a bug on test 2024-06-23 19:21:37 +05:30
Sahil
50e88a8a07 fixed a bug on test 2024-06-23 19:15:07 +05:30
Sahil
2897ee31b2 fixed a bug on test 2024-06-23 19:09:52 +05:30
Sahil
dfb5a0ff4b feat: added DECR command support 2024-06-23 19:07:20 +05:30
Kelvin Clement Mwinuka
7a8a927323 Updated coverage report 2024-06-21 06:16:48 +08:00
Kelvin Mwinuka
341b31106d Merge branch 'main' into issue-66 2024-06-21 06:13:02 +08:00
Kelvin Clement Mwinuka
cccdd88f4f Added coverage report 2024-06-21 06:00:04 +08:00
Kelvin Clement Mwinuka
0246fb2976 Implemented test for INCR embedded API.
Added test cases for incorrect commands length for INCR command.
Fixed error checking on INCR commands test. RESP errors will be contained in the response object of the ReadValue method. The error object only contains an error when ReadValue failes.
2024-06-21 05:52:33 +08:00
Kelvin Mwinuka
b98ddcd2e9 Updated coverage report 2024-06-20 04:23:18 +08:00
Kelvin Clement Mwinuka
695e777e05 Removed unused Makefile commands for building modules and echovault server. The build step is now handled by the dev dockerfile 2024-06-13 22:37:51 +08:00
Kelvin Clement Mwinuka
df2b481078 Removed ./testdata DataDir config parameter from setupServer in echovault test file. This parameter is now an empty string in order to force in-memory stores for raft store. 2024-06-13 17:05:38 +08:00
Kelvin Clement Mwinuka
33d6651928 Removed --in-memory config flag. InMemory is now inferred from whether the data directory was provided. 2024-06-13 16:37:30 +08:00
Kelvin Clement Mwinuka
d27fb87b20 Added longer yields for file sync after snapshot and aof rewrite 2024-06-10 21:38:43 +08:00
Kelvin Clement Mwinuka
55b9bc6ede Added test coverave for ACLSave and ACLLoad 2024-06-09 03:31:55 +08:00
Kelvin Clement Mwinuka
cb99ff8993 rewriteAOF method in echovault.go now handles the rewrite synchronously. Removed newline character in Write method of append store. Added test case for REWRITEAOF command and restore from AOF. 2024-06-09 02:28:03 +08:00
Kelvin Clement Mwinuka
6afef55dbe Replaced time.After in snapshot and aof engines with ticker. 2024-06-08 23:19:23 +08:00
Kelvin Clement Mwinuka
39b9e6474c Moved TCP SAVE/LASTSAVE test to admin module 2024-06-06 18:05:11 +08:00
Kelvin Clement Mwinuka
c5f168a9a5 Test standalone snapshot persist and restore 2024-06-05 23:50:42 +08:00
Kelvin Clement Mwinuka
ee13c29c9a Removed debug print statements in acl.go file 2024-06-05 21:44:00 +08:00
Kelvin Clement Mwinuka
66b2842e11 Implemented tests for ACL permissions 2024-06-02 22:52:02 +08:00
Kelvin Clement Mwinuka
555387494b Replaced all time.After instances to time.Ticker 2024-06-02 17:55:15 +08:00
Kelvin Clement Mwinuka
bc6537ad8f Replaces use of time.Sleep with time.Ticker in echovault and echovault tests 2024-06-02 17:34:20 +08:00
Kelvin Clement Mwinuka
b7e691bbf1 Changed default memberlist config to DefaultWANConfig 2024-06-02 16:30:10 +08:00
Kelvin Clement Mwinuka
166e9a81fb Shutdown raft nodes from the last one to the first one in echovault tests. This is to ensure the leader node is shutdown last. 2024-06-02 15:44:09 +08:00
Kelvin Clement Mwinuka
bbc53ffee5 Use time.After instead of custom clock wrappet for TTL key eviction when creating a new EchoVault instance. 2024-06-02 15:29:22 +08:00
Kelvin Clement Mwinuka
99be0fd4f0 Fixed data race issue when reading and writing ACL user data. Now, a write-lock is acquired before modifying the connection object as well in addition to the users list. 2024-06-02 15:06:12 +08:00
Kelvin Clement Mwinuka
66b6c4b809 Disable TCP/UDP offloading in GH Action 2024-06-02 04:55:03 +08:00
Kelvin Clement Mwinuka
dd323f66b5 Renamed config variable name in echovault_test.go 2024-06-02 04:19:11 +08:00
Kelvin Clement Mwinuka
d4506ce54d Added tests for ACL LOAD and ACL SAVE commands. 2024-06-02 04:01:45 +08:00
Kelvin Clement Mwinuka
fdb3b87362 Implemented ACL tests using test suites and server cleanup functions. 2024-06-01 01:08:36 +08:00
Kelvin Clement Mwinuka
393700b71d Updated TLS/mTLS listener log 2024-05-31 19:47:11 +08:00
Kelvin Clement Mwinuka
3bd09ab376 Added test coverage for empty command and write command to non-leader node 2024-05-31 19:31:08 +08:00
Kelvin Clement Mwinuka
5de2cc8a53 Admin tests are no longer parallel as module loading interferes with other test results. ForwardCommand test now retries until all values are found in a quorum or a 5 second limit is reached. 2024-05-31 18:55:50 +08:00
Kelvin Clement Mwinuka
b48ee54228 Updated test suites to retry connection to tcp server. Use concurrency to setup cluster in Test_Cluster suite. 2024-05-31 18:17:36 +08:00
Kelvin Clement Mwinuka
502e804459 Removed logic to get unexported methods from the echovault package in all tests. 2024-05-30 19:33:01 +08:00
Kelvin Clement Mwinuka
e1d5e8203f Disabled cluster test until a more efficient method is found. 2024-05-29 23:15:27 +08:00
Kelvin Clement Mwinuka
e8840cbc35 Added test for forward command 2024-05-29 19:04:40 +08:00
Kelvin Clement Mwinuka
ae5a675929 Added test for TLS connection 2024-05-29 15:08:41 +08:00
Kelvin Clement Mwinuka
06ce6bfeaf Instead of checking if a value is replicated across the entire cluster, only check if it's present in a cluster quorum. Fixed race conditions in pubsub API by replacing connections map with sync.Map 2024-05-28 20:26:03 +08:00
Kelvin Clement Mwinuka
7691ec432d Added test coverave for sorted set api methods 2024-05-28 16:49:40 +08:00