Skip to content

Commit d7ebf01

Browse files
committed
unit test for query tags
Signed-off-by: Sreekanth Vadigi <[email protected]>
1 parent ceaf079 commit d7ebf01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func TestParseConfig(t *testing.T) {
129129
},
130130
{
131131
name: "with query params and session params",
132-
args: args{dsn: "token:[email protected]:8000/sql/1.0/endpoints/12346a5b5b0e123a?timeout=100&maxRows=1000&timezone=America/Vancouver"},
132+
args: args{dsn: "token:[email protected]:8000/sql/1.0/endpoints/12346a5b5b0e123a?timeout=100&maxRows=1000&timezone=America/Vancouver&QUERY_TAGS=team:testing,driver:go"},
133133
wantCfg: UserConfig{
134134
Protocol: "https",
135135
Host: "example.cloud.databricks.com",
@@ -140,7 +140,7 @@ func TestParseConfig(t *testing.T) {
140140
QueryTimeout: 100 * time.Second,
141141
MaxRows: 1000,
142142
Location: tz,
143-
SessionParams: map[string]string{"timezone": "America/Vancouver"},
143+
SessionParams: map[string]string{"timezone": "America/Vancouver", "QUERY_TAGS": "team:testing,driver:go"},
144144
RetryMax: 4,
145145
RetryWaitMin: 1 * time.Second,
146146
RetryWaitMax: 30 * time.Second,

0 commit comments

Comments
 (0)