1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00
ejabberd/test
2025-07-07 17:42:05 +02:00
..
docker tests: update readme and compose to work with current sw versions 2025-06-17 13:10:27 +02:00
ejabberd_SUITE_data Replace options rtbl_host and rtbl_domains_node with rtbl_services 2025-07-07 17:42:05 +02:00
elixir-config Fix typos 2022-01-24 08:02:04 +08:00
announce_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
antispam_tests.erl Replace options rtbl_host and rtbl_domains_node with rtbl_services 2025-07-07 17:42:05 +02:00
carbons_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
commands_tests.erl mod_adhoc_api: New module to execute API Commands using Ad-Hoc Commands 2025-03-19 10:39:53 +01:00
configtest_tests.erl Add tests for config features define_macro and define_keyword 2025-03-18 13:40:21 +01:00
csi_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
ejabberd_SUITE.erl mod_antispam: add test suite 2025-06-17 13:10:27 +02:00
ejabberd_test_options.erl Add tests for config features define_macro and define_keyword 2025-03-18 13:40:21 +01:00
example_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
jidprep_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
json_test.erl Avoid using the "else" conditional compilation macro directive 2025-06-05 17:02:41 +02:00
ldap_srv.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
mam_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
mod_configtest.erl Add tests for config features define_macro and define_keyword 2025-03-18 13:40:21 +01:00
muc_tests.erl Remove unused MyNick variables 2025-04-22 12:27:09 +02:00
offline_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
privacy_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
private_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
proxy65_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
pubsub_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
push_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
README Test: Enable update_sql_schema 2024-05-24 13:21:19 +02:00
replaced_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
roster_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
sm_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
stundisco_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
suite.erl mod_antispam: test dump file 2025-06-17 13:18:13 +02:00
suite.hrl mod_antispam: add test suite 2025-06-17 13:10:27 +02:00
upload_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
vcard_tests.erl Update copyright year to 2025 (#4139) 2025-01-03 11:49:37 +01:00
webadmin_tests.erl Add support for storing multiple passwords formats per user 2025-03-26 11:03:39 +01:00

You need MySQL, MSSQL, PostgreSQL and Redis up and running.
MySQL should be accepting TCP connections on localhost:3306.
MSSQL should be accepting TCP connections on localhost:1433.
PostgreSQL should be accepting TCP connections on localhost:5432.
Redis should be accepting TCP connections on localhost:6379.
MySQL and PostgreSQL should grant full access to user 'ejabberd_test' with
password 'ejabberd_test' on database 'ejabberd_test'.
MSSQL should grant full access to user 'ejabberd_test' with
password 'ejabberd_Test1' on database 'ejabberd_test'.

Here is a quick setup example:

------------------
  PostgreSQL
------------------
$ psql template1
template1=# CREATE USER ejabberd_test WITH PASSWORD 'ejabberd_test';
template1=# CREATE DATABASE ejabberd_test;
template1=# GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test;
# If you disabled the update_sql_schema option, create the schema manually:
# $ psql ejabberd_test -f sql/pg.sql

-------------------
  MySQL
-------------------
$ mysql
mysql> CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test';
mysql> CREATE DATABASE ejabberd_test;
mysql> GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost';
# If you disabled the update_sql_schema option, create the schema manually:
# $ mysql ejabberd_test < sql/mysql.sql

-------------------
  MS SQL Server
-------------------
$ sqlcmd -U SA -P ejabberd_Test1 -S localhost
1> CREATE DATABASE ejabberd_test;
2> GO
1> USE ejabberd_test;
2> GO
Changed database context to 'ejabberd_test'.
1> CREATE LOGIN ejabberd_test WITH PASSWORD = 'ejabberd_Test1';
2> GO
1> CREATE USER ejabberd_test FOR LOGIN ejabberd_test;
2> GO
1> GRANT ALL TO ejabberd_test;
2> GO
The ALL permission is deprecated and maintained only for compatibility. It DOES NOT imply ALL permissions defined on the entity.
1> GRANT CONTROL ON SCHEMA ::dbo TO ejabberd_test;
2> GO
$ sqlcmd -U ejabberd_test -P ejabberd_Test1 -S localhost -d ejabberd_test -i sql/mssql.sql