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] Refactor share related scenerio #6587

Closed
wants to merge 2 commits into from
Closed

[tests-only][full-ci] Refactor share related scenerio #6587

wants to merge 2 commits into from

Conversation

S-Panta
Copy link
Contributor

@S-Panta S-Panta commented Jun 22, 2023

Description

Previously when the sharer unshares the file to sharee, sharer actually deletes the resources rather than removing sharee from the shares. There is no actual scenario that tests for the unshare feature.
This PR adds a new missing test scenario and refactors the shares related step definition codes

Related Issue

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:

@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

@@ -3338,7 +3338,7 @@ public function fileHasBeenDeleted(string $file, string $user):void {
}

/**
* @When /^user "([^"]*)" (?:deletes|unshares) (?:file|folder) "([^"]*)" using the WebDAV API$/
* @When /^user "([^"]*)" deletes (?:file|folder) "([^"]*)" using the WebDAV API$/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
* @When /^user "([^"]*)" deletes (?:file|folder) "([^"]*)" using the WebDAV API$/
* @When user :user deletes file/folder :file using the WebDAV API

@SwikritiT
Copy link
Contributor

The CI is failing because of

--- FeatureContext has missing steps. Define them with these snippets:

    /**
     * @When user :arg1 unshares folder :arg2 using the WebDAV API
     */
    public function userUnsharesFolderUsingTheWebdavApi($arg1, $arg2)
    {
        throw new PendingException();
    }

Undefined steps: There were some undefined steps found.
make: *** [Makefile:125: test-acceptance-from-core-api] Error 1
make: Leaving directory '/drone/src'

@S-Panta
Copy link
Contributor Author

S-Panta commented Jun 26, 2023

Since this issue is further explored here #6608 , this PR shall be closed to avoid the confusion.

@S-Panta S-Panta closed this Jun 26, 2023
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.

2 participants