Skip to content

[Tests-Only] Refactor reshare2 test suite to use root and share folder - #37919

Merged
phil-davis merged 2 commits into
masterfrom
enable-reshare-for-ocis
Sep 18, 2020
Merged

phil-davis merged 2 commits into
masterfrom
enable-reshare-for-ocis

Conversation

@dpakach

@dpakach dpakach commented Sep 18, 2020

Copy link
Copy Markdown
Contributor

Description

Split apiReshare2 test suite to 2 different test suites, one that uses the share folder and one in which shares are received in the root.

Related Issue

Motivation and Context

Receiving shares in the root folder is not available in ocis so this needs to be done so we can run the sharing tests in ocis.

How Has This Been Tested?

🤖

Screenshots (if appropriate):

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

@codecov

codecov Bot commented Sep 18, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #37919 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37919   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
  Complexity    19408    19408           
=========================================
  Files          1285     1285           
  Lines         75830    75830           
  Branches       1336     1336           
=========================================
  Hits          49101    49101           
  Misses        26335    26335           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <ø> (ø) 19408.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c49c6ee...58cb03e. Read the comment docs.

@phil-davis
phil-davis force-pushed the enable-reshare-for-ocis branch from c099ba7 to e3ef6c9 Compare September 18, 2020 09:54
@phil-davis

Copy link
Copy Markdown
Contributor

@dpakach while reviewing, I update the test expectations in some test steps. For the "negative" tests, when the reshare is expected to have failed, then we need to be careful about the Then file does not exist steps. There are billions of files that should not exist!

Maybe we should check multiple possibilities that might exist - e.g. have 2 steps and check that /textfile0.txt does not exist and that /Shares/textfile0.txt does not exist?

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.

2 participants