-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ts vars interpolation only once (#379)
* fix: ts vars interpolation only once close #377 Signed-off-by: Yvonnick Esnault <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 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
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,20 @@ | ||
name: testsuite | ||
vars: | ||
phone_number: "+3375{{ randNumeric 7 }}" | ||
testcases: | ||
- name: test 1 | ||
steps: | ||
- type: exec | ||
script: echo '{{.phone_number}}' | ||
info: '{{.phone_number}} test 1' | ||
vars: | ||
myvariable: | ||
from: result.systemout | ||
regex: ([a-z0-9\+]+) | ||
- name: test 2 | ||
steps: | ||
- type: exec | ||
script: echo '{{.phone_number}}' | ||
info: '{{.phone_number}} test 2' | ||
assertions: | ||
- result.systemout ShouldEqual {{.test-1.myvariable}} |