Add Sprocket Test Suite and Integration Scripts
This commit introduces a comprehensive test suite for the Sprocket integration, including various test scripts to validate functionality. Key additions include: - `run-sprocket-test.sh`: An automated test runner for Sprocket integration tests. - `SPROCKET_TEST_README.md`: Documentation detailing the test suite, criteria, and usage instructions. - `test-sprocket-complete.sh`: A complete test suite that sets up the relay and runs all tests. - `test-sprocket-manual.sh`: A manual testing script for interactive event testing. - `test-sprocket-demo.sh`: A demonstration script showcasing Sprocket functionality. - Additional test scripts for various scenarios, including normal events, spam detection, and blocked hashtags. These changes enhance the testing framework for the Sprocket system, ensuring robust validation of event processing capabilities.
This commit is contained in:
31
scripts/sprocket/test-sprocket.sh
Normal file
31
scripts/sprocket/test-sprocket.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Test script for sprocket functionality
|
||||
# This script demonstrates how to set up owner permissions and test sprocket
|
||||
|
||||
echo "=== Sprocket Test Setup ==="
|
||||
echo ""
|
||||
echo "To test the sprocket functionality, you need to:"
|
||||
echo ""
|
||||
echo "1. Generate a test keypair (if you don't have one):"
|
||||
echo " Use a Nostr client like Amethyst or Nostr Wallet Connect to generate an npub"
|
||||
echo ""
|
||||
echo "2. Set the ORLY_OWNERS environment variable:"
|
||||
echo " export ORLY_OWNERS=\"npub1your-npub-here\""
|
||||
echo ""
|
||||
echo "3. Start the relay with owner permissions:"
|
||||
echo " ORLY_OWNERS=\"npub1your-npub-here\" ./next.orly.dev"
|
||||
echo ""
|
||||
echo "4. Log in to the web interface using the corresponding private key"
|
||||
echo "5. Navigate to the Sprocket tab to access the script editor"
|
||||
echo ""
|
||||
echo "Example sprocket script:"
|
||||
echo "#!/bin/bash"
|
||||
echo "echo \"Sprocket is running!\""
|
||||
echo "while true; do"
|
||||
echo " echo \"Sprocket heartbeat: \$(date)\""
|
||||
echo " sleep 30"
|
||||
echo "done"
|
||||
echo ""
|
||||
echo "The sprocket script will be stored in ~/.config/ORLY/sprocket.sh"
|
||||
echo "and will be automatically started when the relay starts."
|
||||
Reference in New Issue
Block a user