(t *testing.T)
| 20 | ) |
| 21 | |
| 22 | func 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", |
nothing calls this directly
no test coverage detected
searching dependent graphs…