frostfs-sdk-go/client
Leonard Lyubich 8e3173eacd [#270] client/netmap: Cover NetMapSnapshot with unit tests
There is a need to test each `Client` operation. In previous
implementation `Client` was based on real socket connection. This didn't
allow to test the `Client` without OS resources. In order to write
convenient and useful unit tests we need to slightly refactor the code.

Introduce `neoFSAPIServer` interface as a provider of `Client` type's
abstraction from the exact NeoFS API server. Add `netMapSnapshot` method
for initial implementation. Define core interface provider used in real
code. Set `coreServer` as an underlying `neoFSAPIServer` in
`Client.Dial`. Cover `Client.NetMapSnapshot` method with unit tests
using the opportunity to override the server.

From now client library can be tested not only with real physical
listeners but with imitations.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-09-22 10:51:07 +04:00
..
status [#315] apistatus: Write default message in NodeUnderMaintenance.Error 2022-09-20 11:23:22 +04:00
accounting.go [#322] *: Go fmt -s 2022-08-24 18:58:59 +03:00
api.go [#270] client/netmap: Cover NetMapSnapshot with unit tests 2022-09-22 10:51:07 +04:00
client.go [#270] client/netmap: Cover NetMapSnapshot with unit tests 2022-09-22 10:51:07 +04:00
client_test.go [#270] client/netmap: Cover NetMapSnapshot with unit tests 2022-09-22 10:51:07 +04:00
common.go [#323] client: Remove xheaders length check in a common helper 2022-08-26 17:34:27 +03:00
container.go [#323] client: Replace writeToMetaHeader method with function 2022-08-26 17:34:27 +03:00
doc.go [#322] *: Go fmt -s 2022-08-24 18:58:59 +03:00
errors.go [#299] client: Do not use pointers to required response fields 2022-08-08 12:55:25 +03:00
errors_test.go [#307] status: Support EACL_NOT_FOUND status code 2022-08-01 19:57:07 +03:00
netmap.go [#270] client/netmap: Cover NetMapSnapshot with unit tests 2022-09-22 10:51:07 +04:00
netmap_test.go [#270] client/netmap: Cover NetMapSnapshot with unit tests 2022-09-22 10:51:07 +04:00
object_delete.go [#326] client: Provide pointers requests for signing 2022-08-29 14:45:50 +03:00
object_get.go [#334] client: Use parameter key in object.Get 2022-09-14 11:34:56 +04:00
object_hash.go [#326] client: Provide pointers requests for signing 2022-08-29 14:45:50 +03:00
object_put.go [#323] client: Remove xheaders length check in a common helper 2022-08-26 17:34:27 +03:00
object_search.go [#323] client: Remove xheaders length check in a common helper 2022-08-26 17:34:27 +03:00
object_search_test.go [#323] client: Refactor object.Search 2022-08-26 17:34:27 +03:00
reputation.go [#322] *: Go fmt -s 2022-08-24 18:58:59 +03:00
response.go [#137] pool: simplify session creation 2022-04-07 13:33:16 +03:00
session.go [#323] client: Remove initCallContextWithoutKey 2022-08-26 17:34:27 +03:00