mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Add Riak backend to the testing suit
This commit is contained in:
parent
e82219185b
commit
a60dd672b7
@ -68,6 +68,8 @@ init_per_group(ldap, Config) ->
|
|||||||
set_opt(server, ?LDAP_VHOST, Config);
|
set_opt(server, ?LDAP_VHOST, Config);
|
||||||
init_per_group(extauth, Config) ->
|
init_per_group(extauth, Config) ->
|
||||||
set_opt(server, ?EXTAUTH_VHOST, Config);
|
set_opt(server, ?EXTAUTH_VHOST, Config);
|
||||||
|
init_per_group(riak, Config) ->
|
||||||
|
set_opt(server, ?RIAK_VHOST, Config);
|
||||||
init_per_group(_GroupName, Config) ->
|
init_per_group(_GroupName, Config) ->
|
||||||
Pid = start_event_relay(),
|
Pid = start_event_relay(),
|
||||||
set_opt(event_relay, Pid, Config).
|
set_opt(event_relay, Pid, Config).
|
||||||
@ -84,6 +86,8 @@ end_per_group(ldap, _Config) ->
|
|||||||
ok;
|
ok;
|
||||||
end_per_group(extauth, _Config) ->
|
end_per_group(extauth, _Config) ->
|
||||||
ok;
|
ok;
|
||||||
|
end_per_group(riak, _Config) ->
|
||||||
|
ok;
|
||||||
end_per_group(_GroupName, Config) ->
|
end_per_group(_GroupName, Config) ->
|
||||||
stop_event_relay(Config),
|
stop_event_relay(Config),
|
||||||
ok.
|
ok.
|
||||||
@ -178,6 +182,54 @@ db_tests() ->
|
|||||||
[roster_remove_master,
|
[roster_remove_master,
|
||||||
roster_remove_slave]}].
|
roster_remove_slave]}].
|
||||||
|
|
||||||
|
db_tests(riak) ->
|
||||||
|
%% No support for mod_pubsub
|
||||||
|
[{single_user, [sequence],
|
||||||
|
[test_register,
|
||||||
|
auth_plain,
|
||||||
|
auth_md5,
|
||||||
|
presence_broadcast,
|
||||||
|
last,
|
||||||
|
roster_get,
|
||||||
|
private,
|
||||||
|
privacy,
|
||||||
|
blocking,
|
||||||
|
vcard,
|
||||||
|
muc_single,
|
||||||
|
test_unregister]},
|
||||||
|
{test_roster_subscribe, [parallel],
|
||||||
|
[roster_subscribe_master,
|
||||||
|
roster_subscribe_slave]},
|
||||||
|
{test_offline, [sequence],
|
||||||
|
[offline_master, offline_slave]},
|
||||||
|
{test_roster_remove, [parallel],
|
||||||
|
[roster_remove_master,
|
||||||
|
roster_remove_slave]}];
|
||||||
|
db_tests(_) ->
|
||||||
|
[{single_user, [sequence],
|
||||||
|
[test_register,
|
||||||
|
auth_plain,
|
||||||
|
auth_md5,
|
||||||
|
presence_broadcast,
|
||||||
|
last,
|
||||||
|
roster_get,
|
||||||
|
roster_ver,
|
||||||
|
private,
|
||||||
|
privacy,
|
||||||
|
blocking,
|
||||||
|
vcard,
|
||||||
|
muc_single,
|
||||||
|
pubsub,
|
||||||
|
test_unregister]},
|
||||||
|
{test_roster_subscribe, [parallel],
|
||||||
|
[roster_subscribe_master,
|
||||||
|
roster_subscribe_slave]},
|
||||||
|
{test_offline, [sequence],
|
||||||
|
[offline_master, offline_slave]},
|
||||||
|
{test_roster_remove, [parallel],
|
||||||
|
[roster_remove_master,
|
||||||
|
roster_remove_slave]}].
|
||||||
|
|
||||||
ldap_tests() ->
|
ldap_tests() ->
|
||||||
[{ldap_tests, [sequence],
|
[{ldap_tests, [sequence],
|
||||||
[test_auth,
|
[test_auth,
|
||||||
@ -192,9 +244,10 @@ groups() ->
|
|||||||
[{ldap, [sequence], ldap_tests()},
|
[{ldap, [sequence], ldap_tests()},
|
||||||
{extauth, [sequence], extauth_tests()},
|
{extauth, [sequence], extauth_tests()},
|
||||||
{no_db, [sequence], no_db_tests()},
|
{no_db, [sequence], no_db_tests()},
|
||||||
{mnesia, [sequence], db_tests()},
|
{mnesia, [sequence], db_tests(mnesia)},
|
||||||
{mysql, [sequence], db_tests()},
|
{mysql, [sequence], db_tests(mysql)},
|
||||||
{pgsql, [sequence], db_tests()}].
|
{pgsql, [sequence], db_tests(pgsql)},
|
||||||
|
{riak, [sequence], db_tests(riak)}].
|
||||||
|
|
||||||
all() ->
|
all() ->
|
||||||
[{group, ldap},
|
[{group, ldap},
|
||||||
@ -203,6 +256,7 @@ all() ->
|
|||||||
{group, mysql},
|
{group, mysql},
|
||||||
{group, pgsql},
|
{group, pgsql},
|
||||||
{group, extauth},
|
{group, extauth},
|
||||||
|
{group, riak},
|
||||||
stop_ejabberd].
|
stop_ejabberd].
|
||||||
|
|
||||||
stop_ejabberd(Config) ->
|
stop_ejabberd(Config) ->
|
||||||
|
@ -147,6 +147,44 @@ Welcome to this XMPP server."
|
|||||||
welcome_message:
|
welcome_message:
|
||||||
subject: "Welcome!"
|
subject: "Welcome!"
|
||||||
body: "Hi.
|
body: "Hi.
|
||||||
|
Welcome to this XMPP server."
|
||||||
|
mod_stats: []
|
||||||
|
mod_time: []
|
||||||
|
mod_version: []
|
||||||
|
"riak.localhost":
|
||||||
|
auth_method: riak
|
||||||
|
modules:
|
||||||
|
mod_announce:
|
||||||
|
db_type: riak
|
||||||
|
mod_blocking:
|
||||||
|
db_type: riak
|
||||||
|
mod_caps:
|
||||||
|
db_type: riak
|
||||||
|
mod_last:
|
||||||
|
db_type: riak
|
||||||
|
mod_muc:
|
||||||
|
db_type: riak
|
||||||
|
mod_offline:
|
||||||
|
db_type: riak
|
||||||
|
mod_privacy:
|
||||||
|
db_type: riak
|
||||||
|
mod_private:
|
||||||
|
db_type: riak
|
||||||
|
mod_roster:
|
||||||
|
versioning: true
|
||||||
|
store_current_id: true
|
||||||
|
db_type: riak
|
||||||
|
mod_vcard:
|
||||||
|
db_type: riak
|
||||||
|
mod_adhoc: []
|
||||||
|
mod_configure: []
|
||||||
|
mod_disco: []
|
||||||
|
mod_ping: []
|
||||||
|
mod_proxy65: []
|
||||||
|
mod_register:
|
||||||
|
welcome_message:
|
||||||
|
subject: "Welcome!"
|
||||||
|
body: "Hi.
|
||||||
Welcome to this XMPP server."
|
Welcome to this XMPP server."
|
||||||
mod_stats: []
|
mod_stats: []
|
||||||
mod_time: []
|
mod_time: []
|
||||||
@ -186,6 +224,7 @@ hosts:
|
|||||||
- "pgsql.localhost"
|
- "pgsql.localhost"
|
||||||
- "extauth.localhost"
|
- "extauth.localhost"
|
||||||
- "ldap.localhost"
|
- "ldap.localhost"
|
||||||
|
- "riak.localhost"
|
||||||
access:
|
access:
|
||||||
announce:
|
announce:
|
||||||
admin: allow
|
admin: allow
|
||||||
@ -258,4 +297,4 @@ Welcome to this XMPP server."
|
|||||||
registration_timeout: infinity
|
registration_timeout: infinity
|
||||||
shaper:
|
shaper:
|
||||||
fast: 50000
|
fast: 50000
|
||||||
normal: 1000
|
normal: 1000
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
-define(PGSQL_VHOST, <<"pgsql.localhost">>).
|
-define(PGSQL_VHOST, <<"pgsql.localhost">>).
|
||||||
-define(LDAP_VHOST, <<"ldap.localhost">>).
|
-define(LDAP_VHOST, <<"ldap.localhost">>).
|
||||||
-define(EXTAUTH_VHOST, <<"extauth.localhost">>).
|
-define(EXTAUTH_VHOST, <<"extauth.localhost">>).
|
||||||
|
-define(RIAK_VHOST, <<"riak.localhost">>).
|
||||||
|
|
||||||
insert(Val, N, Tuple) ->
|
insert(Val, N, Tuple) ->
|
||||||
L = tuple_to_list(Tuple),
|
L = tuple_to_list(Tuple),
|
||||||
|
Loading…
Reference in New Issue
Block a user