forked from tektoncd/triggers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve escaped characters when parsing json path 🦟
I was trying to use Triggers to deliver a payload that included some newlines and carriage returns into the value of a Pipeline param, but along the way they were being turned from actual \ + n to the newline character, etc., which when embedded into the yaml of the CRD I wanted to create was invalid. Now we will treat json strings as json when using the values via json path instead of decoding the the escaped characters. Dropping the quotation marks seems like a pretty big hack but it's the best option we could think of and seems to consistently give us the results we'd expect as users. In the end to end test, when json dictionaries are passed through an EventListener, the order may change, so we are deserializing the example data so that we can compare it in an order agnostic manner. Fixes tektoncd#258 Co-authored-by: Dibyo Mukherjee <[email protected]>
- Loading branch information
1 parent
f69eea4
commit b5944e5
Showing
11 changed files
with
217 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.