-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bump version of path validator to support current value expr
- Loading branch information
1 parent
7dc622e
commit 6e91a84
Showing
3 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
40 changes: 40 additions & 0 deletions
40
src/__tests__/definitions/valid-current-value-predicate.json
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,40 @@ | ||
{ | ||
"StartAt": "Mock Service Catalog Describe Record", | ||
"States": { | ||
"Mock Service Catalog Describe Record": { | ||
"Type": "Pass", | ||
"Parameters": { | ||
"DescribeRecord": { | ||
"RecordDetail": { | ||
"RecordId": "rec-abcdefghijklm", | ||
"Status": "SUCCEEDED", | ||
"COMMENT": "there are more properties, limited for brevity" | ||
}, | ||
"RecordOutputs": [ | ||
{ | ||
"Description": "Foo Bar", | ||
"OutputKey": "FooBar", | ||
"OutputValue": "0123456789" | ||
}, | ||
{ | ||
"Description": "Fizz Buzz", | ||
"OutputKey": "FizzBuzz", | ||
"OutputValue": "[email protected]" | ||
} | ||
] | ||
} | ||
}, | ||
"ResultPath": "$", | ||
"Next": "Get Record Outputs" | ||
}, | ||
"Get Record Outputs": { | ||
"Type": "Pass", | ||
"Parameters": { | ||
"FooBar.$": "States.ArrayGetItem($.DescribeRecord.RecordOutputs[?(@.OutputKey == FooBar)].OutputValue, 0)", | ||
"FizzBuzz.$": "States.ArrayGetItem($.DescribeRecord.RecordOutputs[?(@.OutputKey == FizzBuzz)].OutputValue, 0)" | ||
}, | ||
"ResultPath": "$", | ||
"End": true | ||
} | ||
} | ||
} |