Skip to content

Add integration tests.yml for hello function - #137

Draft
mraible wants to merge 3 commits into
mainfrom
add-hello-tests-yml
Draft

mraible wants to merge 3 commits into
mainfrom
add-hello-tests-yml

Conversation

@mraible

@mraible mraible commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Adds a tests.yml for the hello function with two integration test cases for the new foundry functions test command (CLI 2.1.0+):

  • valid_name: sends {"name": "Foundry"}, expects 200 + greeting
  • missing_name: sends {}, expects 400 + "missing name from request body"

These run against the deployed function, not local code. With this file in the repo, anyone who clones and deploys can run foundry functions test --function hello immediately.

Looking for feedback on whether integration test files like this belong in the sample repos alongside the existing unit tests (test_main.py).

Two test cases for the hello handler covering the happy path (valid name, expects 200 + greeting) and the error case (missing name, expects 400 + error message). These are integration tests for the new foundry functions test command (CLI 2.1.0+), which runs them against the deployed function.
@mraible
mraible requested a review from a team September 16, 2026 21:11
Three test cases: valid host ID (placeholder, replace with a real AID), missing host_id (400), and invalid host ID (404). Shows how to test a function that calls the FalconPy Hosts API.
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.

1 participant