-
- Downloads
jamiaccount: add test for migrations
Accounts can see their certificates expire. When it's the case, a migration is needed. However, several regressions can happen, because this behaviour can be tricky to test correctly. In this patch, a test is added to validate that the migration is done whenever the certificate expires. + OpenDHT needs to be bumped in order to be able to change the validity period of a certificate. + In ArchiveAccountManager, a method is added to change the validity of a certificate in the chain. + This patch also fixes a crash when a migration occurs directly on the archive (info_ was null causing a segfault). + Finally, cleanup some signatures unused in JamiAccount. GitLab: #684 (this is some preparative work) Change-Id: I901bc67fd63ce2ab26ded64662f8333d3a0eed50
Showing
- configure.ac 1 addition, 1 deletionconfigure.ac
- contrib/src/opendht/SHA512SUMS 1 addition, 1 deletioncontrib/src/opendht/SHA512SUMS
- contrib/src/opendht/package.json 2 additions, 3 deletionscontrib/src/opendht/package.json
- contrib/src/opendht/rules.mak 2 additions, 2 deletionscontrib/src/opendht/rules.mak
- src/jami/configurationmanager_interface.h 2 additions, 2 deletionssrc/jami/configurationmanager_interface.h
- src/jamidht/archive_account_manager.cpp 61 additions, 4 deletionssrc/jamidht/archive_account_manager.cpp
- src/jamidht/archive_account_manager.h 8 additions, 0 deletionssrc/jamidht/archive_account_manager.h
- src/jamidht/jamiaccount.cpp 24 additions, 1 deletionsrc/jamidht/jamiaccount.cpp
- src/jamidht/jamiaccount.h 16 additions, 16 deletionssrc/jamidht/jamiaccount.h
- test/meson.build 10 additions, 0 deletionstest/meson.build
- test/unitTest/Makefile.am 6 additions, 0 deletionstest/unitTest/Makefile.am
- test/unitTest/account_archive/migration.cpp 151 additions, 0 deletionstest/unitTest/account_archive/migration.cpp
Loading
Please register or sign in to comment