Skip to content

Commit

Permalink
Add a test for empty local provider (#6894)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0ac7fd0)
  • Loading branch information
swiatekm authored and mergify[bot] committed Feb 18, 2025
1 parent 773e4e0 commit 7354552
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/pkg/composable/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ func TestProvidersDefaultDisabled(t *testing.T) {
observed: []string{"env.var1", "host.name"}, // has observed but explicitly disabled
context: nil, // should have none
},
{
name: "default disabled, local provider without data",
cfg: map[string]interface{}{
"agent.providers.initial_default": "false",
"providers": map[string]any{
"local": map[string]any{},
},
},
},
{
name: "default enabled",
cfg: map[string]interface{}{
Expand Down

0 comments on commit 7354552

Please sign in to comment.