Skip to content

Conversation

@acuanico-tr-galt
Copy link
Collaborator

Issue being resolved: #367

Solution description

Empty responses with HTTP 200 should be treated as valid for delete operations.

Changes

Update empty response handling.

Potential impacts

None.

Steps to test

Should be able to send test results with fallback or delete operations.

PR Tasks

  • PR reference added to issue
  • README updated
  • Unit tests added/updated

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where empty API responses with HTTP 200 status codes were incorrectly treated as errors. The primary change allows empty response bodies to be considered valid, particularly for operations like DELETE that may legitimately return no content.

Key changes:

  • Added logic to handle empty HTTP 200 responses as valid instead of triggering JSON decode errors
  • Updated version from 1.12.3 to 1.12.4
  • Added test coverage for empty response handling

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
trcli/api/api_client.py Added empty response validation logic and code formatting improvements
trcli/init.py Bumped version to 1.12.4
tests/test_api_client.py Added tests for empty response handling and metadata header functionality
README.md Updated version references to 1.12.4
CHANGELOG.MD Added release notes for version 1.12.4

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

@acuanico-tr-galt acuanico-tr-galt merged commit 1b4635e into main Nov 3, 2025
11 checks passed
@acuanico-tr-galt acuanico-tr-galt deleted the fix/GIT-367 branch November 3, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Couldn't upload automated test results from JUnit reports

1 participant