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

[full-ci] [test-only] enable auto-accepting in e2e and UI test #9775

Merged
merged 8 commits into from
Oct 13, 2023

Conversation

ScharfViktor
Copy link
Contributor

@ScharfViktor ScharfViktor commented Oct 6, 2023

part of owncloud/ocis#7241

I enabled FRONTEND_AUTO_ACCEPT_SHARES: true by defaultt

e2e test: first commit

  • added api step to disable auto-accepting
  • deleted accept share steps. some tests use UI accepting step to check accepting resources
  • deleted step accepts the following share using API

ui test: second commit

found bugs:

TODO

  • delete steps from middleware user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server and And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server
  • the setting "shareapi_auto_accept_share" of app "core" has been set to "no" in the server

@update-docs
Copy link

update-docs bot commented Oct 6, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ScharfViktor ScharfViktor force-pushed the enableAutoAcceptInTests branch from 9146c22 to eed1938 Compare October 6, 2023 14:21
@ScharfViktor ScharfViktor marked this pull request as ready for review October 6, 2023 15:05
@ScharfViktor ScharfViktor force-pushed the enableAutoAcceptInTests branch from c5063e9 to 33187ff Compare October 6, 2023 16:05
@ScharfViktor
Copy link
Contributor Author

Failed steps:

  • And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" in the server
  • And the content of file "Shares/randomfile.txt" for user "Brian" should be "Carol file" in the server
  • And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" with "read, delete" permissions in the server

middleware uses new dav path where some endpoints don't work like here: owncloud/ocis#7440

web uses space dav so webUI steps work.

I see three ways to get a "green" CI:

Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

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

Generally, looks good 👍

@saw-jan
Copy link
Member

saw-jan commented Oct 10, 2023

  • wait for the fix

Would be great if dev team could make a fix (I would vote for this one if the fix can be quick)

  • change the middleware to use space dav (check first: oc10 should not use these steps)

We don't know how this change could affect other test scenarios

  • skip these steps temporarily

We could put those failing tests in expected failure list and we would know if the issue is fixed when we do ocis bump - tests should pass. (I would go for this as second option)

@SwikritiT
Copy link
Contributor

SwikritiT commented Oct 10, 2023

  • wait for the fix

Would be great if dev team could make a fix (I would vote for this one if the fix can be quick)

  • change the middleware to use space dav (check first: oc10 should not use these steps)

We don't know how this change could affect other test scenarios

  • skip these steps temporarily

We could put those failing tests in expected failure list and we would know if the issue is fixed when we do ocis bump - tests should pass. (I would go for this as second option)

If the fix won't be soon then I would also vote for keeping the failing tests in expected to fail and merging this PR

@ScharfViktor
Copy link
Contributor Author

There's a fix coming soon cs3org/reva#4244 so I'm waiting.

@ScharfViktor ScharfViktor requested a review from saw-jan October 13, 2023 09:42
@ScharfViktor
Copy link
Contributor Author

CI is green. could you have look

@ScharfViktor ScharfViktor force-pushed the enableAutoAcceptInTests branch from 517762b to 0c301ad Compare October 13, 2023 10:38
@SwikritiT
Copy link
Contributor

SwikritiT commented Oct 13, 2023

File changed shows 141 files changes is that correct?

@ScharfViktor ScharfViktor force-pushed the enableAutoAcceptInTests branch from feb83b8 to 3a87b25 Compare October 13, 2023 11:06
@ScharfViktor
Copy link
Contributor Author

File changed shows 141 files changes is that correct?

no, that was a bad rebase. Now is good

Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✨

@sonarqubecloud
Copy link

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
0.0% 0.0% Duplication

@ScharfViktor ScharfViktor merged commit 8a05291 into master Oct 13, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the enableAutoAcceptInTests branch October 13, 2023 12:07
ownclouders pushed a commit that referenced this pull request Oct 15, 2023
* enable autoaccepting in e2e test

* delete accepting share steps from acceptance UI tests

* cange line of expected failures file

* bump ocis

* fix tests

* fix after review
AlexAndBear pushed a commit that referenced this pull request Dec 13, 2023
* enable autoaccepting in e2e test

* delete accepting share steps from acceptance UI tests

* cange line of expected failures file

* bump ocis

* fix tests

* fix after review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants