Commit Graph

12 Commits

Author SHA1 Message Date
Kelvin Mwinuka
703ad2a802 Rename the project to SugarDB. (#130)
Renames project to "SugarDB" - @kelvinmwinuka
2024-09-22 21:31:12 +08:00
Kelvin Mwinuka
8ecb9ab54f Restore multi-database state in FSM in the raft layer 2024-07-01 06:06:51 +08:00
Kelvin Mwinuka
21aabda04d Moved AUTH command from the acl module to the connection module. Added echo command to the list of commands that are skipped on ACL authorization. 2024-07-01 06:05:07 +08:00
Kelvin Clement Mwinuka
66b2842e11 Implemented tests for ACL permissions 2024-06-02 22:52:02 +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
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
fdb3b87362 Implemented ACL tests using test suites and server cleanup functions. 2024-06-01 01:08:36 +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
0108444d69 Replaced fmt.Println statements with log.Println.
Return "empty command" error from handleCommand method if an empty command is passed to the server.
Wait until connection is no longer nil in acl package tests.
2024-05-27 11:45:48 +08:00
Kelvin Clement Mwinuka
193871ec72 Removed test folder and moved all commands tests to their respective internal modules. Moved api tests into echovault package. This change has been made because the speratate test folder is not idiomatic and caused test coverage report to not be generated. 2024-05-04 17:45:10 +08:00