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

[QA] Test coverage for activites api #9543

Open
36 of 53 tasks
amrita-shrestha opened this issue Jul 5, 2024 · 9 comments
Open
36 of 53 tasks

[QA] Test coverage for activites api #9543

amrita-shrestha opened this issue Jul 5, 2024 · 9 comments
Assignees
Labels

Comments

@amrita-shrestha
Copy link
Contributor

amrita-shrestha commented Jul 5, 2024

Description

Add tests coverage for activities api https://owncloud.dev/libre-graph-api/#/activities/GetActivities

  • GET /v1beta1/extensions/org.libregraph/activities

  • web is using this api endpoint ( implemented)

Scenarios:

Bug Report:

@saw-jan
Copy link
Member

saw-jan commented Jul 24, 2024

Bug reports:

@Salipa-Gurung

This comment was marked as outdated.

@saw-jan
Copy link
Member

saw-jan commented Oct 23, 2024

Scenarios to test for COPY/MOVE actions:

  • copy/move file (having some content) inside a folder

    • check activities of the destination file
    • check activities of the destination folder
  • copy/move file (0 byte) inside a folder

    • check activities of the destination file
    • check activities of the destination folder
  • copy/move file (some content and 0 byte) inside a folder by renaming the destination file

    • check activities of the destination file
    • check activities of the destination folder
  • copy file (some content and 0 byte) into same folder by renaming the destination file

    • check activities of the destination file

@prashant-gurung899
Copy link
Contributor

prashant-gurung899 commented Oct 24, 2024

Scenarios to test for COPY/MOVE actions:

  • copy/move file (having some content) inside a folder

    • check activities of the destination file

For this particular MOVE scenario, tests are already covered by :

Scenario: check move activity
Scenario: check move activity for a file and a folder

For other MOVE scenarios, tests are covered in PR: #10407 and #10409

And I'm currently working on COPY scenarios.
CC @saw-jan

@prashant-gurung899
Copy link
Contributor

prashant-gurung899 commented Oct 25, 2024

@saw-jan There are few cases where we dont get the copy response or no response at all. Please go through the following:

COPY (without using file-id)

copy file (having some content) inside a folder

check activities of the destination file
    > full response
check activities of the destination folder
    > full response

copy file (0 byte) inside a folder

check activities of the destination file
    > blank response --> {"value":[]}
check activities of the destination folder 
    >  no copy response. only folder creation response.

copy file (some content and 0 byte) inside a folder by renaming the destination file

file with content
check activities of the destination file 
    > only file added response for "renamed.txt". No previous history.
check activities of the destination folder 
    > full response

zero byte file
check activities of the destination file
    > blank response --> {"value":[]}
check activities of the destination folder
   > only folder creation response. no copy response

copy file (some content and 0 byte) into same folder by renaming the destination file

file with content
check activities of the destination file 
    > only file added response for "renamed.txt". No previous history.

zero byte file
check activities of the destination file
    > blank response --> {"value":[]}

@prashant-gurung899
Copy link
Contributor

I have made a new issue to report a bug related to copying zero byte file:
#10417
cc @saw-jan

@prashant-gurung899
Copy link
Contributor

COPY (without using file-id)

Test cases for COPY activities are covered in this PR: #10485
For zero byte files, see :#9543 (comment)

@prashant-gurung899
Copy link
Contributor

@saw-jan Similarly for copying file using file-id, the zero byte file have no response at all. I have already created a bug report for that. See: #9543 (comment). For other suitable cases, i will write tests in next PR ASAP.

Please go through the following:

COPY (using file-id)

copy file (having some content) inside a folder

check activities of the destination file
    > full response
check activities of the destination folder
    > full response

copy file (0 byte) inside a folder

check activities of the destination file
    > blank response --> {"value":[]}
check activities of the destination folder 
    >  no copy response. only folder creation response.

copy file (some content and 0 byte) inside a folder by renaming the destination file

file with content
check activities of the destination file 
    > only file added response for "renamed.txt". No previous history.
check activities of the destination folder 
    > full response

zero byte file
check activities of the destination file
    > blank response --> {"value":[]}
check activities of the destination folder
   > only folder creation response. no copy response

copy file (some content and 0 byte) into same folder by renaming the destination file

file with content
check activities of the destination file 
    > only file added response for "renamed.txt". No previous history.

zero byte file
check activities of the destination file
    > blank response --> {"value":[]}

@prashant-gurung899
Copy link
Contributor

COPY (using file-id)

Test cases for COPY activities using file-id are covered in this PR: #10534
For zero byte files, see :#9543 (comment)

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

No branches or pull requests

4 participants