25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00
xmpp.chapril.org-ejabberd/test
Evgeny Khramtsov 63259f5cc9 Improve private and MAM tests in order to reflect
database backends with limited capabilities
2019-01-14 19:33:23 +03:00
..
ejabberd_SUITE_data Increase validity of generated test ca cert and regenerate all certs 2018-09-24 15:19:19 +02:00
elixir-config Move mod_irc to ejabberd-contrib 2018-06-20 12:27:44 +03:00
announce_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
carbons_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
csi_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
ejabberd_SUITE.erl Change a way that tests start ejabberd 2019-01-09 18:33:39 +01:00
example_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
ldap_srv.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
mam_tests.erl Improve private and MAM tests in order to reflect 2019-01-14 19:33:23 +03:00
muc_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
offline_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
privacy_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
private_tests.erl Improve private and MAM tests in order to reflect 2019-01-14 19:33:23 +03:00
proxy65_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
pubsub_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
push_tests.erl Fix typo in comment 2019-01-10 11:07:24 +01:00
README Note about Redis requirement in the test suite README 2018-07-15 10:14:47 +03:00
README-quicktest.md Add logger macro to help troubleshooting Elixir tests 2016-04-01 11:11:42 +02:00
replaced_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
roster_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
sm_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
suite.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00
suite.hrl [test] Improve match macro 2018-09-14 20:27:59 +02:00
upload_tests.erl Update copyright to 2019 (#2756) 2019-01-08 22:53:27 +01:00
vcard_tests.erl Manually update 2017 copyright dates (#2756) 2019-01-08 22:52:26 +01:00

You need MySQL, PostgreSQL, Redis and Riak up and running.
MySQL should be accepting TCP connections on localhost:3306.
PostgreSQL should be accepting TCP connections on localhost:5432.
Redis should be accepting TCP connections on localhost:6379.
Riak should be accepting TCP connections on localhost:8087.
MySQL and PostgreSQL should grant full access to user 'ejabberd_test' with
password 'ejabberd_test' on database 'ejabberd_test'.
Riak should be configured with leveldb as a database backend and -pz
should be pointed to the directory with ejabberd BEAM files.

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;

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

-------------------
  Riak
-------------------
$ cat /etc/riak/vm.args
...
## Map/Reduce path
-pz /path/to/ejabberd/ebin
...

For version < 2.x:

$ cat /etc/riak/app.config:
...
 {riak_kv, [
            {storage_backend, riak_kv_eleveldb_backend},
...

For version >= 2.x:

$ cat /etc/riak/riak.conf:
...
storage_backend = leveldb
...