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

Makefile: added make command to run litmus-tests #1543

Merged
merged 3 commits into from
Mar 16, 2021
Merged

Makefile: added make command to run litmus-tests #1543

merged 3 commits into from
Mar 16, 2021

Conversation

jimil749
Copy link
Contributor

Fixes #1106

This PR adds an extra make command to run litmus tests via make.

  • make litmus-test executes the tests.

Signed-off-by: Jimil Desai jimildesai42@gmail.com

@jimil749 jimil749 requested a review from labkode as a code owner March 13, 2021 19:28
@update-docs
Copy link

update-docs bot commented Mar 13, 2021

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.

@ishank011
Copy link
Contributor

Hi @jimil749! Thanks for opening the PR. Good work! Just a few comments:

  • Please add the build rule as a dependency for this one, as we assume that the revad binary is already present.
  • The revad daemons should be killed after the tests are run. We can use pkill or any other graceful method to shut those down.
  • Please add a changelog for the PR to the unreleased directory. You can refer the other files for the format.

@jimil749
Copy link
Contributor Author

@ishank011 I've updated accordingly!

@ishank011
Copy link
Contributor

Hi @jimil749 thanks for the change. I forgot to add one thing, sorry about that!

We now expose two WebDAV endpoints, one which assumes the namespace to be that of the logged-in user (remote.php/webdav), and another that has access to other users' as well projects' spaces (remote.php/dav/files/{UID}). Can you add separate commands for the two? We have that in the CI.

reva/.drone.star

Lines 452 to 460 in 3b7e1f0

"name": "litmus-owncloud-new-webdav",
"image": "registry.cern.ch/docker.io/owncloud/litmus:latest",
"environment": {
# UUID is einstein user, see https://github.com/owncloud/ocis-accounts/blob/8de0530f31ed5ffb0bbb7f7f3471f87f429cb2ea/pkg/service/v0/service.go#L45
"LITMUS_URL": "http://revad-services:20080/remote.php/dav/files/4c510ada-c86b-4815-8820-42cdf82c3d51",
"LITMUS_USERNAME": "einstein",
"LITMUS_PASSWORD": "relativity",
"TESTS": "basic http copymove props",
}

Also, we should add the TEST env variable to specify which tests to run, as not all functionalities are currently implemented.

@jimil749
Copy link
Contributor Author

Sure, will do!

@jimil749
Copy link
Contributor Author

@ishank011, we want a separate make command for both the WebDAV endpoints, right? Maybe litmus-test-old and litmus-test-new, I am not sure about the naming here.

@ishank011
Copy link
Contributor

Yep, I think those should be good.

@jimil749
Copy link
Contributor Author

@ishank011 I have updated as requested. Though, I am not sure why the tests are failing. 😅

@ishank011
Copy link
Contributor

Can you rebase? We updated the commit from the owncloud repo used to run the integration tests, so now it should pass.

Signed-off-by: Jimil Desai <jimildesai42@gmail.com>
Signed-off-by: Jimil Desai <jimildesai42@gmail.com>
Signed-off-by: Jimil Desai <jimildesai42@gmail.com>
@ishank011
Copy link
Contributor

LGTM. Nice work!

@ishank011 ishank011 merged commit 56b9b5a into cs3org:master Mar 16, 2021
@jimil749 jimil749 deleted the litmus-test-makefile branch March 16, 2021 11:32
ffurano pushed a commit to ffurano/reva that referenced this pull request Apr 19, 2021
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.

create make command to run litmus tests
2 participants