Merge pull request #1203 from emqtt/develop
Add test case for hot configuration
This commit is contained in:
commit
1ef47cc0fe
|
@ -15,6 +15,13 @@
|
|||
%%--------------------------------------------------------------------
|
||||
|
||||
%% @doc Hot Configuration
|
||||
%%
|
||||
%% TODO: How to persist the configuration?
|
||||
%%
|
||||
%% 1. Store in mnesia database?
|
||||
%% 2. Store in dets?
|
||||
%% 3. Store in data/app.config?
|
||||
%%
|
||||
|
||||
-module(emqttd_config).
|
||||
|
||||
|
@ -25,7 +32,7 @@
|
|||
%% @doc Read the configuration of an application.
|
||||
-spec(read(atom()) -> {ok, list(env())} | {error, term()}).
|
||||
read(_App) ->
|
||||
%% TODO
|
||||
%% TODO:
|
||||
%% 1. Read the app.conf from etc folder
|
||||
%% 2. Cuttlefish to read the conf
|
||||
%% 3. Return the terms and schema
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
%%--------------------------------------------------------------------
|
||||
%% Copyright (c) 2013-2017 EMQ Enterprise, Inc. (http://emqtt.io)
|
||||
%%
|
||||
%% Licensed under the Apache License, Version 2.0 (the "License");
|
||||
%% you may not use this file except in compliance with the License.
|
||||
%% You may obtain a copy of the License at
|
||||
%%
|
||||
%% http://www.apache.org/licenses/LICENSE-2.0
|
||||
%%
|
||||
%% Unless required by applicable law or agreed to in writing, software
|
||||
%% distributed under the License is distributed on an "AS IS" BASIS,
|
||||
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
%% See the License for the specific language governing permissions and
|
||||
%% limitations under the License.
|
||||
%%--------------------------------------------------------------------
|
||||
|
||||
-module(emqttd_config_SUITE).
|
||||
|
||||
-compile(export_all).
|
||||
|
||||
-include("emqttd.hrl").
|
||||
|
||||
all() -> [].
|
||||
|
||||
groups() -> [].
|
||||
|
Loading…
Reference in New Issue