Check for iterable responseXML->data in isUserOrGroupInSharedData#34707
Merged
Conversation
666cdcf to
fbca9da
Compare
Codecov Report
@@ Coverage Diff @@
## master #34707 +/- ##
=============================================
- Coverage 65.28% 48.39% -16.89%
=============================================
Files 1210 109 -1101
Lines 69984 10493 -59491
Branches 1280 1280
=============================================
- Hits 45688 5078 -40610
+ Misses 23924 5043 -18881
Partials 372 372
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34707 +/- ##
=========================================
Coverage 65.28% 65.28%
Complexity 18481 18481
=========================================
Files 1210 1210
Lines 69984 69984
Branches 1280 1280
=========================================
Hits 45688 45688
Misses 23924 23924
Partials 372 372
Continue to review full report at Codecov.
|
individual-it
approved these changes
Mar 7, 2019
Contributor
Author
|
Backport |
Contributor
Author
|
general drone problems at the moment. I will restart this when drone is sorted out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In the acceptance test method
isUserOrGroupInSharedData, if theresponseXMLdatadoes not contain the expected array/iterable of sharing information, then the code can fall over with:Be nicer and emit an information message to say that the response data was not the expected type, and return
falseso that the caller can then "do its own thing" in response and report a more "normal" test fail message.Motivation and Context
When doing a backport PR #34696 there was some problem with the backported code and the responses were not happening. It would be nice to have a clearer failure in the accceptance test output/
How Has This Been Tested?
CI
Types of changes
Checklist:
Open tasks: