Extend box information with replication fields#427
Extend box information with replication fields#427oleg-jukovec merged 1 commit intotarantool:masterfrom
Conversation
0b8374e to
a0325d8
Compare
a0325d8 to
5d91dde
Compare
|
@oleg-jukovec Thanks for the quick response.
Please tell me what you think needs to be tested in this test. |
You could encode a map as a MessagePack and decode it as InfoResponse. The pseudo-code: expected := InfoResponse{
Info: Info{
Foo: "bar",
},
}
data, err := msgpack.Marshal(map[string]any{
"foo": "bar",
})
require.NoError(err)
var result InfoResponse
err = msgpack.Unmarshal(data, &result)
require.NoError(err)
require.Equals(t, expected, result)In that way you could ensure that all fields decoded as expected and you don't make a mistake or misprint. It also would be a good starting point for tests in the future. You need to cover decoding of all new fields with the test. |
5d91dde to
153fc25
Compare
|
@oleg-jukovec Thanks for your detailed answer. I add tests. Could you please take a look? |
153fc25 to
8d0d862
Compare
|
Add additional fields .message .system_message. |
e95cce5 to
1a78e05
Compare
|
Please, fix linter errors: |
1a78e05 to
f0013af
Compare
|
@oleg-jukovec For some unknown reason local golangci-lint doesn't work. Fix all problems. |
oleg-jukovec
left a comment
There was a problem hiding this comment.
Thank you for the patch!
DerekBum
left a comment
There was a problem hiding this comment.
Thanks for the patch, just some small nits.
f0013af to
f3d9e7b
Compare
|
@DerekBum Thanks for you review. |
|
Thank you for the patch! |
What has been done? Why? What problem is being solved?
Extend box information with replication fields.
I didn't forget about (remove if it is not applicable):