Skip to content

[TASK] Add tests for large HTTP request bodies - #581

Closed
Kanti wants to merge 1 commit into
webdevops:masterfrom
andersundsehr:test/large-request-body
Closed

Kanti wants to merge 1 commit into
webdevops:masterfrom
andersundsehr:test/large-request-body

Conversation

@Kanti

@Kanti Kanti commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

The existing webserver tests check that Nginx starts and responds to small requests. Large uploads can still fail with HTTP 500 when Nginx cannot access the directories used to store temporary request bodies.

This PR adds a shared Serverspec test that sends a 1 MiB request body over HTTP and HTTPS. The PHP fixture returns the received byte count and SHA-256 checksum, allowing the test to verify that the complete body arrived intact.

The test runs through the existing production and development webserver collections, covering PHP/Nginx and PHP/Apache without pipeline changes.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@Kanti Kanti closed this Oct 13, 2026
@Kanti
Kanti deleted the test/large-request-body branch October 13, 2026 07:15
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