[VC-43403] Various improvements to the mock API server#690
Merged
SgtCoDFish merged 1 commit intomasterfrom Aug 20, 2025
Merged
Conversation
… meaningful handler names, more realistic responses Signed-off-by: Richard Wall <richard.wall@venafi.com>
wallrj-cyberark
commented
Aug 20, 2025
| <Message>The SHA256 you specified did not match the calculated checksum.</Message> | ||
| <RequestId>THR2V1RX700Z8SC7</RequestId> | ||
| <HostId>F0xSC0H93Xs0BlCx6RjasZgrtjNkNB7lF4+yz1AiPQHswpdEoqj3iTgEN8SUWgV2Qm/laPobVIMz9SYTNHqdoA==</HostId> | ||
| </Error>` |
Member
Author
| w.Header().Set("Content-Type", "application/json") | ||
| _, _ = w.Write([]byte(`{"url":`)) // invalid JSON | ||
| return | ||
| } |
Member
Author
There was a problem hiding this comment.
This wasn't used. I think it's a legacy of some previous version of the mock server.
S3 does not return JSON for PUT requests; either an empty response or an XML error.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

A follow up to #689 and pulls some other changes from #681, to make that PR less sprawling.
I noticed the following problems with the mock dataupload API server.
In another PR I may try and consolidate the various CyberArk API mocks into a separate package