Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acc: Fix RecordRequests to support requests without body #2333

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

denik
Copy link
Contributor

@denik denik commented Feb 10, 2025

Changes

Do not paste request body into output if it's not a valid JSON.

Tests

While working on #2334 I found that if I try to record a test that calls /api/2.0/preview/scim/v2/Me which has no request body, it crashes.

@denik denik temporarily deployed to test-trigger-is February 10, 2025 21:19 — with GitHub Actions Inactive
@denik denik marked this pull request as ready for review February 10, 2025 21:35
@denik denik changed the title Fix RecordRequests to support requests without body acc: Fix RecordRequests to support requests without body Feb 10, 2025
@denik denik force-pushed the denik/record-requests-no-body branch from 4422e74 to 7eacb4c Compare February 11, 2025 08:57
@denik denik temporarily deployed to test-trigger-is February 11, 2025 08:57 — with GitHub Actions Inactive
@denik denik force-pushed the denik/verify-local-test branch from 8b5891f to feb1beb Compare February 11, 2025 10:09
@denik denik force-pushed the denik/record-requests-no-body branch from 7eacb4c to 87e11c6 Compare February 11, 2025 10:11
@denik denik temporarily deployed to test-trigger-is February 11, 2025 10:11 — with GitHub Actions Inactive
@denik denik requested a review from shreyas-goenka February 11, 2025 10:15
Only disallow RecordRequests & CLOUD_ENV. Having [[Server]] is okay - we just should not use it.

don't raise
@denik denik force-pushed the denik/verify-local-test branch from feb1beb to 7c3ee39 Compare February 11, 2025 10:18
@denik denik force-pushed the denik/record-requests-no-body branch from 87e11c6 to c89fd8a Compare February 11, 2025 10:19
@denik denik temporarily deployed to test-trigger-is February 11, 2025 10:19 — with GitHub Actions Inactive
Base automatically changed from denik/verify-local-test to main February 11, 2025 10:44
@denik denik added this pull request to the merge queue Feb 11, 2025
Merged via the queue into main with commit 878fa80 Feb 11, 2025
8 checks passed
@denik denik deleted the denik/record-requests-no-body branch February 11, 2025 10:57
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