Skip to content

Commit 7124dc3

Browse files
committed
nap paths to default agent configuration
1 parent bbd05e9 commit 7124dc3

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

internal/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ func agentConfig() *Config {
791791
},
792792
AllowedDirectories: []string{
793793
"/etc/nginx/", "/etc/nginx-agent/", "/usr/local/etc/nginx/", "/var/run/nginx/", "/var/log/nginx/",
794-
"/usr/share/nginx/modules/",
794+
"/usr/share/nginx/modules/", "/opt/app_protect/", "/etc/app_protect/",
795795
},
796796
Collector: &Collector{
797797
ConfigPath: "/etc/nginx-agent/nginx-agent-otelcol.yaml",

internal/watcher/instance/nginx-app-protect-instance-watcher_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package instance
88
import (
99
"context"
1010
"os"
11-
"slices"
1211
"testing"
1312
"time"
1413

@@ -96,13 +95,6 @@ func TestNginxAppProtectInstanceWatcher_Watch(t *testing.T) {
9695
},
9796
)
9897

99-
assert.True(t,
100-
slices.Contains(
101-
nginxAppProtectInstanceWatcher.agentConfig.AllowedDirectories,
102-
napDirPath,
103-
),
104-
)
105-
10698
go nginxAppProtectInstanceWatcher.Watch(ctx, instancesChannel)
10799

108100
t.Run("Test 1: New instance", func(t *testing.T) {

0 commit comments

Comments
 (0)