xmpp.chapril.org-ejabberd/test
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
..
docker Fix TSQLlint warnings in MSSQL test script 2023-02-21 18:17:25 +01:00
ejabberd_SUITE_data Fix Prospector and Pylint warnings in test extauth.py 2023-02-21 18:14:02 +01:00
elixir-config Fix typos 2022-01-24 08:02:04 +08:00
README enable tests with mssql-backend (#3136) 2020-04-28 16:22:42 +02:00
announce_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
carbons_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
csi_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
ejabberd_SUITE.erl Test: Check that the message we get is the welcome message, not other 2024-02-09 14:12:22 +01:00
example_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
jidprep_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
ldap_srv.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
mam_tests.erl Test: Fix some minor compilation warnings 2024-04-19 01:50:42 +02:00
muc_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
offline_tests.erl Test: Fix some minor compilation warnings 2024-04-19 01:50:42 +02:00
privacy_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
private_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
proxy65_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
pubsub_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
push_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
replaced_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
roster_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
sm_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
stundisco_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
suite.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
suite.hrl Miscellaneous rebar3 fixes 2020-09-23 15:52:21 +01:00
upload_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00
vcard_tests.erl Test: Fix some minor compilation warnings 2024-04-19 01:50:42 +02:00
webadmin_tests.erl Update copyright year to 2024 (#4139) 2024-01-22 17:29:13 +01:00

README

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;
$ 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';
$ 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