Test Infrastructure

Comprehensive test suites covering all protocols and interfaces with production/test environment isolation.

Test Suites

test_gdata.py - Python HTTP API integration tests

test_http.sh - Bash HTTP protocol validation

test_stdin.sh - STDIN protocol testing

test_stdin2.sh - Extended STDIN protocol tests

Environment Isolation

Production and test environments completely separated:

• Production: Port 8021, .agent_notes.gdbm

• Testing: Port 8020, .test.gdbm

• Configuration: .gdata_server_test.yaml for test settings

Test Coverage

• HTTP REST API (GET, PUT, DELETE, POST operations)

• STDIN request/response protocol

• Database operations and JSON handling

• Notes client command-line interface

• Error handling and edge cases

Running Tests

# Start test server
./start_test_server.sh

# Run test suites
python test_gdata.py
./test_http.sh
./test_stdin.sh