Commit Graph

554 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
6a483de0a8 Implemented tests for GET and MGET commands 2024-02-12 15:35:30 +08:00
Kelvin Clement Mwinuka
69df2b9852 Updated vals variable name into values for more clarity 2024-02-12 12:22:19 +08:00
Kelvin Clement Mwinuka
7715928d5f Updated mget command handler to use safer concurrency control 2024-02-12 12:19:52 +08:00
Kelvin Clement Mwinuka
881b951dcf Implemented tests for SET, SETNX and MSET commands 2024-02-12 11:31:55 +08:00
Kelvin Clement Mwinuka
ce42d65cf6 Fixed PING test to account for handlePing change 2024-02-11 16:44:37 +08:00
Kelvin Clement Mwinuka
d44c76db4e Server log differentiates between starting TLS and mTLS server. Removed TLS minimum version in tls config. 2024-02-11 16:37:58 +08:00
Kelvin Clement Mwinuka
cb9de7a371 Fixed PING echo command 2024-02-11 16:37:14 +08:00
Kelvin Clement Mwinuka
4a2b9a34db Skip ping command when authorizing commands in ACL 2024-02-11 16:36:26 +08:00
Kelvin Clement Mwinuka
5bb5d5428b Updated docker-compose to include MTLS, CERT_KEY_PAIR and CLIENT_CA for cluster nodes. Uncommented cluster nodes 2024-02-11 16:35:50 +08:00
Kelvin Clement Mwinuka
782bc90d0f Removed unnecessary tidwall/resp import and Decode in ping test 2024-02-11 15:12:16 +08:00
Kelvin Clement Mwinuka
00991e5a9b Removed server alias for mock server import in ping test file 2024-02-11 15:09:04 +08:00
Kelvin Clement Mwinuka
ed81ad2e3e Added tidwall/resp package for testing server modules 2024-02-11 15:02:58 +08:00
Kelvin Clement Mwinuka
0e9a2a53cd Implemented HandlePing test and changed ping response to return BulkString instead of SimpleString 2024-02-11 14:51:05 +08:00
Kelvin Clement Mwinuka
e6900e8d7c Implemented Snapshot and AOF utils.Server interface methods on mock server with No-OP implementations 2024-02-11 14:18:48 +08:00
Kelvin Clement Mwinuka
88fb1d7541 Implemented modules interface methods for mock server 2024-02-11 14:08:38 +08:00
Kelvin Clement Mwinuka
9f33f9e464 Implemented keyspace interface methods on mock server 2024-02-11 13:53:54 +08:00
Kelvin Clement Mwinuka
734e19a614 Renamed MockData and MockServer to Data and Server respectively 2024-02-11 13:33:29 +08:00
Kelvin Clement Mwinuka
954bd5ef72 Moved mock file to its own mock package 2024-02-10 20:02:42 +08:00
Kelvin Clement Mwinuka
16f2b91947 Merge branch 'main' into chore/module-tests 2024-02-10 18:16:52 +08:00
Kelvin Mwinuka
0ff63a0834 Update README.md 2024-02-10 18:15:23 +08:00
Kelvin Clement Mwinuka
ed4ff7041c Added cover image 2024-02-10 18:08:11 +08:00
Kelvin Clement Mwinuka
77e6aab868 Removed codeql github workflow 2024-02-10 18:00:06 +08:00
Kelvin Clement Mwinuka
c23c301958 Merge branch 'main' into chore/module-tests 2024-02-10 17:08:56 +08:00
Kelvin Mwinuka
db913ec76e Update README.md 2024-02-10 17:06:59 +08:00
Kelvin Clement Mwinuka
737dacd617 Deleted PING module test, this will be re-instated later with a fresh implementation 2024-02-10 17:00:48 +08:00
Kelvin Clement Mwinuka
9fd074df03 Fixed fmt.Errorf format error 2024-02-03 08:28:35 +08:00
Kelvin Clement Mwinuka
16892ab173 Changed go version in go.yml 2024-02-03 08:24:56 +08:00
Kelvin Clement Mwinuka
104dea7899 Updated go.yml and codeql.yml workflow scripts 2024-02-03 08:21:24 +08:00
Kelvin Mwinuka
18e415c995 Update README.md to include Go build status badge 2024-02-03 08:13:19 +08:00
Kelvin Mwinuka
3f2a89aa6f Create go.yml 2024-02-03 08:12:41 +08:00
Kelvin Mwinuka
fa6328a856 Update README.md to remove [] around CodeQL workflow 2024-02-03 08:11:25 +08:00
Kelvin Mwinuka
3348c8e253 Removed example badge and added CodeQL workflow badge 2024-02-03 08:10:14 +08:00
Kelvin Mwinuka
f700ea81f1 Update README.md 2024-02-03 08:08:18 +08:00
Kelvin Mwinuka
5545e063e7 Update README.md 2024-02-03 08:06:12 +08:00
Kelvin Mwinuka
2a147ec367 Update README.md 2024-02-03 08:03:42 +08:00
Kelvin Mwinuka
60aa81231d Create codeql.yml 2024-02-03 07:59:44 +08:00
Kelvin Clement Mwinuka
92bb9131f5 Updated README.md 2024-02-03 07:02:31 +08:00
Kelvin Clement Mwinuka
5e361b7d98 Updated README.md 2024-02-03 06:51:44 +08:00
Kelvin Clement Mwinuka
8c35d3b001 Changed config json and yaml tags to PascalCase from camelCase 2024-02-03 06:46:49 +08:00
Kelvin Clement Mwinuka
69c9170f56 Implemented mTLS listener to verify client certificates. 2024-02-03 06:40:03 +08:00
Kelvin Clement Mwinuka
135b3eacb1 Removed 'Key' config 2024-02-03 00:30:59 +08:00
Kelvin Clement Mwinuka
f9ae87862c Implemented multiple server cert/key pairs. Implemented mTLS for verifying client using multiple pem files. 2024-02-03 00:24:59 +08:00
Kelvin Clement Mwinuka
c0b3fe36a1 Updated config file to log config file close error 2024-02-02 00:10:27 +08:00
Kelvin Clement Mwinuka
04b3a4a84a Added structured logging to the feature milestone list 2024-02-02 00:05:41 +08:00
Kelvin Clement Mwinuka
41e79c78e7 Updated README.md file 2024-02-02 00:04:58 +08:00
Kelvin Clement Mwinuka
019fb39b8b Extracted command handler function for reuse in both the handleConnection function and the RestoreAOF function in the AOF engine. 2024-02-01 23:52:39 +08:00
Kelvin Clement Mwinuka
15d289c33d Added config flags to choose between aof restore and snapshot restore in standalone mode. 2024-02-01 04:42:44 +08:00
Kelvin Clement Mwinuka
04ddd46d2b Start goroutine in AOF engine to log queued commands 2024-02-01 04:08:34 +08:00
Kelvin Clement Mwinuka
58ecde9d92 Replaced '\r\n\n' delimiters in command handler responses with '\r\n\r\n' delimiter 2024-02-01 03:36:45 +08:00
Kelvin Clement Mwinuka
102648e5b2 Implemented file sync in snapshot engine and aof engine 2024-02-01 03:31:07 +08:00