Commit graph libervia-backend/src/test
Author SHA1 Message Date
Goffi
a5f28ef7dd tmp: removed sat.tmp hierarchy and fixed references to it as it is now an independant sat_tmp repository 2017-11-03 14:19:10 +01:00
Goffi
f12803fa65 backend, frontend: messages refactoring (huge commit, not finished):
/!\ database schema has been modified, do a backup before updating

    message have been refactored, here are the main changes:

    - languages are now handled
    - all messages have an uid (internal to SàT)
    - message updating is anticipated
    - subject is now first class
    - new naming scheme is used newMessage => messageNew, getHistory => historyGet, sendMessage => messageSend
    - minimal compatibility refactoring in quick_frontend/Primitivus, better refactoring should follow
    - threads handling
    - delayed messages are saved into history
    - info messages may also be saved in history (e.g. to keep track of people joining/leaving a room)
    - duplicate messages should be avoided
    - historyGet return messages in right order, no need to sort again
    - plugins have been updated to follow new features, some of them need to be reworked (e.g. OTR)
    - XEP-0203 (Delayed Delivery) is now fully handled in core, the plugin just handle disco and creation of a delay element
    - /!\ jp and Libervia are currently broken, as some features of Primitivus

    It has been put in one huge commit to avoid breaking messaging between changes.
    This is the main part of message refactoring, other commits will follow to take profit of the new features/behaviour.
2016-05-24 22:11:04 +02:00
Goffi
6bbcbaf522 use of /usr/bin/env instead of /usr/bin/python in shebang 2016-04-17 14:45:26 +02:00
souliane
ed403ebe9f test (plugin radiocol): fixes the test to also handle MP3 files 2016-03-18 10:25:38 +01:00
souliane
a336975a7a plugin XEP-0277, test: set keys of data dict as unicode + fix the tests 2016-03-18 08:58:22 +01:00
souliane
27f74af7b0 test: update some tests 2016-03-11 17:42:56 +01:00
souliane
8bc634d4c2 test: add helpers methods muteLogging and unmuteLogging 2016-03-11 16:41:44 +01:00
souliane
df30ea7a53 plugin XEP-0071, XEP-0277: method clean_xhtml has been renamed to cleanXHTML 2016-01-19 11:51:07 +01:00
souliane
aa2b4f6e67 test, setup: requires lxml >= 3.1.0 (fixes html cleaning issue) 2014-08-21 20:45:24 +02:00
Goffi
348be27934 copyright update 2016-01-03 16:28:30 +01:00
Goffi
ad973c6a2c core: fixed launchAction:
- getClient now raise a NotFound error if client is not available
    - errors ConnectedProfileError, NotConnectedProfileError anf ProfileKeyUnknownError renamed for consistency (all profile error must prefixed by Profile)
    - launchAction fixed, the case where client is not available is handled
    - kept actions are actuall1y removed on launchAction
2015-11-18 11:06:24 +01:00
Goffi
af3ec67047 core (tests): fixed bad use of reserved name 2015-04-23 15:16:06 +02:00
Goffi
0ad78c5072 core (tests): test fixes 2015-04-23 14:19:43 +02:00
souliane
f34a5b8aaf test: fix the tests 2015-04-17 19:06:39 +02:00
Goffi
fbec02d396 2015 copyright dates update 2015-03-30 10:26:26 +02:00
Goffi
6760c927d3 merged branch frontends_multi_profiles 2015-03-18 10:52:28 +01:00
Goffi
cdfb2c4dc6 core (memory): updateEntityData now accept a "silent" argument to avoid sending signal to frontends when updating an attribute with "signalOnUpdate" flag. 2015-02-09 21:39:51 +01:00
souliane
1a1deb5056 tmp, plugins: fixes the imports fron sat.tmp 2015-01-14 10:44:49 +01:00
souliane
27cb7fac73 plugin XEP-0313: update (still draft) 2015-01-09 10:51:12 +01:00
souliane
62981779ac plugin XEP-0334: first draft 2014-12-25 12:09:05 +01:00
souliane
08e293a81d test: fix/improve tests for plugins XEP-0033 and XEP-0085 (mainly to return a Deferred) 2014-12-25 11:49:13 +01:00
souliane
4a4760b80b plugin XEP-0313: first draft:
- you can already test it with d-feet but it will bug unless you apply the changeset 60dfa2f5d61f which is waiting in the branch "frontends_multi_profiles" (actually just one "assert" to comment in plugin_xep_0085.py)
2014-12-19 14:43:42 +01:00
souliane
0fe6da06ce plugin XEP-0297: first draft 2014-12-19 11:40:28 +01:00
souliane
4d139af49b plugin XEP-0203: first draft 2014-12-19 11:38:24 +01:00
souliane
9c53c50810 test: fixes tests for XEP-0033 2014-12-19 11:36:43 +01:00
souliane
852106becd test: refactoring:
- rename internal init methods to reinit
    - rename getSentMessage to getSentMessageXml
    - rename getSentMessageRaw to getSentMessage
