-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding host_types file parsing test case
- Loading branch information
1 parent
9958848
commit f991ee2
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{config,host_types, | ||
[<<"this is host type">>,<<"some host type">>,<<"another host type">>, | ||
<<"yet another host type">>]}. | ||
{local_config,{modules,<<"another host type">>},[{another_dummy_module,[]}]}. | ||
{local_config,{modules,<<"some host type">>},[]}. | ||
{local_config,{modules,<<"this is host type">>},[]}. | ||
{local_config,{modules,<<"yet another host type">>},[{dummy_module,[]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[general] | ||
host_types = [ | ||
"this is host type", | ||
"some host type", | ||
"another host type", | ||
"yet another host type" | ||
] | ||
|
||
[modules.dummy_module] | ||
|
||
[[host_config]] | ||
host_type = "this is host type" | ||
## this resets the modules for this host | ||
modules ={} | ||
|
||
[[host_config]] | ||
## host is just synonym for host_type now | ||
host = "some host type" | ||
## another syntax for reseting the modules for this host type | ||
[host_config.modules] | ||
|
||
[[host_config]] | ||
host_type = "another host type" | ||
## reseting the modules for this host type | ||
[host_config.modules.another_dummy_module] |