Commit Graph

6 Commits

Author SHA1 Message Date
Guillaume Raffy e5ced9e8bb cocluto v1.06
- fixed bug in SshAccessedMysqlDb which didn't handle the fields with is_autoinc_index properly
- fixed bug in SshAccessedMysqlDb which failed when a field description contained double quotes
- improved SshAccessedMysqlDb.query(), which now displays the error message on failure
- fixed bug in SshAccessedMysqlDb.table_exists,which failed when the table didn't exist.

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
2024-11-13 14:38:01 +01:00
Guillaume Raffy fbf565fd8a cocluto v1.05
- added to the class `ISqlDatabaseBackend` the ability to delete a sql table
- also added `SshAccessedMysqlDb`: an implementation of `ISqlDatabaseBackend` that implements the sql database as a remote sql database accessed using ssh
- added unit tests to validate the backends SshAccessedMysqlDb and SqliteDb

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
2024-11-12 17:36:53 +01:00
Guillaume Raffy 9f4a80b11e fixed styling errors and added more type hinting to increase maintainability of cocluto
- all styling errors are now fixed, but there are still warnings and information
- most functions have been converted to snake case
- most functions now have type hinting

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3873]
2024-06-14 15:52:32 +02:00
Guillaume Raffy 891182587d fixed bug: made parseQstatOutput handle domains other than ipr.univ-rennes1.fr properly
before this fix, `parseQstatOutput` created a list of machines with a hardcoded ipr.univ-rennes1.fr domain, resulting in potentatially wrong fqdn

work related to https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3693
2023-11-17 18:28:20 +01:00
Guillaume Raffy 88fba0fdb0 fixed regression from commit 270304f58e
- this bug was found when working on Bug 3575 - la page physix status renvoit internal server error
- in order to ease the detection of such regressions, added a unittest that covers this code
2023-06-08 11:18:07 +02:00
Guillaume Raffy 14a58dcd0a fixed a missing import error (time) that was detected by one of the applications that used cocluto
in order to detect these kind of errors easily, I've added a unit test system in cocluto
2023-06-07 18:23:46 +02:00