Skip to content

Commit

Permalink
config-gcs-embedded-url.yml will execute in TestIntegrationEmbedded o…
Browse files Browse the repository at this point in the history
…nly if QA_GCS_OVER_S3_BUCKET present
  • Loading branch information
Slach committed Aug 28, 2024
1 parent 4d83171 commit 0fb7f32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,10 @@ func TestIntegrationEmbedded(t *testing.T) {
if compareVersion(version, "24.3") >= 0 {
//@todo think about named collections to avoid show credentials in logs look to https://github.com/fsouza/fake-gcs-server/issues/1330, https://github.com/fsouza/fake-gcs-server/pull/1164
env.InstallDebIfNotExists(r, "clickhouse-backup", "ca-certificates", "gettext-base")
env.DockerExecNoError(r, "clickhouse-backup", "bash", "-xec", "cat /etc/clickhouse-backup/config-gcs-embedded-url.yml.template | envsubst > /etc/clickhouse-backup/config-gcs-embedded-url.yml")
env.runMainIntegrationScenario(t, "EMBEDDED_GCS_URL", "config-gcs-embedded-url.yml")
if os.Getenv("QA_GCS_OVER_S3_BUCKET") != "" {
env.DockerExecNoError(r, "clickhouse-backup", "bash", "-xec", "cat /etc/clickhouse-backup/config-gcs-embedded-url.yml.template | envsubst > /etc/clickhouse-backup/config-gcs-embedded-url.yml")
env.runMainIntegrationScenario(t, "EMBEDDED_GCS_URL", "config-gcs-embedded-url.yml")
}
env.runMainIntegrationScenario(t, "EMBEDDED_S3_URL", "config-s3-embedded-url.yml")
}
env.Cleanup(t, r)
Expand Down

0 comments on commit 0fb7f32

Please sign in to comment.