2014-12-19 11:36:00 +01:00
souliane
a6e6cd68be test: fixes import for wokkel.rsm 2014-12-15 15:29:08 +01:00
souliane
d262aff438 test: add tests for plugin_misc_groupblog 2014-12-15 14:05:28 +01:00
souliane
939556f743 test: fixes test for XEP-0085 (use full JID) 2014-10-20 20:46:10 +02:00
souliane
9fbddc69e9 test: fixes FakeSAT for plugin XEP-0033 2014-09-17 10:02:24 +02:00
souliane
8281c77c60 memory: fixes encoding issues during encryption 2014-07-06 21:13:47 +02:00
souliane
ba3deb4c3e misc: remove some pylints warnings 2014-06-15 18:18:36 +02:00
souliane
7a9392f486 test (memory): fixes crypto encryption/decryption test 2014-06-12 15:57:22 +02:00
souliane
2afa53f755 test: fixes the tests for plugin XEP-0033 2014-06-08 17:39:21 +02:00
souliane
5f2b90e163 memory (params), test: fixes updateParams bug 2014-06-03 17:10:12 +02:00
souliane
900047c921 memory (params), test: fixes bug relative to parameter filtering 2014-06-03 15:10:51 +02:00
souliane
dd597a2ead core, memory, bridge, plugin misc_register_account: move registerNewAccount to a new plugin:
- the bridge method has been removed, now a plugin takes care of it with XMLUI callback system
    - TODO: xmpp.RegisteringAuthenticator still needs to be fixed
2014-05-16 00:58:20 +02:00
souliane
7a29fae242 memory, test: added module crypto to hash passwords and encrypt/decrypt passwords or blocks 2014-05-07 15:46:43 +02:00
souliane
561cc93a04 test: fix the tests after the changes of logging system 2014-05-14 13:26:23 +02:00
souliane
f0fa9b699d plugin XEP_0033: fixes the server part and the tests 2014-04-11 11:02:42 +02:00
Goffi
d89044dbbc tests: fixed log init in helpers (log init must be done before any call to a log method) 2014-04-23 12:01:59 +02:00
Goffi
edf5db192f test: configuration/use of new logging system 2014-04-21 20:04:52 +02:00
Goffi
a3186ac2e3 tests: fixed import in test_helpers_plugins 2014-04-21 19:45:10 +02:00
Goffi
501bc92528 core: use of the new core.log module:
/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
2014-04-19 19:19:19 +02:00
Goffi
95678d7967 core, plugin XEP-0115: discovery refactoring:
- hashing algorithm of XEP-0115 has been including in core
    - our own hash is still calculated by XEP-0115 and can be regenerated with XEP_0115.recalculateHash
    - old discovery methods have been removed. Now the following methods are used:
        - hasFeature: tell if a feature is available for an entity
        - getDiscoInfos: self explaining
        - getDiscoItems: self explaining
        - findServiceEntities: return all available items of an entity which given (category, type)
        - findFeaturesSet: search for a set of features in entity + entity's items
      all these methods are asynchronous, and manage cache automatically
    - XEP-0115 manage in a better way hashes, and now use a trigger for presence instead of monkey patch
    - new FeatureNotFound exception, when we want to do something which is not available
    - refactored client initialisation sequence, removed client.initialized Deferred
    - added constant APP_URL
    - test_plugin_xep_0033.py has been temporarly deactivated, the time to adapt it
    - lot of cleaning
2014-03-28 18:07:22 +01:00
Goffi
a6897c76e0 core, plugins: host.getClient now raise an exception instead of returning None when no profile is found, plugins have been adapted consequently and a bit cleaned 2014-03-28 18:07:02 +01:00
souliane
032c34cfdb test: fix tests fo plugins XEP-0033 and XEP-0085 2014-03-22 18:47:17 +01:00
Goffi
2a40da1664 tests: tests fixes 2014-03-21 16:19:46 +01:00
souliane
3249e50efe test: update radiocol test regarding the last changes 2014-03-15 01:19:22 +01:00
souliane
470e4f4edf test: skip radiocol tests if the sound samples are not found 2014-02-24 12:57:56 +01:00