-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow evaluation for the
defaults
block (#630)
* merge without value eval * evaluate twice and simplify code * fixup test; method signature also missing bodiesToConfig call for LoadBytes * fixup test; use loadBytes * fix context test, pass env * handle different key expression types * restrict ScopeTraversalExpr to identifier * Documented key restrictions * fixed TestHTTPServer_ServeHTTP_Files2 * Fixup explicit expectation content * test cases for key/value type errors Co-authored-by: Johannes Koch <johannes.koch@avenga.com>
- Loading branch information
Marcel Ludwig
and
Johannes Koch
authored
Nov 25, 2022
1 parent
9a28ca9
commit 04cbe52
Showing
11 changed files
with
171 additions
and
54 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
server { | ||
endpoint "/" { | ||
response { | ||
json_body = [env.KEY1, env.KEY2, env.KEY3, env.KEY4, env.KEY5] | ||
} | ||
} | ||
} | ||
|
||
defaults { | ||
environment_variables = { | ||
KEY1 = "value1" | ||
KEY2 = env.VALUE_2 | ||
KEY3 = default(env.VALUE_3, "default_value_3") | ||
KEY4 = env.VALUE_4 | ||
"KEY5" = "value5" | ||
} | ||
} |