Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamdecaf/badnet
Simulating bad networks without injecting net.Conn
https://github.com/adamdecaf/badnet
chaos-engineering fault-injection network
Last synced: 4 months ago
JSON representation
Simulating bad networks without injecting net.Conn
- Host: GitHub
- URL: https://github.com/adamdecaf/badnet
- Owner: adamdecaf
- License: apache-2.0
- Created: 2023-09-08T20:05:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-04T14:03:06.000Z (5 months ago)
- Last Synced: 2024-09-05T18:29:36.912Z (5 months ago)
- Topics: chaos-engineering, fault-injection, network
- Language: Go
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## badnet
`badnet` is a lightweight TCP proxy that sits in the middle of your tests and what they're trying to connect to. badnet sits outside of your application or tests to help simulate real network failures without modifying application code.
1. Setup a proxy
1. Connect your application
1. Run typical testsFuture Ideas
- Add channel / helpers to modify proxy behavior in the middle of an integration testRelated
- https://pkg.go.dev/go4.org/net/throttle#Rate
- https://pkg.go.dev/io#LimitReader
- https://pkg.go.dev/golang.org/x/[email protected]/netutil
- https://pkg.go.dev/golang.org/x/[email protected]/proxy
- https://github.com/Shopify/toxiproxy
- https://pkg.go.dev/github.com/cevatbarisyilmaz/lossy#section-readme