25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00
xmpp.chapril.org-ejabberd/test
Stu Tomlinson b173ca2fd0 Fix docker DB initialization
The docker local copies of DB initialization scripts were out of sync
with the master copies. Instead of updating local copies, adjust docker
compose to reference master copies directly.

Also change docker config to use docker volumes instead of mounted
directories for all DB data.
2020-09-25 18:13:35 +01:00
..
docker Fix docker DB initialization 2020-09-25 18:13:35 +01:00
ejabberd_SUITE_data Option route_subdomains was deprecated and useless a year ago in ffe1c722 2020-06-08 15:27:18 +02:00
elixir-config Move mod_irc to ejabberd-contrib 2018-06-20 12:27:44 +03:00
announce_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
carbons_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
csi_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
ejabberd_SUITE.erl Run tests for mssql only if configured with --enable-mssql 2020-04-28 16:52:08 +02:00
example_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
jidprep_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
ldap_srv.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
mam_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
muc_tests.erl Revert service_subscription_subscribers test that is iconsistent (#2696) 2020-05-11 22:25:56 +02:00
offline_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
privacy_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
private_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
proxy65_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
pubsub_tests.erl Better error reporting in pubsub tests 2020-04-01 11:45:01 +02:00
push_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
README enable tests with mssql-backend (#3136) 2020-04-28 16:22:42 +02:00
replaced_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
roster_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
sm_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
stundisco_tests.erl Add tests for mod_stun_disco 2020-04-28 10:34:43 +02:00
suite.erl Run tests for mssql only if configured with --enable-mssql 2020-04-28 16:52:08 +02:00
suite.hrl enable tests with mssql-backend (#3136) 2020-04-28 16:22:42 +02:00
upload_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
vcard_tests.erl Update copyright to 2020 (#3149) 2020-01-28 15:49:23 +01:00
webadmin_tests.erl Don't replace %25 in webadmin test on older erlangs 2020-04-01 17:11:19 +02: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;
$ 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