Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmay-db committed Aug 26, 2024
1 parent 1ca56f9 commit 9e0ad79
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/providers/common/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,26 +401,26 @@ func Test_ParseUserAgentExtra(t *testing.T) {
env: "databricks-cli/0.1.2",
err: nil,
out: []sdkv2.UserAgentExtra{
{"databricks-cli", "0.1.2"},
{Key: "databricks-cli", Value: "0.1.2"},
},
},
{
name: "multiple products",
env: "databricks-cli/0.1.2 custom-thing/0.0.1",
err: nil,
out: []sdkv2.UserAgentExtra{
{"databricks-cli", "0.1.2"},
{"custom-thing", "0.0.1"},
{Key: "databricks-cli", Value: "0.1.2"},
{Key: "custom-thing", Value: "0.0.1"},
},
},
{
name: "multiple products with many separators",
env: "\ta/0.0.1\tb/0.0.2 \t c/0.0.3",
err: nil,
out: []sdkv2.UserAgentExtra{
{"a", "0.0.1"},
{"b", "0.0.2"},
{"c", "0.0.3"},
{Key: "a", Value: "0.0.1"},
{Key: "b", Value: "0.0.2"},
{Key: "c", Value: "0.0.3"},
},
},
{
Expand Down

0 comments on commit 9e0ad79

Please sign in to comment.