-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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][tests-only] Add tests for db-convert occ command #39393
Conversation
9daa1d1
to
7f108a0
Compare
💥 Acceptance tests pipeline cliDbConversion-sqlite-php7.4 failed. The build has been cancelled. |
90c1061
to
9ece122
Compare
💥 Acceptance tests pipeline cliDbConversion-sqlite-php7.4 failed. The build has been cancelled. |
43233d9
to
fe3f449
Compare
💥 Acceptance tests pipeline cliDbConversion-sqlite-php7.4 failed. The build has been cancelled. |
72703ce
to
a83c317
Compare
💥 Acceptance tests pipeline cliDbConversion-sqlite-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline cliDbConversion-sqlite-php7.4 failed. The build has been cancelled. |
b4cc1f3
to
91895cf
Compare
💥 Acceptance tests pipeline cliDbConversion-sqlite-php7.4 failed. The build has been cancelled. |
ed70889
to
cac0c11
Compare
Currently blocked due to unknown error in afterScenario hooks |
656bbc7
to
a8a68cc
Compare
a8a68cc
to
90f6f2e
Compare
I've initialized a state variable in featureContext to check if running for DB conversion. The variable state is set to true after successful DB conversion. but for the before scenario we don't know yet if the scenario is for DB conversion. although multiple Should we use some test environment variable, so that we can test some edge cases in this DB conversion feature? |
https://drone.owncloud.com/owncloud/core/33955/4/14 I have a fix for that in bf96d4a You can cherry-pick that commit into this branch. Then you should get the real Exception message logged. |
https://drone.owncloud.com/owncloud/core/33957/4/14
after a successful dB conversion, the cc @phil-davis |
That is in an AfterScenario. For this special test, we only want to run a single scenario. So we can skip any AfterScenario actions. Basically, we throw-away the system-under-test after all the Scenario So add whatever code and/or tags are needed to avoid running stuff in AfterScenario that causes fails. |
Kudos, SonarCloud Quality Gate passed! |
@phil-davis suggested changes have been implemented. Please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I will cherry-pick and squash this onto the "pending acceptance tests" PR #39514
cherry-picked to 5f98837 |
Description
Related Issue
occ
db commands #39190Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: