Skip to content

Commit

Permalink
Merge pull request #3061 from esl/multi-tenancy-init
Browse files Browse the repository at this point in the history
Multi tenancy init
  • Loading branch information
arcusfelis authored Mar 27, 2021
2 parents bfc788d + 194e07a commit b5ad312
Show file tree
Hide file tree
Showing 16 changed files with 534 additions and 284 deletions.
29 changes: 29 additions & 0 deletions big_tests/tests/dynamic_domains_pm_SUITE.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-module(dynamic_domains_pm_SUITE).

%% API
-compile(export_all).
-import(distributed_helper, [mim/0, mim2/0, require_rpc_nodes/1, rpc/4]).

suite() ->
require_rpc_nodes([mim, mim2]).


all() ->
[can_authenticate].

init_per_suite(Config) ->
Domain = <<"example.com">>,
HostType = <<"test type">>,
Source = dummy_source,
rpc(mim(), mongoose_domain_core, insert, [Domain, HostType, Source]),
rpc(mim2(), mongoose_domain_core, insert, [Domain, HostType, Source]),
Config.

end_per_suite(Config) ->
rpc(mim(), mongoose_domain_core, delete, [<<"example.com">>]),
rpc(mim2(), mongoose_domain_core, delete, [<<"example.com">>]),
Config.

can_authenticate(Config) ->
%% TODO: implement later
ok.
Loading

0 comments on commit b5ad312

Please sign in to comment.