Skip to content

[Tests-Only] add tests for downloading file with range request - #38247

Merged
swoichha merged 1 commit into
masterfrom
tests-download-file-range
Dec 30, 2020
Merged

swoichha merged 1 commit into
masterfrom
tests-download-file-range

Conversation

@swoichha

@swoichha swoichha commented Dec 23, 2020 •

Copy link
Copy Markdown
Contributor

Description

This PR adds tests for downloading file with range request

Related Issue

How Has This Been Tested?

  • locally

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@swoichha swoichha self-assigned this Dec 23, 2020
@phil-davis

Copy link
Copy Markdown
Contributor

https://drone.owncloud.com/owncloud/core/28080/2/7 fails coding standard. Please run make test-php-style before pushing PRs.

@swoichha
swoichha force-pushed the tests-download-file-range branch from b8fe112 to 0aca4f9 Compare December 28, 2020 11:37
@swoichha
swoichha marked this pull request as ready for review December 28, 2020 11:43
@swoichha
swoichha force-pushed the tests-download-file-range branch from 0aca4f9 to dc67ceb Compare December 28, 2020 11:45

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if ownCloud10 will ever return a 416 "Range not satisfiable" - https://tools.ietf.org/html/rfc7233#section-4.4

It would be good to have a test scenario that asks for a range that is completely outside the file, and see what happens.

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we have to have "if" in the gherkin step text, because the "expected" result of a range request can be different things depending on the system-under-test.

@swoichha
swoichha force-pushed the tests-download-file-range branch 2 times, most recently from 991c175 to b2ecbec Compare December 29, 2020 10:29
@swoichha
swoichha requested a review from phil-davis December 29, 2020 10:33
@owncloud owncloud deleted a comment from phil-davis Dec 29, 2020
@swoichha
swoichha force-pushed the tests-download-file-range branch from 13865ff to b03cba2 Compare December 30, 2020 04:58
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

3 participants