Skip to content

Add test for PROPPATCH with complex values - #32675

Merged
PVince81 merged 1 commit into
masterfrom
tests-proppatch-complexprop
Sep 11, 2018
Merged

PVince81 merged 1 commit into
masterfrom
tests-proppatch-complexprop

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Description

Adds acceptance tests on for Webdav PROPPATCH with values containing
sub-tags.

Related Issue

Motivation and Context

How Has This Been Tested?

It's a test

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)

@PVince81 PVince81 added this to the backlog milestone Sep 11, 2018
@PVince81 PVince81 self-assigned this Sep 11, 2018
@PVince81

Copy link
Copy Markdown
Contributor Author

we could either reuse this PR for the fix or merge this with a "skip" tag

*/
public function userHasSetPropertyOfEntryTo(
$user, $propertyName, $path, $propertyValue
$user, $propertyName, $path, $complex = '', $propertyValue

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.

PHPdoc needed for complex param.

) {
$client = $this->getSabreClient($user);
if ($complex === 'complex') {
$propertyValue = new Complex($propertyValue);

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.

That was way too easy :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

😆

Adds acceptance tests on for Webdav PROPPATCH with values containing
sub-tags.
@PVince81
PVince81 force-pushed the tests-proppatch-complexprop branch from 54fbfdc to 9aab6c0 Compare September 11, 2018 14:03
@PVince81

Copy link
Copy Markdown
Contributor Author

Squashed and updated as per comments.

I also added a skip tag.

@PVince81

Copy link
Copy Markdown
Contributor Author

apiWebdavProperties passed on CI, ignoring others...

@PVince81
PVince81 merged commit b15c1e3 into master Sep 11, 2018
@PVince81
PVince81 deleted the tests-proppatch-complexprop branch September 11, 2018 20:54
@PVince81

Copy link
Copy Markdown
Contributor Author

stable10: #32680

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Why is there an acceptance test on it's own for this? litmus is testing the same thing - right?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Why is there an acceptance test on it's own for this? litmus is testing the same thing - right?

@PVince81

@PVince81

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 Litmus did not detect this. It seems it doesn't compare the result of the PROPFIND to see that it's not "Object". This is why we never saw it fail on MySQL. This just got apparent with Oracle because Oracle refused to store the empty string / non-string object.

@patrickjahns

Copy link
Copy Markdown
Contributor

Why is there an acceptance test on it's own for this? litmus is testing the same thing - right?

That is why we also need to investigate and evaluate the old test suites and tools being used in the past. Do we know what and how they test? Are the assumptions from the past still the same today? ( we learned a lot in the past months/years about the product - please but that to a good use )

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Litmus did not detect this. It seems it doesn't compare the result of the PROPFIND to see that it's not "Object". This is why we never saw it fail on MySQL. This just got apparent with Oracle because Oracle refused to store the empty string / non-string object.

I was missing this - thanks for clarifying. In this case it is quite valid to extend the test suites and add additional scenarios.

@lock lock Bot locked as resolved and limited conversation to collaborators Sep 12, 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.

4 participants