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

[tests-only] added e2e test to receive two shares with same name - #10488

Merged
saw-jan merged 3 commits into
masterfrom
receive-two-share-with-same-name
Feb 21, 2024
Merged

saw-jan merged 3 commits into
masterfrom
receive-two-share-with-same-name

Conversation

@PrajwolAmatya

Copy link
Copy Markdown
Contributor

Description

In this PR,

  • removed web UI test to accept two shares with same name
  • added e2e test to accept two shares with same name

Related Issue

Motivation and Context

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)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@PrajwolAmatya PrajwolAmatya self-assigned this Feb 15, 2024
@PrajwolAmatya PrajwolAmatya mentioned this pull request Feb 15, 2024
17 of 18 tasks
@PrajwolAmatya
PrajwolAmatya force-pushed the receive-two-share-with-same-name branch from f04396b to 5cb5f11 Compare February 19, 2024 11:09
@PrajwolAmatya
PrajwolAmatya marked this pull request as ready for review February 19, 2024 11:10
@PrajwolAmatya
PrajwolAmatya force-pushed the receive-two-share-with-same-name branch from 5cb5f11 to cf4b0c9 Compare February 19, 2024 11:12
Comment on lines +196 to +200
| testfile.txt |
| testfile (1).txt |
# https://github.com/owncloud/ocis/issues/8471
# | test-folder |
# | test-folder (1) |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

issue is only for folder shares?

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 see that works
image

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.

The issue might occur for files as well as in this issue owncloud/ocis#8471.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

then will the test get flaky if we keep testfile (1).txt?

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.

In this scenario, the shares list for the user is:

testfile.txt
testfile (1).txt
test-folder
test-folder (2)

While i did it manually, the shares list for the user is:

testfile.txt
testfile (3).txt
test-folder
test-folder (1)

Not so sure why we get different results while testing manually and in automation.


- [webUIUpload/upload.feature:43](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIUpload/upload.feature#L43)

### [PROPFIND to sub-folder of a shared resources with same name gives 404](https://github.com/owncloud/ocis/issues/3859)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what is the status of this issue? I see it is still open

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.

The mentioned issue doesn't exist on the latest oCIS master. The expected behavior (1) to be added on the second share with same name, and resources can be accessed via propfind. So, that issue is closed now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Then please, find the API test coverage for that one and if there is none we have to add one

@PrajwolAmatya
PrajwolAmatya force-pushed the receive-two-share-with-same-name branch 2 times, most recently from 2b3df1d to cea4a1a Compare February 21, 2024 08:29

@saw-jan saw-jan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@PrajwolAmatya
PrajwolAmatya force-pushed the receive-two-share-with-same-name branch from cea4a1a to 8717522 Compare February 21, 2024 09:20
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@saw-jan
saw-jan merged commit 9444050 into master Feb 21, 2024
@delete-merged-branch
delete-merged-branch Bot deleted the receive-two-share-with-same-name branch February 21, 2024 10:23
saw-jan pushed a commit that referenced this pull request Mar 5, 2024
)

* added e2e test to receive two shares with same name

* removed web UI test related to receiving two shares with same name

* added step to share file with same name
saw-jan pushed a commit that referenced this pull request Mar 5, 2024
)

* added e2e test to receive two shares with same name

* removed web UI test related to receiving two shares with same name

* added step to share file with same name
saw-jan pushed a commit that referenced this pull request Mar 5, 2024
)

* added e2e test to receive two shares with same name

* removed web UI test related to receiving two shares with same name

* added step to share file with same name
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.

3 participants