Skip to content

Commit

Permalink
fix: replace mock tests with real tests in http logger (#9538)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup authored Jun 6, 2023
1 parent 01c583d commit 7e3b402
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 102 deletions.
3 changes: 2 additions & 1 deletion ci/pod/docker-compose.plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,13 @@ services:
- ./ci/pod/vector:/etc/vector/
- ./t/certs:/certs
ports:
- '3000:3000'
- '3000:3000' #tcp logger
- '8127:8127/udp'
- '43000:43000'
- '5140:5140'
- "18088:18088" # For splunk logging tests
- '5150:5150/udp'
- "3001:3001" #http logger
networks:
vector_net:

Expand Down
12 changes: 11 additions & 1 deletion ci/pod/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ port_key = "port"
shutdown_timeout_secs = 30
socket_file_mode = 511

[sources.log-from-http]
type = "http_server"
address = "0.0.0.0:3001"

[sources.log-from-udp]
type = "socket"
address = "0.0.0.0:8127"
Expand Down Expand Up @@ -60,7 +64,7 @@ valid_tokens = [
]

[sinks.log-2-console]
inputs = [ "log-from-tcp", "log-from-tls", "log-from-syslog-tcp", "log-from-syslog-udp", "log-from-udp", "log-from-splunk"]
inputs = [ "log-from-tcp", "log-from-tls", "log-from-syslog-tcp", "log-from-syslog-udp", "log-from-udp", "log-from-splunk", "log-from-http"]
type = "console"
encoding.codec = "json"

Expand All @@ -70,6 +74,12 @@ type = "file"
encoding.codec = "text"
path = "/etc/vector/tcp.log"

[sinks.log-2-http-file]
inputs = [ "log-from-http" ]
type = "file"
encoding.codec = "text"
path = "/etc/vector/http.log"

[sinks.log-2-udp-file]
inputs = [ "log-from-udp" ]
type = "file"
Expand Down
Loading

0 comments on commit 7e3b402

Please sign in to comment.