MCPcopy
hub / github.com/redpanda-data/console / TestPatchConfigAll

Function TestPatchConfigAll

backend/pkg/connector/patch/all_test.go:22–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func TestPatchConfigAll(t *testing.T) {
23 patcher := NewConfigPatchAll()
24
25 tt := []struct {
26 ConnectorClass string
27 ConfigurationKey string
28 ShouldMatch bool
29
30 GivenDisplayName string
31 ExpectedDisplayName string
32 }{
33 {
34 ConnectorClass: "org.apache.kafka.connect.mirror.MirrorSourceConnector",
35 ConfigurationKey: "ssl.protocol",
36 ShouldMatch: true,
37
38 GivenDisplayName: "SSL protocol",
39 ExpectedDisplayName: "SSL protocol",
40 },
41
42 {
43 ConnectorClass: "org.apache.kafka.connect.mirror.MirrorSourceConnector",
44 ConfigurationKey: "ssl.protocol",
45 ShouldMatch: true,
46
47 GivenDisplayName: "",
48 ExpectedDisplayName: "SSL protocol",
49 },
50
51 {
52 ConnectorClass: "org.apache.kafka.connect.mirror.MirrorSourceConnector",
53 ConfigurationKey: "ssl.protocol",
54 ShouldMatch: true,
55
56 GivenDisplayName: "ssl.protocol",
57 ExpectedDisplayName: "SSL protocol",
58 },
59
60 {
61 ConnectorClass: "org.apache.kafka.connect.mirror.MirrorSourceConnector",
62 ConfigurationKey: "refresh.topics.interval.seconds",
63 ShouldMatch: true,
64
65 GivenDisplayName: "",
66 ExpectedDisplayName: "Refresh topics interval seconds",
67 },
68
69 {
70 ConnectorClass: "org.apache.kafka.connect.mirror.MirrorSourceConnector",
71 ConfigurationKey: "sync.topic.acls.enabled",
72 ShouldMatch: true,
73
74 GivenDisplayName: "",
75 ExpectedDisplayName: "Sync topic ACLs enabled",
76 },
77
78 {
79 ConnectorClass: "org.apache.kafka.connect.mirror.MirrorSourceConnector",

Callers

nothing calls this directly

Calls 3

IsMatchMethod · 0.95
PatchDefinitionMethod · 0.95
NewConfigPatchAllFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…