Commit graph libervia-backend/src/test
Author SHA1 Message Date
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
souliane
7a9fb7f505 plugin XEP-0277: fix pubsub entry parsing using lxml instead of feed.atom 2014-02-23 13:54:41 +01:00
souliane
680dd48587 test: fix the tests for plugin room game 2014-02-20 17:51:51 +01:00
souliane
4bb50c59f7 test: skip the test for markdown syntax if the module is not installed 2014-02-20 16:37:05 +01:00
souliane
7c29b8c566 plugin room_game, radiocol: RoomGame.send returns a Deferred. 2014-02-18 17:49:33 +01:00
souliane
d5fb045f5b plugin text_syntaxes: html2text was breaking the long URLs 2014-02-13 12:29:14 +01:00
souliane
7ea4dca1b0 memory: bug fix to not register twice frontends parameters + added some tests for param update 2014-02-07 17:10:24 +01:00
souliane
ff81f76184 plugin groupblog, XEP-0071, XEP-0277, text_syntaxes: manage raw/rich/xhtml data for content/title:
Implementation should follow the following formal specification:

"title" and "content" data can be passed in raw, xhtml or rich format.
When we receive from a frontend a new/updated microblog item:

- keys "title" or "content" have to be escaped (disable HTML tags)
- keys "title_rich" or "content_rich" have to be converted from the current syntax to XHTML
- keys "title_xhtml" or "content_xhtml" have to be cleaned from unwanted XHTML content

Rules to deal with concurrent keys:

- existence of both  "*_xhtml" and "*_rich" keys must raise an exception
- existence of both raw and ("*_xhtml" or "*_rich") is OK

As the storage always need raw data, if it is not given by the user it can be
extracted from the "*_rich" or "*_xhtml" data (remove the XHTML tags).

When a frontend wants to edit a blog post that contains XHTML title or content,
the conversion is made from XHTML to the current user-defined syntax.

- plugin text_syntaxes: added "text" syntax (using lxml)
2014-02-05 16:36:51 +01:00
souliane
0698b69344 test radiocol: added a full scenario test 2014-01-15 23:24:22 +01:00
souliane
cf8f9330b4 test: improvements for the helpers classes:
- simplification for retrieving the sent messages
- an expected bridge call which is already set can no more be
  overwritten with new arguments for the same method name. The
  new arguments are stored in a FIFO list instead, and each call
  of the method also registers the arguments for the next call.
2014-01-15 23:22:07 +01:00
souliane
30dfdf1025 plugins room_games, radiocol, libervia: small changes like refactorization to ease the maintenance 2014-01-17 15:02:46 +01:00
Goffi
2ca6efd8cc dates update 2014-02-04 18:32:49 +01:00
souliane
41ce40b0e4 test: added tests for the plugin "room game" + rename other test files 2014-01-10 18:20:30 +01:00
souliane
ddcfdd99ac test: make FakeClient profile dependent and add some tools to test MUC 2014-01-10 18:15:02 +01:00
souliane
cd45ede2d2 test: silent info/warning that were polluting the output 2014-01-10 18:19:34 +01:00
souliane
db832c1f6b test: define the constants JIDs and profiles as lists 2014-01-09 11:18:33 +01:00
souliane
6be767ae3b test: use the SatTestCase methods instead of builtin "assert" in tests for memory, plugin xep-0033 2014-01-07 09:27:53 +01:00
souliane
84bfd205dd test: added tests for XEP-0033 2014-01-05 13:05:31 +01:00
souliane
96b1d58eb7 test: FakeMemory inherits from Memory + more helpers basic support + cleaning 2014-01-05 13:04:54 +01:00
souliane
9dc518a2a9 test: added tests for XEP-0085 2014-01-04 21:09:32 +01:00
souliane
6007937962 test: added some tests for Memory 2014-01-04 17:16:40 +01:00
souliane
8307896c4f test: added support of basic memory stuff in helpers.py 2014-01-04 15:46:30 +01:00
souliane
a21e3c2783 test: store the constants in constants.py + better PEP8 compliance 2014-01-04 15:45:08 +01:00
Goffi
5a00dc9503 core: i18n refactoring:
- _() is no more installed in __builtin__
    - instead, there is a new sat.core.i18n module
    - added D_() method for deferred translation
    - languageSwitch method allow to dynamically change translation language
    - import gettext is tested against ImportError, and dummy methods are used when not available (mainly useful for Libervia)
2013-12-29 17:06:01 +01:00
Goffi
5eee7729c3 test: better ignore_blank in helpers's assertEqualXML 2013-11-12 16:56:34 +01:00
Goffi
6b9e9b7a79 tests: plugin text syntaxes sanitisation tests 2013-11-12 14:16:11 +01:00