-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from DinoChiesa/more-ev-hygiene
feat(PO033): add new checks for valid elements in PO033 plugin
- Loading branch information
Showing
6 changed files
with
53 additions
and
2 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
6 changes: 6 additions & 0 deletions
6
test/fixtures/resources/PO033/fail/EV-URIPath-with-lowercase-pattern-element.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<ExtractVariables name="EV-URIPath-with-lowercase-pattern-element"> | ||
<URIPath> | ||
<pattern ignoreCase="false">/accounts/{id}</pattern> | ||
</URIPath> | ||
<Source clearPayload="false">request</Source> | ||
</ExtractVariables> |
5 changes: 5 additions & 0 deletions
5
test/fixtures/resources/PO033/fail/EV-Variable-with-no-Pattern.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ExtractVariables name="EV-Variable-with-no-Pattern"> | ||
<Variable> | ||
</Variable> | ||
<Source clearPayload="false">request</Source> | ||
</ExtractVariables> |
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
7 changes: 7 additions & 0 deletions
7
test/fixtures/resources/PO033/pass/EV-URIPath-with-Pattern-element.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ExtractVariables name="EV-URIPath-with-Pattern-element"> | ||
<URIPath> | ||
<Pattern ignoreCase="false">/accounts/{id}</Pattern> | ||
<Pattern ignoreCase="false">/foob/{id}</Pattern> | ||
</URIPath> | ||
<Source clearPayload="false">request</Source> | ||
</ExtractVariables> |
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