Commit Graph

941 Commits

Author SHA1 Message Date
Kelvin Mwinuka
168e7608a5 Removed --in-memory flag as it's will no longer be used. 2024-06-13 22:12:19 +08:00
DMcP89
57d4718528 Finished implementing multi stage build 2024-06-13 09:34:28 -04:00
Kelvin Mwinuka
179600400c Merge pull request #51 from EchoVault/fix/remove-in-memory-config
Removed --in-memory config flag.
2024-06-13 17:12:22 +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
DMcP89
3c2b7220d3 Starting to implement build stage for Dockerfile.dev 2024-06-12 22:17:49 -04:00
Kelvin Clement Mwinuka
088900c803 Added contribution and code of conduct guides 2024-06-10 23:46:44 +08:00
Kelvin Mwinuka
3534ce639a Merge pull request #48 from EchoVault/chore/echovault-test
Added longer yields for file sync after snapshot and aof rewrite
2024-06-10 21:46:20 +08:00
Kelvin Clement Mwinuka
62bf589a6c Removed parallel testing for load command in acl api module 2024-06-10 21:43:40 +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 Mwinuka
4912a213f0 Update README.md 2024-06-10 20:49:52 +08:00
Kelvin Mwinuka
cf874a35fd Merge pull request #47 from EchoVault/chore/echovault-test
Chore/echovault test
2024-06-09 18:00:20 +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
7661ab1c92 Close TTL ticker after shutdown 2024-06-08 23:23:26 +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 Mwinuka
aa99038461 Merge pull request #46 from EchoVault/chore/echovault-test
Add test for Standalone snapshot persist/restore functionality
2024-06-05 23:56:20 +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 Mwinuka
66ac3b2305 Merge pull request #45 from EchoVault/chore/echovault-test
Add test coverage to EchoVault
2024-06-02 23:03:56 +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
0a4a3c006e Added TCP/UDP offload disabling in go.yml workflow 2024-06-02 15:56:48 +08:00
Kelvin Clement Mwinuka
7855726ddb Removed TCP/UDP offload disabling in go.yml workflow 2024-06-02 15:53:32 +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
60f5d03ea7 Only fail ForwardCommand test if there's an error present. 2024-06-02 04:29:26 +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
bdfaf5446a Updated logic for loading acl config. If the config file does not exist, it will be created. 2024-06-01 22:16:16 +08:00
Kelvin Clement Mwinuka
4d56ee9083 Use log.Println instead of log.Fatal upon failing to load ACl config 2024-06-01 20:27:51 +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
c7560ce9dd Updated all test suites to include connection and server shutdown on cleanup. 2024-05-31 01:30:18 +08:00
Kelvin Clement Mwinuka
6f8511632e Close client connection on quit command 2024-05-30 20:01:24 +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
3202120626 Added client openssl files in order to faciliate MTLS testing. Implemented test of MTLS server. 2024-05-29 15:27:12 +08:00
Kelvin Clement Mwinuka
ae5a675929 Added test for TLS connection 2024-05-29 15:08:41 +08:00
Kelvin Mwinuka
f81e947a2f Merge pull request #44 from EchoVault/chore/echovault-test
Adding test coverage to EchoVault
2024-05-28 20:43:29 +08:00
Kelvin Mwinuka
163cafd0f0 Update README.md 2024-05-28 20:33:30 +08:00