Skip to content

Commit 12b41c2

Browse files
committed
changefeedccl: fix changefeed test for webhook sinks
Opt a changefeed test out of the metamorphic enriched envelope testing for webhook sinks. Fixes: #148254 Release note: None
1 parent 9e03a73 commit 12b41c2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pkg/ccl/changefeedccl/alter_changefeed_test.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,17 @@ func TestAlterChangefeedAlterTableName(t *testing.T) {
12421242
sqlDB.Exec(t,
12431243
`INSERT INTO movr.users VALUES (1, 'Alice')`,
12441244
)
1245-
testFeed := feed(t, f, `CREATE CHANGEFEED FOR movr.users WITH diff, resolved = '100ms'`)
1245+
1246+
// TODO(#145927): currently the metamorphic enriched envelope system for
1247+
// webhook uses source.table_name as the topic. This test expects the
1248+
// topic name to be durable across table renames, which is not expected
1249+
// to be true for source.table_name.
1250+
var args []any
1251+
if _, ok := f.(*webhookFeedFactory); ok {
1252+
args = append(args, optOutOfMetamorphicEnrichedEnvelope{reason: "see comment"})
1253+
}
1254+
1255+
testFeed := feed(t, f, `CREATE CHANGEFEED FOR movr.users WITH diff, resolved = '100ms'`, args...)
12461256
defer closeFeed(t, testFeed)
12471257

12481258
assertPayloads(t, testFeed, []string{

0 commit comments

Comments
 (0)