Testing Guide
Testing HoneyBee components.
Testing HoneyBee Core
Unit Tests
cd honeybee_core
cargo test
Integration Tests
# Run with test configuration
cargo test --test integration
Testing HoneyBee Node
Unit Tests
cd honeybee_node
make test
Integration Tests
# Test with mock Core
go test ./internal/... -v
Testing Honeypots
Test Cowrie
# Install Cowrie
cd honeybee_potstore/cowrie
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Start Cowrie
bin/cowrie start
# Test SSH connection
ssh -p 2222 admin@localhost
Test HonnyPotter
# Start PHP server
cd honeybee_potstore/HonnyPotter
php -S 0.0.0.0:8080 standalone.php
# Test login
curl -X POST http://localhost:8080/standalone.php \
-d "log=admin&pwd=password123"
End-to-End Testing
- Start HoneyBee Core
- Start HoneyBee Node
- Verify node registration
- Install honeypot
- Generate test attack
- Verify event forwarding
Next Steps
- Building from Source - Build components
- Contributing - Contribution guidelines