Skip to content

test(backend): cover Slack file uploads offline - #100

Merged
johnnyhuy merged 1 commit into
mainfrom
ao/wingman-development-17/agent/issue-99-offline-file-uploads
Dec 3, 2026
Merged

johnnyhuy merged 1 commit into
mainfrom
ao/wingman-development-17/agent/issue-99-offline-file-uploads

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Run the Slack file-upload tests in the offline backend gate. The registered file_shared handler now has fixture coverage for saving and indexing a successful download before reacting, and for skipping all three actions when the download returns HTTP 403.

Closes #99

This standalone test slice has no user-facing change.

  • mise run install passed.
  • mise run test-backend passed with 313 tests.
  • mise run test-frontend passed with 58 tests.
  • mise run test-runtime passed with 23 tests on a retry with loopback access. The sandboxed attempt timed out in two localhost startup tests.
  • mise run validate-kubernetes passed.

Fixture output from mise run test-backend

tests/test_file_upload.py::test_file_shared_saves_and_indexes_download_before_acknowledging PASSED
tests/test_file_upload.py::test_file_shared_failed_download_skips_saving_indexing_and_acknowledgement PASSED
313 passed, 1069 warnings in 17.14s

The success fixture verifies the saved vpn-guide.txt record and upload metadata in SQLite, followed by mocked indexing and a mocked reaction. The HTTP 403 fixture verifies zero saved documents, index calls or reactions. Live Slack verification was outside this run's scope.

Co-authored-by: OpenAI Codex <noreply@openai.com>
@johnnyhuy
johnnyhuy merged commit b165b7c into main Dec 3, 2026
10 checks passed
@johnnyhuy
johnnyhuy deleted the ao/wingman-development-17/agent/issue-99-offline-file-uploads branch December 3, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cover Slack file uploads in the offline backend gate

1 participant