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

[tests-only]TUS tests for chunking with checksum #38471

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

swoichha
Copy link
Contributor

@swoichha swoichha commented Mar 5, 2021

Description

This PR adds test for TUS chunking with checksum.

Related Issue

How Has This Been Tested?

  • 🤖

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 requested a review from Talank March 9, 2021 06:52
Copy link
Contributor

@Talank Talank left a comment

Choose a reason for hiding this comment

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

LGTM

@individual-it
Copy link
Member

please make sure commit id and expected to fail files are updated in ocis and cs3org/reva

@sonarcloud
Copy link

sonarcloud bot commented Mar 9, 2021

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

@swoichha swoichha merged commit c771deb into master Mar 9, 2021
@delete-merged-branch delete-merged-branch bot deleted the tusTests-checksum-chunking branch March 9, 2021 10:48
@@ -161,6 +163,13 @@ public function userUploadsUsingTusAFileTo(
];
$headers = \array_merge($headers, $creationWithUploadHeader);
}
if ($checksum != '') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ($checksum != '') {
if (!$checksum) {

@@ -147,7 +148,8 @@ public function userUploadsUsingTusAFileTo(
string $destination,
array $uploadMetadata = [],
int $noOfChunks = 1,
int $bytes = null
int $bytes = null,
string $checksum = ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
string $checksum = ''
string $checksum = null

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.

4 participants