frostfs-node/pkg/innerring/processors/netmap/nodevalidation/locode
Leonard Lyubich 68e85e4b33 [#412] ir/locode: Disallow explicit setting of LOCODE-derived attributes
Make `Validator.VerifyAndUpdate` method to return an error if at least one
of LOCODE-derived attributes is set explicitly. Thus, IR will not confirm
the candidates for the network map who independently set these attributes.

Cover `Validator.VerifyAndUpdate` method with unit tests.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-09 15:08:12 +03:00
..
calls.go [#412] ir/locode: Disallow explicit setting of LOCODE-derived attributes 2021-06-09 15:08:12 +03:00
calls_test.go [#412] ir/locode: Disallow explicit setting of LOCODE-derived attributes 2021-06-09 15:08:12 +03:00
deps.go [#316] ir/netmap: Validate LOCODE attributes of network map candidates 2021-02-10 14:05:03 +03:00
util.go [#316] ir/netmap: Validate LOCODE attributes of network map candidates 2021-02-10 14:05:03 +03:00
validator.go [#362] ir/netmap: Use const keys to node attributes from the API lib 2021-02-11 14:01:35 +03:00