Skip to content

Commit

Permalink
remove --env for check corner cases #821
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Mar 6, 2024
1 parent d550235 commit 01f878a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,7 @@ func runClickHouseClientInsertSystemBackupActions(r *require.Assertions, ch *Tes
}
}
func testAPIBackupActions(r *require.Assertions, ch *TestClickHouse) {
// STANDARD_IA for https://github.com/Altinity/clickhouse-backup/issues/821
runClickHouseClientInsertSystemBackupActions(r, ch, []string{"create_remote --env S3_STORAGE_CLASS=STANDARD_IA actions_backup1"}, true)
runClickHouseClientInsertSystemBackupActions(r, ch, []string{"create_remote actions_backup1"}, true)
runClickHouseClientInsertSystemBackupActions(r, ch, []string{"delete local actions_backup1", "restore_remote --rm actions_backup1"}, true)
runClickHouseClientInsertSystemBackupActions(r, ch, []string{"delete local actions_backup1", "delete remote actions_backup1"}, false)

Expand Down Expand Up @@ -1173,8 +1172,7 @@ func TestTablePatterns(t *testing.T) {
fullCleanup(t, r, ch, []string{testBackupName}, []string{"remote", "local"}, databaseList, false, false, "config-s3.yml")
generateTestData(t, r, ch, "S3", defaultTestData)
if createPattern {
// --env for check corner cases https://github.com/Altinity/clickhouse-backup/issues/821
r.NoError(dockerExec("clickhouse-backup", "clickhouse-backup", "-c", "/etc/clickhouse-backup/config-s3.yml", "create_remote", "--env", "S3_STORAGE_CLASS=STANDARD_IA", "--tables", " "+dbNameOrdinaryTest+".*", testBackupName))
r.NoError(dockerExec("clickhouse-backup", "clickhouse-backup", "-c", "/etc/clickhouse-backup/config-s3.yml", "create_remote", "--tables", " "+dbNameOrdinaryTest+".*", testBackupName))
} else {
r.NoError(dockerExec("clickhouse-backup", "clickhouse-backup", "-c", "/etc/clickhouse-backup/config-s3.yml", "create_remote", testBackupName))
}
Expand Down

0 comments on commit 01f878a

Please sign in to comment.