Skip to content

test cases#9

Closed
smptr0911 wants to merge 1 commit into
mainfrom
working_branch
Closed

test cases#9
smptr0911 wants to merge 1 commit into
mainfrom
working_branch

Conversation

@smptr0911

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 24, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a lightweight localhost smoke test for the FastAPI submission endpoint and documents how to run it for local verification.

Changes:

  • Added scripts/test_localhost.sh to POST a sample payload to /api/submit/exec-form and validate a successful response.
  • Updated README.md with instructions to run the localhost smoke test (including overriding the base URL).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
scripts/test_localhost.sh New bash smoke test that calls the localhost API and asserts HTTP 200 + success message.
README.md Documentation for running the new localhost smoke test script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/test_localhost.sh
Comment on lines +25 to +30
trap 'rm -f "$TMP_BODY"' EXIT

HTTP_CODE="$(curl -sS -o "$TMP_BODY" -w "%{http_code}" \
-X POST "$ENDPOINT" \
-H "Content-Type: application/json" \
-d "$PAYLOAD")"
Comment thread README.md
Comment on lines +13 to +17
After the API is running on port 8080, run this smoke test:

```bash
bash scripts/test_localhost.sh
```
@smptr0911 smptr0911 closed this May 24, 2026
@smptr0911 smptr0911 deleted the working_branch branch May 24, 2026 10:32
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.

2 participants