Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[tests-only][full-ci]Add valid tests that were removed by PR #5973 - #6047

Merged
phil-davis merged 2 commits into
masterfrom
restore-deleted-tests
Dec 2, 2021
Merged

phil-davis merged 2 commits into
masterfrom
restore-deleted-tests

Conversation

@SwikritiT

@SwikritiT SwikritiT commented Nov 23, 2021 •

Copy link
Copy Markdown
Contributor

Description

Some of the tests that are still valid were accidentally removed by PR #5973. This PR re-adds those tests. One of the added tests relating to versions was flaky so a little pause time is added and the function is refactored accordingly

Related Issue

Motivation and Context

How Has This Been Tested?

  • Locally
  • CI

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@SwikritiT SwikritiT self-assigned this Nov 23, 2021
@SwikritiT
SwikritiT force-pushed the restore-deleted-tests branch from 3fe76aa to a29312e Compare November 23, 2021 08:39
@SwikritiT SwikritiT changed the title [tests-only][full-ci]Add valid tests that were removed by PR [tests-only][full-ci]Add valid tests that were removed by PR #5973 Nov 23, 2021
Then the versions list should contain 1 entries

@issue-ocis-1328 @disablePreviews
Scenario: sharee can see the versions of a file

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.

Pretty sure this one was deleted as flaky(?) also failes CI in this PR

@SwikritiT SwikritiT Nov 24, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. It was skipped previously because of its flakiness but should it be entirely removed? I'll try to find out if it's the test timing problem or the backend issue. if it's the latter we can skip it again and probably create an issue

@SwikritiT
SwikritiT force-pushed the restore-deleted-tests branch 2 times, most recently from 43bc873 to e28f253 Compare November 29, 2021 06:51
@SwikritiT

Copy link
Copy Markdown
Contributor Author

After refactoring the function and making it similar to the delete function

exports.delete = async function (userId, file) {
(which also has a similar issue of timing) and increasing the wait time the test is passing even in multiple runs https://drone.owncloud.com/owncloud/web/20462/9/19. We can decide if we want to keep these changes and increase the time or not. If not the tests will have to be skipped in the oc10 backend

@SwikritiT
SwikritiT marked this pull request as ready for review November 29, 2021 08:04
@SwikritiT
SwikritiT requested review from Talank, dpakach and saw-jan and removed request for fschade and kulmann November 29, 2021 08:04
Comment on lines +204 to +205
if (timeSinceLastFileUpload <= 1600) {
await client.pause(1600 - timeSinceLastFileUpload)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adjusting this pause time to 1600 fixes the versions issue, the tests are passing even in multiple runs https://drone.owncloud.com/owncloud/web/20534/9/19

@fschade

fschade commented Nov 30, 2021

Copy link
Copy Markdown
Contributor

I excluded the oc10 test yesterday, can you please re enable it once this is stable? Thanks 😊

@disablePreviews @skipOnOC10 @issue-5853

@SwikritiT
SwikritiT force-pushed the restore-deleted-tests branch from c55c022 to b5beb4a Compare December 1, 2021 08:16
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2021

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    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

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingPubExpAndRoles https://drone.owncloud.com/owncloud/web/20576/39/1
The following scenarios passed on retry:

  • webUISharingPublicExpire/shareByPublicLinkExpiringLinks.feature:11

@phil-davis
phil-davis merged commit 0bf39e8 into master Dec 2, 2021
@delete-merged-branch
delete-merged-branch Bot deleted the restore-deleted-tests branch December 2, 2021 06:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants