Skip to content

Commit

Permalink
Add additional json specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekStrickland committed Feb 28, 2022
1 parent 89b4f3c commit 5909792
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions command/agent/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,13 @@ func TestConfig_LoadConsulTemplate_FunctionDenylist(t *testing.T) {
FunctionDenylist: []string{""},
},
},
{
"test-resources/client_with_function_denylist_empty_string.json",
&client.ClientTemplateConfig{
DisableSandbox: true,
FunctionDenylist: []string{""},
},
},
{
"test-resources/client_with_function_denylist_nil.hcl",
&client.ClientTemplateConfig{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"client": {
"enabled": true,
"template": {
"disable_file_sandbox": true,
"function_denylist": [
""
]
}
}
}

0 comments on commit 5909792

Please sign in to comment.