tests: check folder exist before creation#697
Conversation
025d14a to
229bb05
Compare
a10f8cf to
989b755
Compare
d0a2f35 to
10ef318
Compare
ec7536d to
774db87
Compare
|
https://github.com/nextcloud/integration_openproject/blob/master/tests/acceptance/features/api/setup.feature#L545 https://github.com/nextcloud/integration_openproject/blob/master/tests/acceptance/features/api/setup.feature#L679 |
|
That sounds like a bug in NC, please
|
I am quite confused that locally the NC seems to be giving correct status code. But using the docker image that we use in the CI for NC it gives 500. May be there seems to be something wrong with the image. And on the top of that it is flaky. it sometimes pass and sometimes not. |
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
9c07cd9 to
6661cc1
Compare
|
Issue related to the PROFIND has been fixed in the image juliushaertl/nextcloud-dev-php83:20231202-1 |
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
6661cc1 to
70405fb
Compare
8442783 to
1cbd330
Compare
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
1cbd330 to
79900cf
Compare
PHP Code CoverageCoverage after merging check_CI_for_nightly_failure into release/2.7 will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* running the api test only Signed-off-by: nabim777 <nabinalemagar019@gmail.com> * checks file and folder exists before creation on tests Signed-off-by: nabim777 <nabinalemagar019@gmail.com> * review address Signed-off-by: nabim777 <nabinalemagar019@gmail.com> --------- Signed-off-by: nabim777 <nabinalemagar019@gmail.com> Co-authored-by: nabim777 <nabinalemagar019@gmail.com> Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
* running the api test only * checks file and folder exists before creation on tests * review address --------- Signed-off-by: nabim777 <nabinalemagar019@gmail.com> Co-authored-by: Sagar Gurung <46086950+SagarGi@users.noreply.github.com>
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Description
This PR added code to the test to determine whether the file or folder existed before the folder's creation.
Problem
https://github.com/nextcloud/integration_openproject/blob/master/tests/acceptance/features/api/setup.feature#L545
Previously, when a folder was created and it already existed, the server would return a 405 status code. But, now it is returning a 500 status code.
https://github.com/nextcloud/integration_openproject/blob/master/tests/acceptance/features/api/setup.feature#L679
Similarly, in case of the PROFIND, it is also returning a 500 status code.
Due to this reasons, there raise CI failure
Workpackage
Steps to reproduce
docker run --rm -p 8080:80 -e SERVER_BRANCH=stable30 -e NEXTCLOUD_AUTOINSTALL=YES -e NEXTCLOUD_AUTOINSTALL_APPS="groupfolders integration_openproject" -v ~/www/stable30/apps:/var/www/html/apps-extra/appid ghcr.io/juliushaertl/nextcloud-dev-php83:20231202-1NEXTCLOUD_BASE_URL=http://localhost/stable30 make api-test FEATURE_PATH=tests/acceptance/features/api/setup.feature:491Screenshots (if appropriate):
Types of changes
Checklist:
CHANGELOG.mdfile