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

cli Test trashbin #33534

Merged
merged 1 commit into from
Nov 16, 2018
Merged

cli Test trashbin #33534

merged 1 commit into from
Nov 16, 2018

Conversation

paurakhsharma
Copy link
Member

@paurakhsharma paurakhsharma commented Nov 15, 2018

Description

Add cli tests for trashbin
Related issue: #33536

How Has This Been Tested?

Locally

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)
  • Acceptance test

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@paurakhsharma
Copy link
Member Author

@individual-it, I have addressed all the comments. Please review

@paurakhsharma
Copy link
Member Author

@phil-davis, As you can see in the test when we run occ command trashbin:cleanup all users trashbin are cleaned. Isn't this risky? because the administrator can type this by accident. There should be some verification or --all should be added. What do you think? Or do we think administrator are not supposed to make mistakes?

@codecov
Copy link

codecov bot commented Nov 15, 2018

Codecov Report

Merging #33534 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #33534   +/-   ##
=========================================
  Coverage     64.12%   64.12%           
  Complexity    18305    18305           
=========================================
  Files          1193     1193           
  Lines         69155    69155           
  Branches       1277     1277           
=========================================
  Hits          44343    44343           
  Misses        24440    24440           
  Partials        372      372
Flag Coverage Δ Complexity Δ
#javascript 52.91% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.42% <ø> (ø) 18305 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8565399...c883aca. Read the comment docs.

@phil-davis
Copy link
Contributor

Or do we think administrator are not supposed to make mistakes?

Real sysadmins never make mistakes ;)

I raised issue #33538

tests/acceptance/features/bootstrap/OccContext.php Outdated Show resolved Hide resolved
tests/acceptance/features/bootstrap/OccContext.php Outdated Show resolved Hide resolved
tests/acceptance/features/bootstrap/OccContext.php Outdated Show resolved Hide resolved
tests/acceptance/features/bootstrap/OccContext.php Outdated Show resolved Hide resolved
tests/acceptance/features/bootstrap/OccContext.php Outdated Show resolved Hide resolved
tests/acceptance/features/cliTrashbin/trashbin.feature Outdated Show resolved Hide resolved
tests/acceptance/features/cliTrashbin/trashbin.feature Outdated Show resolved Hide resolved
@phil-davis phil-davis merged commit fb606bb into master Nov 16, 2018
@phil-davis phil-davis deleted the cli-Test-Trashbin branch November 16, 2018 05:59
@paurakhsharma
Copy link
Member Author

Backport on: #33548

skshetry pushed a commit that referenced this pull request Nov 16, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants