Skip to content

Commit

Permalink
Fix path for TestHTTPConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyeats committed Feb 7, 2025
1 parent 9acd463 commit a6b2b28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/plugin/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,11 @@ func TestHTTPConnect(t *testing.T) {
username := getEnv("CLICKHOUSE_USERNAME", "default")
password := getEnv("CLICKHOUSE_PASSWORD", "")
ssl := getEnv("CLICKHOUSE_SSL", "false")
path := "custom-path"
clickhouse := plugin.Clickhouse{}
t.Run("should not error when valid settings passed", func(t *testing.T) {
secure := map[string]string{}
secure["password"] = password
settings := backend.DataSourceInstanceSettings{JSONData: []byte(fmt.Sprintf(`{ "server": "%s", "port": %s, "path": "%s", "username": "%s", "secure": %s, "protocol": "http" }`, host, port, path, username, ssl)), DecryptedSecureJSONData: secure}
settings := backend.DataSourceInstanceSettings{JSONData: []byte(fmt.Sprintf(`{ "server": "%s", "port": %s, "username": "%s", "secure": %s, "protocol": "http" }`, host, port, username, ssl)), DecryptedSecureJSONData: secure}
_, err := clickhouse.Connect(context.Background(), settings, json.RawMessage{})
assert.Equal(t, nil, err)
})
Expand Down

0 comments on commit a6b2b28

Please sign in to comment.