buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://goreplay.org
Other
18.46k stars 9 forks source link

add GetInitMessage and WriteBeforeMessage to output_tcp.go #1193

Closed ivan-stankov-salt-security closed 11 months ago

ivan-stankov-salt-security commented 1 year ago

add GetInitMessage and WriteBeforeMessage to TCPOutputConfig in file output_tcp.go.

Allow to inject initial message in the conversation using the GetInitMessage function. Allow to inject header message before each sent message using the WriteBeforeMessage function.

Added unit tests.

ghost commented 1 year ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/buger/goreplay/1193/f4301797/3116e541a84df8b788dc2d804f2bd2287426d2da.svg)](https://app.codesee.io/r/reviews?pr=1193&src=https%3A%2F%2Fgithub.com%2Fbuger%2Fgoreplay) #### Legend CodeSee Map legend
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

buger commented 1 year ago

I assume it does not get used in current database, and this hooks are needed for the forks.

ivan-stankov-salt-security commented 1 year ago

I assume it does not get used in current database, and this hooks are needed for the forks.

yes