| 1 |
|
| 2 |
|
| 3 |
package sarama |
| 4 |
|
| 5 |
import "testing" |
| 6 |
|
| 7 |
var listPartitionReassignmentsResponse = []byte{ |
| 8 |
0, 0, 39, 16, |
| 9 |
0, 0, |
| 10 |
0, |
| 11 |
2, |
| 12 |
6, 116, 111, 112, 105, 99, |
| 13 |
2, |
| 14 |
0, 0, 0, 1, |
| 15 |
3, 0, 0, 3, 232, 0, 0, 3, 233, |
| 16 |
3, 0, 0, 3, 234, 0, 0, 3, 235, |
| 17 |
3, 0, 0, 3, 236, 0, 0, 3, 237, |
| 18 |
0, 0, 0, |
| 19 |
} |
| 20 |
|
| 21 |
func TestListPartitionReassignmentResponse(t *testing.T) { |
| 22 |
var response *ListPartitionReassignmentsResponse = &ListPartitionReassignmentsResponse{ |
| 23 |
ThrottleTimeMs: int32(10000), |
| 24 |
Version: int16(0), |
| 25 |
} |
| 26 |
|
| 27 |
response.AddBlock("topic", 1, []int32{1000, 1001}, []int32{1002, 1003}, []int32{1004, 1005}) |
| 28 |
|
| 29 |
testResponse(t, "one topic", response, listPartitionReassignmentsResponse) |
| 30 |
} |