diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-13 10:43:00 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-03-13 10:51:20 +0100 |
commit | e29b401785dbb4bbefcc0dab46e75fd9885f25f2 (patch) | |
tree | ded47e157bfc2e1450563fe57cacb3fb70112258 /tests/integration | |
parent | 80344d62c608f32e12396eecf421ffd30036aefe (diff) |
fix(tests): Reset OCM retries and PCM after integration tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/spreedcheats/lib/Controller/ApiController.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/integration/spreedcheats/lib/Controller/ApiController.php b/tests/integration/spreedcheats/lib/Controller/ApiController.php index 72f1c7cee..b1d40cbad 100644 --- a/tests/integration/spreedcheats/lib/Controller/ApiController.php +++ b/tests/integration/spreedcheats/lib/Controller/ApiController.php @@ -27,6 +27,7 @@ namespace OCA\SpreedCheats\Controller; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; +use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; use OCP\IRequest; use OCP\Share\IShare; @@ -86,15 +87,20 @@ class ApiController extends OCSController { $delete->delete('talk_poll_votes')->executeStatement(); $delete = $this->db->getQueryBuilder(); + $delete->delete('talk_proxy_messages')->executeStatement(); + + $delete = $this->db->getQueryBuilder(); $delete->delete('talk_reminders')->executeStatement(); $delete = $this->db->getQueryBuilder(); + $delete->delete('talk_retry_ocm')->executeStatement(); + + $delete = $this->db->getQueryBuilder(); $delete->delete('talk_rooms')->executeStatement(); $delete = $this->db->getQueryBuilder(); $delete->delete('talk_sessions')->executeStatement(); - $delete = $this->db->getQueryBuilder(); $delete->delete('share') ->where($delete->expr()->orX( @@ -103,6 +109,13 @@ class ApiController extends OCSController { )) ->executeStatement(); + + $delete = $this->db->getQueryBuilder(); + $delete->delete('preferences') + ->where($delete->expr()->in('configkey', $delete->createNamedParameter(['changelog', 'note_to_self'], IQueryBuilder::PARAM_STR_ARRAY))) + ->andWhere($delete->expr()->eq('appid', $delete->createNamedParameter('spreed'))) + ->executeStatement(); + try { $delete = $this->db->getQueryBuilder(); $delete->delete('notifications') |