-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable cloud tests * fixes * fixes * ensure select_sequential_consistency for some selects * The JSON data type is an obsolete feature. Skip tests on Cloud. * Mark flaky tests
- Loading branch information
Showing
9 changed files
with
100 additions
and
58 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
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
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 |
---|---|---|
|
@@ -36,3 +36,6 @@ vendor | |
.terraform.lock.hcl | ||
**/.terraform* | ||
pipeline.auto.tfvars | ||
*.tfvars | ||
|
||
.env |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package tests | ||
|
||
import ( | ||
"os" | ||
"strings" | ||
"testing" | ||
) | ||
|
||
var LocalClickHouse = false | ||
var RemoteClickHouse = false | ||
var CloudClickHouse = false | ||
|
||
func init() { | ||
if host, found := os.LookupEnv("CLICKHOUSE_HOST"); found { | ||
if strings.HasSuffix(host, "clickhouse.cloud") || | ||
strings.HasSuffix(host, "clickhouse-staging.com") { | ||
CloudClickHouse = true | ||
} else { | ||
RemoteClickHouse = true | ||
} | ||
} else { | ||
LocalClickHouse = true | ||
} | ||
} | ||
|
||
func SkipOnCloud(t *testing.T, reasons ...string) { | ||
if CloudClickHouse { | ||
t.Skip(append( | ||
[]string{"Skipping test on cloud ClickHouse"}, | ||
reasons..., | ||
)) | ||
} | ||
} |
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