forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
streamingccl: add show tenant without pts test
This patch adds a test for the fix in cockroachdb#120434 Epic: none Release note: none
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
pkg/ccl/streamingccl/streamingest/testdata/show_without_pts
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,19 @@ | ||
# This test verifies that SHOW TENANT works even if a dest pts hasn't been set. | ||
|
||
create-replication-clusters | ||
---- | ||
|
||
exec-sql as=destination-system | ||
SET CLUSTER SETTING jobs.debug.pausepoints = 'stream_ingestion.before_protection'; | ||
---- | ||
|
||
start-replication-stream | ||
---- | ||
|
||
job as=destination-system wait-for-state=paused | ||
---- | ||
|
||
query-sql as=destination-system | ||
SELECT replicated_time FROM [SHOW VIRTUAL CLUSTER destination WITH REPLICATION STATUS]; | ||
---- | ||
<nil> |