Invoke-RestMethod -FollowRelLink fix links containing commas#18829
Conversation
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Is it possible to add a test?
I guess we can add new constant in Constants.cs and use it in new branch in LinkController.cs. |
|
Would this test be ok ? It "Validate Invoke-RestMethod -FollowRelLink correctly manages commas" {
$maxLinks = 5
$uri = Get-WebListenerUrl -Test 'Link' -Query @{maxlinks = $maxLinks; type = "with,comma"}
$command = "Invoke-RestMethod -Uri '$uri' -FollowRelLink"
$result = ExecuteWebCommand -command $command
$result.Output.Count | Should -BeExactly $maxLinks
1..$maxLinks | ForEach-Object { $result.Output[$_ - 1].linknumber | Should -BeExactly $_ }
} |
|
If this doesn't work before the PR, I am ok with the test. |
I checked, the test fails before this PR |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
🎉 Handy links: |
PR Summary
PR Context
Add the fix proposed by @ashscodes in #17528