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

[tests-only] [full-ci] add test for downloading space #6683

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

Salipa-Gurung
Copy link
Contributor

@Salipa-Gurung Salipa-Gurung commented Jun 30, 2023

Description

This PR adds the API test scenario for downloading space.

Related Issue

ApiTest. next iteration

Motivation and Context

There was no test coverage for api test to download space and check the content of archive. So, this PR covers the required scenario test case.

How Has This Been Tested?

  • test environment:
  • locally
  • CI

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@Salipa-Gurung Salipa-Gurung self-assigned this Jun 30, 2023
@Salipa-Gurung Salipa-Gurung mentioned this pull request Jul 3, 2023
51 tasks
@Salipa-Gurung Salipa-Gurung changed the title [tests-only]add test for downloading space [tests-only] [full-ci] add test for downloading space Jul 3, 2023
@Salipa-Gurung Salipa-Gurung force-pushed the download-space branch 5 times, most recently from bdb693d to 797a1cb Compare July 10, 2023 10:43
@Salipa-Gurung Salipa-Gurung marked this pull request as ready for review July 11, 2023 06:19
@Salipa-Gurung Salipa-Gurung force-pushed the download-space branch 4 times, most recently from 603f4a0 to 1a9405f Compare July 11, 2023 08:45
So that I can store it in my local storage


Scenario: user downloads a space
Copy link
Contributor

Choose a reason for hiding this comment

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

@saw-jan what about adding test coverage for users tries to download space share with permission can edit and can manage? Will it be too much?

Copy link
Member

Choose a reason for hiding this comment

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

should be easy with examples table

Copy link
Member

Choose a reason for hiding this comment

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

But let's do it int next PR. This pr is almost a month old.

Scenarios to add:

  • space member downloads space
  • space-admin downloads other's space

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.

new implementation is gone

tests/acceptance/features/bootstrap/SpacesContext.php Outdated Show resolved Hide resolved
@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
No Duplication information No Duplication information

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

@saw-jan saw-jan merged commit 077f2c1 into stable-3.0 Jul 20, 2023
@delete-merged-branch delete-merged-branch bot deleted the download-space branch July 20, 2023 09:02
@ScharfViktor
Copy link
Contributor

TODO:
Scenarios to add:

  • space member downloads space
  • space-admin downloads other's space

ownclouders pushed a commit that referenced this pull request Jul 20, 2023
* add test for downloading space

* Add hidden file also

---------

Co-authored-by: amrita <[email protected]>
ownclouders pushed a commit that referenced this pull request Jul 21, 2023
* add test for downloading space

* Add hidden file also

---------

Co-authored-by: amrita <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants