Badlop
5e93725044
Replace options rtbl_host and rtbl_domains_node with rtbl_services
2025-07-07 17:42:05 +02:00
Badlop
d00561b58c
Move filtering implementation to a submodule
2025-06-18 11:52:28 +02:00
Badlop
f3b1b5d419
Result of running "make format"
2025-06-18 11:52:28 +02:00
Stefan Strigler
d9a7b67f0e
mod_antispam: increase timeout when waiting for dump file
2025-06-17 17:21:58 +02:00
Stefan Strigler
bae345b92b
mod_antispam: test dump file
2025-06-17 13:18:13 +02:00
Stefan Strigler
10ec128b94
mod_antispam: test whitelisted domain
2025-06-17 13:18:13 +02:00
Stefan Strigler
7a6e409879
mod_antispam: use message/3 in test
2025-06-17 13:18:13 +02:00
Stefan Strigler
ea19e4bc7f
mod_antispam: remove unnecessary check in test
...
this was left over from debugging issues with fixtures
2025-06-17 13:18:13 +02:00
Badlop
b607d95a93
Refactorize each individual test case in individual functions
2025-06-17 13:18:13 +02:00
Stefan Strigler
34b40aec66
mod_antispam: add format instructions
2025-06-17 13:18:13 +02:00
Stefan Strigler
c48aa38c39
mod_antispam: add test suite
2025-06-17 13:10:27 +02:00
Stefan Strigler
70bec7b714
tests: update readme and compose to work with current sw versions
2025-06-17 13:10:27 +02:00
Badlop
38cc3ccb1e
Avoid using the "else" conditional compilation macro directive
...
Even if "-else." is a valid directive:
https://www.erlang.org/docs/28/system/macros.html#conditional-compilation
there is a bug in rebar3_format that annoyingly rewrites it as "- else ."
https://github.com/AdRoll/rebar3_format/issues/337
as a quick workaround, rewrite directives to not use "-else."
2025-06-05 17:02:41 +02:00
Paweł Chmielowski
bd5f9537c5
Normalize username when determining if user want to change pass in mod_register
...
Should fix issue #4377
2025-04-29 11:43:17 +02:00
Badlop
82ec0a4837
Remove unused MyNick variables
2025-04-22 12:27:09 +02:00
Paweł Chmielowski
602a42f5ce
Add tests for duplicate occupant-id handling
2025-04-16 11:39:30 +02:00
Paweł Chmielowski
7862c6a7db
Add support for storing multiple passwords formats per user
...
This adds option 'auth_stored_password_types' that can be used to setup
storage of multiple passwords for each user. When this is set, on each
password set, database will now store password in each format specified.
2025-03-26 11:03:39 +01:00
badlop
418ca34c85
Merge pull request #4357 from badlop/adhoc_api
...
New mod_adhoc_api and related improvements
2025-03-20 11:10:43 +01:00
Paweł Chmielowski
6d8e588b78
Allows test to be run using ct_run
2025-03-19 10:40:49 +01:00
Badlop
496daf9220
mod_adhoc_api: New module to execute API Commands using Ad-Hoc Commands
2025-03-19 10:39:53 +01:00
Badlop
6d77ace5c9
mod_http_api: Sort list elements in a command result
2025-03-19 10:38:10 +01:00
Badlop
888c335c2e
Add tests for config features define_macro and define_keyword
2025-03-18 13:40:21 +01:00
Badlop
ad8e325139
Disable commands tests for old Erlang/OTP versions
...
Since recently, this test fails with Erlang/OTP 22 and lower:
=result failed:
{test_case_failed,
"Received input:
[{error,{compilation_failed,
\"/home/runner/.ejabberd-modules/sources/ejabberd-contrib/mod_example/src/mod_example.erl\"}}]
don't match expected patterns:ok"},
2025-03-18 12:45:25 +01:00
Badlop
d834a9c1c1
Delete ejabberd.cfg which apparently isn't needed anymore
2025-02-06 11:02:17 +01:00
Badlop
f72cfa9a13
Test: Uninstall mod_example when the tests has finished
2025-01-15 20:33:33 +01:00
Badlop
4a363b6e76
Test: Fixes to handle re-running test after update_sql
...
Enable some modules so ejabberd creates their SQL tables
and later those tables can be updated without errors by mod_admin_update_sql
when ci.yml calls "make test" to check update_sql.
However, mod_shared_roster should be stopped before running the actual tests,
as it introduces undesired IQ queries
On the other hand, a few SQL tables are global RAM, and cannot be created
in SQL just for a vhost that is not the first one defined.
2025-01-13 16:34:05 +01:00
Badlop
8ebbb45a19
Update copyright year to 2025 ( #4139 )
2025-01-03 11:49:37 +01:00
Holger Weiss
e967a409d3
stundisco_tests: Fix TURNS credentials syntax
2024-12-18 22:24:53 +01:00
Holger Weiss
3bc66a7054
stundisco_tests: Check correct credentials syntax
2024-12-18 21:17:07 +01:00
Badlop
790cb104cd
Change arguments and result to consistent names (API v3)
...
Commands accept as argument: user, host, room, service
and return as result JIDs
Commands that change in API v3:
get_room_affiliations
muc_register_nick
muc_unregister_nick
set_room_affiliation
status_list
status_list_host
subscribe_room
subscribe_room_many
unsubscribe_room
2024-12-17 10:12:48 +01:00
Metalhearf
af97211ecc
Update URLs in docs/conf files for consistency.
2024-10-31 17:30:20 +01:00
Badlop
01141e5f69
Relax password complexity in test database
...
This password is not strong enough in MSSQL 2022, relax this restriction
https://learn.microsoft.com/en-us/sql/relational-databases/security/password-policy?view=sql-server-ver16
https://learn.microsoft.com/en-us/sql/t-sql/statements/create-login-transact-sql?view=sql-server-ver16#check_policy---on--off-
2024-08-21 10:51:46 +02:00
Badlop
65e16dcac1
make format
2024-07-18 11:11:48 +02:00
Paweł Chmielowski
c013a59d16
Restore args conversion of {"k":"v"} to tuple lists in mod_http_api
...
Switching to json compatible output did broke this, which caused issues in
for example create_rooms_with_opts command.
2024-07-15 21:58:41 +02:00
Badlop
9a0ff13cc2
mod_register: Send welcome message as 'chat' too ( #4246 )
...
Apparently, some clients don't display 'normal' messages to the user.
2024-07-12 15:45:59 +02:00
Badlop
a733ba311c
New tests for API commands
...
Only mod_http_api is tested right now; support to test also
ejabberdctl, ejabberd_xmlrpc and web_admin would be great.
This uses mod_example from ejabberd-contrib
How to run only those tests:
CT_BACKENDS=no_db rebar3 ct --suite=test/ejabberd_SUITE --group=commands_single
2024-07-04 16:55:14 +02:00
Paweł Chmielowski
8d4c1e3617
One more fix for pg91 in test suite
2024-07-03 13:44:48 +02:00
Paweł Chmielowski
35042ebc6a
Make sql query in testsuite compatible with pg9.1
2024-07-03 12:38:48 +02:00
Badlop
992d84c002
Add JSON EUnit testing
2024-06-25 17:05:31 +02:00
Badlop
4819baaa07
Test: Update to the new webadmin pages
2024-06-19 17:59:38 +02:00
Badlop
ec13350b24
Test: Enable update_sql_schema
...
- Test: Enable update_sql_schema by default
- Update test/README about new option
- enable new_schema in tests
2024-05-24 13:21:19 +02:00
Badlop
1076f8bfc2
Test: Clear tables when ending a group, instead of when starting
...
Because a group may be started but the tables are not yet created,
as they are created automatically when update_sql_schema is enabled.
This modifies commit e2b79ea
2024-05-24 13:21:18 +02:00
Badlop
696e42b5b4
Use json module when Erlang/OTP 27, jiffy with older ones
2024-05-07 11:28:17 +02:00
Badlop
e973360aa7
Test: Fix some minor compilation warnings
...
- This QueryID is unnecessary since d3aeed8
, due to d6e9e03
- DB variable was added in d32a0ce
to detect riak and disable some tests,
but support for Riak was removed later in 3f7d9e3
.
- MyJID was added in 5b863c2
but was never actually used
- recv2 return should be checked
2024-04-19 01:50:42 +02:00
Paweł Chmielowski
8f20dd8425
Test retractons in mam_tests
2024-03-18 12:42:03 +01:00
Badlop
cdaf45f91c
Test: Check that the message we get is the welcome message, not other
2024-02-09 14:12:22 +01:00
Badlop
589521bfd8
Update copyright year to 2024 ( #4139 )
2024-01-22 17:29:13 +01:00
Paweł Chmielowski
d55955f7d8
Clean also urn:xmpp:bookmarks:1 after mod_private tests
2023-09-27 19:38:14 +02:00
Badlop
2bd61abd71
Convert allow_private_message MUC room option to allowpm ( #3736 )
2023-08-16 12:25:46 +02:00
Badlop
5cd6c524ea
Allow XML to be visible in web browser in Common Test page
2023-03-07 13:11:24 +01:00