Skip to content

Commit 97b9c1f

Browse files
committed
integration tests
1 parent f3555e2 commit 97b9c1f

File tree

7 files changed

+50302
-15
lines changed

7 files changed

+50302
-15
lines changed

internal/file/file_operator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (fo *FileOperator) WriteChunkedFile(
9494
return createError
9595
}
9696

97+
slog.DebugContext(ctx, "Writing chunked file", "file", file.GetFileMeta().GetName())
9798
for i := uint32(0); i < header.GetChunks(); i++ {
9899
chunk, recvError := stream.Recv()
99100
if recvError != nil {
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# /etc/nginx-agent/nginx-agent.conf
3+
#
4+
# Configuration file for NGINX Agent.
5+
#
6+
7+
log:
8+
level: debug
9+
10+
command:
11+
server:
12+
host: managementPlane
13+
port: 9092
14+
15+
16+
client:
17+
grpc:
18+
max_file_size: 493568
19+
file_chunk_size: 246784
20+
21+
allowed_directories:
22+
- /etc/nginx
23+
- /usr/local/etc/nginx
24+
- /usr/share/nginx/modules
25+
- /var/run/nginx
26+
- /var/log/nginx

0 commit comments

Comments
 (0)