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] Add acceptance test to get all shares of a sharer when the receiver already has a file that matches shared file name #207

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

haribhandari07
Copy link
Contributor

Description

Getting all share details of a sharer when receiver already has a file with the matching name

Related Issue

#206

…he receiver already has a file that matches shared file name
@phil-davis
Copy link
Contributor

https://drone.owncloud.com/owncloud/encryption/1315/20/12

  @issue-encryption-206
  Scenario Outline: Sharer shares a file where receiver already has a file with the matching name # /var/www/owncloud/testrunner/apps/encryption/tests/acceptance/features/webUIUserKeysType/userKeys.feature:50
    Given using OCS API version "<ocs_api_version>"                                               # FeatureContext::usingOcsApiVersion()
    And user "Brian" has been created with default attributes and skeleton files                  # FeatureContext::userHasBeenCreatedWithDefaultAttributes()
    And user "Alice" has shared file "textfile0.txt" with user "Brian"                            # FeatureContext::userHasSharedFileWithUserUsingTheSharingApi()
    When user "Alice" gets all shares shared by him using the sharing API                         # FeatureContext::userGetsAllSharesSharedByHimUsingTheSharingApi()
    Then the OCS status code should be "<ocs_status_code>"                                        # OCSContext::theOCSStatusCodeShouldBe()
    And the HTTP status code should be "200"                                                      # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And file "textfile0 (2).txt" should be included in the response                               # FeatureContext::checkSharedFileInResponse()

    Examples:
      | ocs_api_version | ocs_status_code |
      | 1               | 100             |
SCENARIO RESULT: (pass)
      | 2               | 200             |

The test passes and demonstrates the unwanted behavior.

@codecov
Copy link

codecov bot commented Jun 19, 2020

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #207   +/-   ##
=========================================
  Coverage     71.88%   71.88%           
  Complexity      610      610           
=========================================
  Files            35       35           
  Lines          2298     2298           
=========================================
  Hits           1652     1652           
  Misses          646      646           

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 f35d86c...8ec8bd2. Read the comment docs.

@haribhandari07 haribhandari07 merged commit 3a3c619 into master Jun 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the matching-name branch June 19, 2020 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants