forked from TrueCloudLab/frostfs-sdk-go
[#37] netmap: Update tests for new sys attributes
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
7e6592b28e
commit
df2090c2be
2 changed files with 8 additions and 8 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue