We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e21b99a commit c07d913Copy full SHA for c07d913
internal/config/types_test.go
@@ -116,6 +116,14 @@ func TestTypes_isAllowedDir(t *testing.T) {
116
},
117
filePath: "/etc/nginx/level1/level2/level3/level4/nginx.conf",
118
119
+ {
120
+ name: "Test 13: Root directory is allowed, file in subdirectory",
121
+ allowed: true,
122
+ allowedDirs: []string{
123
+ "/",
124
+ },
125
+ filePath: "/etc/nginx/nginx.conf",
126
127
}
128
129
for _, test := range tests {
0 commit comments