HTTP server testing added #101
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ArkForgeLabs/Astra!101
Loading…
Reference in a new issue
No description provided.
Delete branch "http-server"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR introduces a mock server and automated test suite to validate Astra’s HTTP server functionality using Lust.
tests/mock_server.lua
• Implements a mock HTTP server with full CRUD operations
• Backed by a temporary SQLite database (posts_test.db)
tests/http_server.lua
• Provides end-to-end tests for POST, GET, PUT, and DELETE endpoints
• Uses Lust for assertions and schema validation checks
• Handles DB cleanup (.db, -wal, -shm) and graceful server shutdown after test execution
Looks good