MCPcopy
hub / github.com/segmentio/kafka-go / TestAlterConfigsRequest

Function TestAlterConfigsRequest

protocol/alterconfigs/alterconfigs_test.go:15–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestAlterConfigsRequest(t *testing.T) {
16 prototest.TestRequest(t, v0, &alterconfigs.Request{
17 ValidateOnly: true,
18 Resources: []alterconfigs.RequestResources{
19 {
20 ResourceType: 1,
21 ResourceName: "foo",
22 Configs: []alterconfigs.RequestConfig{
23 {
24 Name: "foo",
25 Value: "foo",
26 },
27 },
28 },
29 },
30 })
31
32 prototest.TestRequest(t, v1, &alterconfigs.Request{
33 ValidateOnly: true,
34 Resources: []alterconfigs.RequestResources{
35 {
36 ResourceType: 1,
37 ResourceName: "foo",
38 Configs: []alterconfigs.RequestConfig{
39 {
40 Name: "foo",
41 Value: "foo",
42 },
43 },
44 },
45 },
46 })
47}
48
49func TestAlterConfigsResponse(t *testing.T) {
50 prototest.TestResponse(t, v0, &alterconfigs.Response{

Callers

nothing calls this directly

Calls 1

TestRequestFunction · 0.92

Tested by

no test coverage detected