-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clone Input when the workflow execution forks (#5621)
* clone Input when the workflow forks, add integration test * fix line endings
- Loading branch information
Showing
4 changed files
with
86 additions
and
1 deletion.
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
23 changes: 23 additions & 0 deletions
23
integration_tests/workflow/multimatch-value-share-template.yaml
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,23 @@ | ||
id: multimatch-value-share-template | ||
|
||
info: | ||
name: MultiMatch Value Share Template | ||
author: tovask | ||
severity: info | ||
|
||
http: | ||
- path: | ||
- "{{BaseURL}}/path1?v=1" | ||
- "{{BaseURL}}/path1?v=2" | ||
matchers: | ||
- type: word | ||
name: test-matcher | ||
words: | ||
- "href" | ||
extractors: | ||
- type: regex | ||
part: body | ||
name: extracted | ||
regex: | ||
- 'href="(.*)"' | ||
group: 1 |
21 changes: 21 additions & 0 deletions
21
integration_tests/workflow/multimatch-value-share-workflow.yaml
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,21 @@ | ||
id: multimatch-value-share-workflow | ||
|
||
info: | ||
name: MultiMatch Value Share Workflow | ||
author: tovask | ||
severity: info | ||
description: Workflow to test value sharing when multiple matches occur in the extractor template | ||
|
||
workflows: | ||
- template: workflow/multimatch-value-share-template.yaml | ||
subtemplates: | ||
- template: workflow/match-1.yaml | ||
subtemplates: | ||
- template: workflow/http-value-share-template-2.yaml | ||
- template: workflow/multimatch-value-share-template.yaml | ||
matchers: | ||
- name: test-matcher | ||
subtemplates: | ||
- template: workflow/match-1.yaml | ||
subtemplates: | ||
- template: workflow/http-value-share-template-2.yaml |
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