(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestClientCreatePartitionsNoAssignments(t *testing.T) { |
| 46 | if !ktesting.KafkaIsAtLeast("1.0.1") { |
| 47 | return |
| 48 | } |
| 49 | |
| 50 | client, shutdown := newLocalClient() |
| 51 | defer shutdown() |
| 52 | |
| 53 | topic := makeTopic() |
| 54 | createTopic(t, topic, 1) |
| 55 | defer deleteTopic(t, topic) |
| 56 | |
| 57 | res, err := client.CreatePartitions(context.Background(), &CreatePartitionsRequest{ |
| 58 | Topics: []TopicPartitionsConfig{ |
| 59 | { |
| 60 | Name: topic, |
| 61 | Count: 2, |
| 62 | }, |
| 63 | }, |
| 64 | ValidateOnly: false, |
| 65 | }) |
| 66 | if err != nil { |
| 67 | t.Fatal(err) |
| 68 | } |
| 69 | |
| 70 | if err := res.Errors[topic]; err != nil { |
| 71 | t.Error(err) |
| 72 | } |
| 73 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…