Skip to content

Commit

Permalink
crosscluster: update tests to BACKUP/RESTORE syntax
Browse files Browse the repository at this point in the history
Several tests still use the old `BACKUP`/`RESTORE` syntax. This patch
updates some of the tests to the new `BACKUP INTO`/`RESTORE FROM ... IN
...` syntax.

Epic: none

Release note: None
  • Loading branch information
kev-cao committed Oct 8, 2024
1 parent 4b9ad59 commit 625abbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ccl/crosscluster/physical/alter_replication_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func TestAlterTenantStartReplicationAfterRestore(t *testing.T) {
db := sqlutils.MakeSQLRunner(sqlDB)

db.Exec(t, "CREATE TENANT t1")
db.Exec(t, "BACKUP TENANT 3 TO 'nodelocal://1/t'")
db.Exec(t, "BACKUP TENANT 3 INTO 'nodelocal://1/t'")

afterBackup := srv.Clock().Now()
enforcedGC.Lock()
Expand All @@ -589,7 +589,7 @@ func TestAlterTenantStartReplicationAfterRestore(t *testing.T) {
u, cleanupURLA := sqlutils.PGUrl(t, srv.SQLAddr(), t.Name(), url.User(username.RootUser))
defer cleanupURLA()

db.Exec(t, "RESTORE TENANT 3 FROM 'nodelocal://1/t' WITH TENANT = '5', TENANT_NAME = 't2'")
db.Exec(t, "RESTORE TENANT 3 FROM LATEST IN 'nodelocal://1/t' WITH TENANT = '5', TENANT_NAME = 't2'")
db.Exec(t, "ALTER TENANT t2 START REPLICATION OF t1 ON $1", u.String())
srv.JobRegistry().(*jobs.Registry).TestingNudgeAdoptionQueue()

Expand Down

0 comments on commit 625abbd

Please sign in to comment.