Description
The SNMP Provider allows Keep to receive and process SNMP traps from network devices, converting them into alerts within the Keep platform.
- Add unit tests for SNMP provider with mock trap data validation
- Add e2e tests following docker-compose patterns (no subprocess.run)
- Add simulate_alert() method for e2e testing compatibility
- Update poetry.lock with SNMP dependencies (pysnmp-lextudio, pyasn1, pyasn1-modules)
- Add pyproject.toml dependencies for SNMP functionality
- Include documentation and UI assets for SNMP provider
Tests validate:
- SNMP provider listens correctly (scope validation)
- Transforms SNMP traps into Keep alerts (unit tests)
- Alerts show up in Keep UI/API (e2e tests)
- E2E tests use trigger_alert() pattern as requested
- ✅ No subprocess.run usage in tests ✅
Continued where https://github.com/keephq/keep/pull/4884 left off so I’d like to split the bounty if possible. @rahulrajesh21
Closes https://github.com/keephq/keep/issues/2112
/claim https://github.com/keephq/keep/issues/2112