forked from redpanda-data/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
603362e
commit 0dff872
Showing
1 changed file
with
10 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,16 +41,16 @@ func TestEnvSwapping(t *testing.T) { | |
os.Setenv("BENTHOS.TEST.BAR", "test\nbar") | ||
|
||
tests := map[string]string{ | ||
"foo ${BENTHOS_TEST_FOO:bar} baz": "foo bar baz", | ||
"foo ${BENTHOS.TEST.FOO:bar} baz": "foo testfoo baz", | ||
"foo ${BENTHOS.TEST.FOO} baz": "foo testfoo baz", | ||
"foo ${BENTHOS_TEST_FOO:http://bar.com} baz": "foo http://bar.com baz", | ||
"foo ${BENTHOS_TEST_FOO:http://bar.com?wat=nuh} baz": "foo http://bar.com?wat=nuh baz", | ||
"foo ${BENTHOS_TEST_FOO:http://bar.com#wat} baz": "foo http://bar.com#wat baz", | ||
"foo ${BENTHOS_TEST_FOO:tcp://*:2020} baz": "foo tcp://*:2020 baz", | ||
"foo ${BENTHOS_TEST_FOO:bar} http://bar.com baz": "foo bar http://bar.com baz", | ||
"foo ${BENTHOS_TEST_FOO} http://bar.com baz": "foo http://bar.com baz", | ||
"foo ${BENTHOS_TEST_FOO:[email protected]} baz": "foo [email protected] baz", | ||
"foo ${BENTHOS_TEST_FOO:bar} baz": "foo bar baz", | ||
"foo ${BENTHOS.TEST.FOO:bar} baz": "foo testfoo baz", | ||
"foo ${BENTHOS.TEST.FOO} baz": "foo testfoo baz", | ||
"foo ${BENTHOS_TEST_FOO:http://bar.com} baz": "foo http://bar.com baz", | ||
"foo ${BENTHOS_TEST_FOO:http://bar.com?wat=nuh} baz": "foo http://bar.com?wat=nuh baz", | ||
"foo ${BENTHOS_TEST_FOO:http://bar.com#wat} baz": "foo http://bar.com#wat baz", | ||
"foo ${BENTHOS_TEST_FOO:tcp://*:2020} baz": "foo tcp://*:2020 baz", | ||
"foo ${BENTHOS_TEST_FOO:bar} http://bar.com baz": "foo bar http://bar.com baz", | ||
"foo ${BENTHOS_TEST_FOO} http://bar.com baz": "foo http://bar.com baz", | ||
"foo ${BENTHOS_TEST_FOO:[email protected]} baz": "foo [email protected] baz", | ||
"foo ${} baz": "foo ${} baz", | ||
"foo ${BENTHOS_TEST_FOO:foo,bar} baz": "foo foo,bar baz", | ||
"foo ${BENTHOS_TEST_FOO} baz": "foo baz", | ||
|