Skip to content

Commit

Permalink
[confmap] Add new tests (#10246)
Browse files Browse the repository at this point in the history
#### Description
Add a new test scenarios to confmap expand tests

#### Link to tracking issue
Related to
#10182 (comment)
  • Loading branch information
TylerHelmuth committed May 28, 2024
1 parent 1d8c53f commit 31ac333
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions confmap/expand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@ func TestResolverExpandStringValues(t *testing.T) {
input: "${env:HOST${env:PORT}?os=${env:OS&pr=${env:PR}",
output: "${env:HOST3044?os=${env:OS&pr=amd",
},
{
name: "SchemeAfterNoSchemeIsExpanded",
input: "${HOST}${env:PORT}",
output: "${HOST}3044",
},
{
name: "SchemeBeforeNoSchemeIsExpanded",
input: "${env:HOST}${PORT}",
output: "localhost${PORT}",
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 31ac333

Please sign in to comment.