Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi tenancy init #3061

Merged
merged 18 commits into from
Mar 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
ccb6be9
fixing typos
DenysGonchar Mar 17, 2021
e235578
fixing race condition at mongoose_domain_loader:check_for_updates/2
DenysGonchar Mar 22, 2021
5ea6e78
implementing proper init for mongoose_domain_core
DenysGonchar Mar 22, 2021
1be30c4
adding basic unit tests for mongoose_domain_core
DenysGonchar Mar 22, 2021
e93a77b
basic suite for testing 1-2-1 messages fordynamic domains
DenysGonchar Mar 22, 2021
960650f
adding tracking of the source pid for the added dynamic domains
DenysGonchar Mar 23, 2021
6b5ae8d
avoiding mongoose_domain_core crashes in service_domain_db:init/1
DenysGonchar Mar 23, 2021
360ae08
avoid node crashes if service_domain_db goes out of sync
DenysGonchar Mar 23, 2021
cd9ca2a
applying changes after review
DenysGonchar Mar 23, 2021
4e5aad0
moving last event id to persistent_term storage
DenysGonchar Mar 24, 2021
fe627f8
some more changes after code review
DenysGonchar Mar 26, 2021
9743f99
fixing and renaming db_initial_load_crashes_node testcase
DenysGonchar Mar 26, 2021
8110cee
adding db_restarts_properly test case for service_domain_db
DenysGonchar Mar 26, 2021
95a40e9
removing 'test type' host type configuration from default mongooseim.…
DenysGonchar Mar 26, 2021
7170272
setting source for domain names in mongoose_domain_core explicitely
DenysGonchar Mar 26, 2021
b8e04cb
making endless recursion impossible in mongoose_domain_sql
DenysGonchar Mar 26, 2021
86e8fd8
extending mongoose_domain_core_SUITE
DenysGonchar Mar 27, 2021
194e07a
Merge remote-tracking branch 'origin/multi-tenancy-phase-1' into mult…
DenysGonchar Mar 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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