Skip to content

API acceptance tests for WebDAV search - #32816

Merged
phil-davis merged 1 commit into
masterfrom
apiTestSeach
Sep 24, 2018
Merged

API acceptance tests for WebDAV search#32816
phil-davis merged 1 commit into
masterfrom
apiTestSeach

Conversation

@individual-it

@individual-it individual-it commented Sep 24, 2018

Copy link
Copy Markdown
Member

Description

API tests to test webdav search see #31873

Related Issue

owncloud/search_elastic#26

How Has This Been Tested?

run the tests locally

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

Checklist:

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

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@individual-it individual-it self-assigned this Sep 24, 2018
@individual-it individual-it added this to the development milestone Sep 24, 2018
@individual-it individual-it changed the title [WIP] API acceptance tests for WebDAV search API acceptance tests for WebDAV search Sep 24, 2018
* @return string or false if file could not be found
*/
public function findFileFromPropfindResponse($user, $fileNameToSearch) {
//if we using that step the second time in a scenario e.g. 'But ... should not'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if we are using the step the second time...

public function findFileFromPropfindResponse($user, $fileNameToSearch) {
//if we using that step the second time in a scenario e.g. 'But ... should not'
//then don't parse the result again, because the result in a ResponseInterface
//and can only be read once

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

delete "and"

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.
That ['value'][1]['value'][0]['value'] stuff is ugly, but what to do about that?

@codecov

codecov Bot commented Sep 24, 2018

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #32816   +/-   ##
=========================================
  Coverage     64.12%   64.12%           
  Complexity    18684    18684           
=========================================
  Files          1177     1177           
  Lines         70309    70309           
  Branches       1270     1270           
=========================================
  Hits          45089    45089           
  Misses        24850    24850           
  Partials        370      370
Flag Coverage Δ Complexity Δ
#javascript 52.89% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.4% <ø> (ø) 18684 <ø> (ø) ⬇️

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 3344b40...cc14596. Read the comment docs.

@individual-it

Copy link
Copy Markdown
Member Author

backport in #32818

@phil-davis

Copy link
Copy Markdown
Contributor

stupid thing, no codecov has come so we cannot merge.

@phil-davis

Copy link
Copy Markdown
Contributor

Now it failed

tests/acceptance/features/webUISharingExternal/shareByPublicLink.feature:153

That scenario seems to fail sometimes. I guess there is some timing problem with the public link dialog.

@phil-davis
phil-davis merged commit 6b18bb2 into master Sep 24, 2018
@phil-davis
phil-davis deleted the apiTestSeach branch September 24, 2018 20:28
@lock lock Bot locked as resolved and limited conversation to collaborators Sep 24, 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.

2 participants