From df2090c2be56b4f588d225fdb21b0319a6f5963f Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Thu, 16 Mar 2023 11:01:07 +0300 Subject: [PATCH] [#37] netmap: Update tests for new sys attributes Signed-off-by: Denis Kirillov --- netmap/json_tests/subnet.json | 14 +++++++------- netmap/node_info.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/netmap/json_tests/subnet.json b/netmap/json_tests/subnet.json index fdefe1b4..ba3d1499 100644 --- a/netmap/json_tests/subnet.json +++ b/netmap/json_tests/subnet.json @@ -12,7 +12,7 @@ "value": "Paris" }, { - "key": "__NEOFS__SUBNET_0", + "key": "__SYSTEM__SUBNET_0", "value": "False" } ], @@ -42,7 +42,7 @@ "value": "London" }, { - "key": "__NEOFS__SUBNET_1", + "key": "__SYSTEM__SUBNET_1", "value": "True" } ], @@ -72,7 +72,7 @@ "value": "Toronto" }, { - "key": "__NEOFS__SUBNET_1", + "key": "__SYSTEM__SUBNET_1", "value": "True" } ], @@ -89,7 +89,7 @@ "value": "Toronto" }, { - "key": "__NEOFS__SUBNET_2", + "key": "__SYSTEM__SUBNET_2", "value": "True" } ], @@ -106,7 +106,7 @@ "value": "Tokyo" }, { - "key": "__NEOFS__SUBNET_2", + "key": "__SYSTEM__SUBNET_2", "value": "True" } ], @@ -123,7 +123,7 @@ "value": "Tokyo" }, { - "key": "__NEOFS__SUBNET_2", + "key": "__SYSTEM__SUBNET_2", "value": "True" } ], @@ -242,7 +242,7 @@ "filters": [ { "name": "F", - "key": "__NEOFS_SUBNET.2.ENABLED", + "key": "__SYSTEM__SUBNET.2.ENABLED", "op": "EQ", "value": "True" } diff --git a/netmap/node_info.go b/netmap/node_info.go index c56ffadc..4bf60f83 100644 --- a/netmap/node_info.go +++ b/netmap/node_info.go @@ -54,7 +54,7 @@ func (x *NodeInfo) readFromV2(m netmap.NodeInfo, checkFieldPresence bool) error return fmt.Errorf("duplicated attbiuted %s", key) } - const subnetPrefix = "__NEOFS__SUBNET_" + const subnetPrefix = "__SYSTEM__SUBNET_" switch { case key == attrCapacity: