Skip to content

Commit

Permalink
debug #888, debug disk_s3
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Jul 30, 2024
1 parent 400b118 commit 0ef2aa0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,14 @@ func NewTestEnvironment(t *testing.T) (*TestEnvironment, *require.Assertions) {

func (env *TestEnvironment) Cleanup(t *testing.T, r *require.Assertions) {
env.ch.Close()
out, err := env.DockerExecOut("minio", "bash", "-ce", "ls -lh /bitnami/minio/data/clickhouse/")
t.Log(t.Name(), "DEBUG", out)
r.NoError(err)

if t.Name() == "TestIntegrationS3" {
env.DockerExecNoError(r, "minio", "rm", "-rf", "/bitnami/minio/data/clickhouse/disk_s3")
}

if t.Name() == "TestRBAC" || t.Name() == "TestConfigs" || t.Name() == "TestIntegrationEmbedded" {
env.DockerExecNoError(r, "minio", "rm", "-rf", "/bitnami/minio/data/clickhouse/backups_s3")
}
Expand Down Expand Up @@ -2403,11 +2411,8 @@ func (env *TestEnvironment) runMainIntegrationScenario(t *testing.T, remoteStora
log.Debug("Clean before start")
fullCleanup(t, r, env, []string{fullBackupName, incrementBackupName}, []string{"remote", "local"}, databaseList, false, false, backupConfig)

env.DockerExecNoError(r, "minio", "mc", "ls", "local/clickhouse/disk_s3")
testData := generateTestData(t, r, env, remoteStorageType, defaultTestData)

env.DockerExecNoError(r, "minio", "mc", "ls", "local/clickhouse/disk_s3")

log.Debug("Create backup")
env.DockerExecNoError(r, "clickhouse-backup", "clickhouse-backup", "-c", "/etc/clickhouse-backup/"+backupConfig, "create", "--tables", tablesPattern, fullBackupName)

Expand Down

0 comments on commit 0ef2aa0

Please sign in to comment.